Mercurial > traipse_dev
comparison orpg/chat/chatwnd.py @ 192:fb08f5731b5e beta
Traipse Beta 'OpenRPG' {100201-01}
Traipse is a distribution of OpenRPG that is designed to be easy to
setup and go. Traipse also makes it easy for developers to work on code
without fear of sacrifice. 'Ornery-Orc' continues the trend of 'Grumpy'
and adds fixes to the code. 'Ornery-Orc's main goal is to offer more
advanced features and enhance the productivity of the user.
Update Summary (Beta)
New Features:
New Bookmarks Feature
New 'boot' command to remote admin
New confirmation window for sent nodes
Miniatures Layer pop up box allows users to turn off Mini labels, from
FlexiRPG
New Zoom Mouse plugin added
New Images added to Plugin UI
Switching to Element Tree
New Map efficiency, from FlexiRPG
New Status Bar to Update Manager
New TrueDebug Class in orpg_log (See documentation for usage)
New Portable Mercurial
New Tip of the Day, from Core and community
New Reference Syntax added for custom PC sheets
New Child Reference for gametree
New Parent Reference for gametree
New Gametree Recursion method, mapping, context sensitivity, and
effeciency..
New Features node with bonus nodes and Node Referencing help added
New Dieroller structure from Core
New DieRoller portability for odd Dice
New 7th Sea die roller; ie [7k3] = [7d10.takeHighest(3).open(10)]
New 'Mythos' System die roller added
New vs. die roller method for WoD; ie [3v3] = [3d10.vs(3)]. Included for
Mythos roller also
New Warhammer FRPG Die Roller (Special thanks to Puu-san for the
support)
New EZ_Tree Reference system. Push a button, Traipse the tree, get a
reference (Beta!)
New Grids act more like Spreadsheets in Use mode, with Auto Calc
Fixes:
Fix to allow for portability to an OpenSUSE linux OS
Fix to mplay_client for Fedora and OpenSUSE
Fix to Text based Server
Fix to Remote Admin Commands
Fix to Pretty Print, from Core
Fix to Splitter Nodes not being created
Fix to massive amounts of images loading, from Core
Fix to Map from gametree not showing to all clients
Fix to gametree about menus
Fix to Password Manager check on startup
Fix to PC Sheets from tool nodes. They now use the tabber_panel
Fix to Whiteboard ID to prevent random line or text deleting.
Fixes to Server, Remote Server, and Server GUI
Fix to Update Manager; cleaner clode for saved repositories
Fixes made to Settings Panel and now reactive settings when Ok is
pressed
Fixes to Alternity roller's attack roll. Uses a simple Tuple instead of
a Splice
Fix to Use panel of Forms and Tabbers. Now longer enters design mode
Fix made Image Fetching. New fetching image and new failed image
Fix to whiteboard ID's to prevent non updated clients from ruining the
fix.
default_manifest.xml renamed to default_upmana.xml
author | sirebral |
---|---|
date | Mon, 01 Feb 2010 11:56:37 -0600 |
parents | a3d7e05085da |
children | 13054be69834 |
comparison
equal
deleted
inserted
replaced
191:a3d7e05085da | 192:fb08f5731b5e |
---|---|
117 if settings.get_setting('TimeStampGameLog') != '1': header = '' | 117 if settings.get_setting('TimeStampGameLog') != '1': header = '' |
118 try: | 118 try: |
119 f = open( dir_struct["user"] + filename, 'a' ) | 119 f = open( dir_struct["user"] + filename, 'a' ) |
120 f.write( '<div class="'+c+'">%s%s</div>\n' % ( header, text ) ) | 120 f.write( '<div class="'+c+'">%s%s</div>\n' % ( header, text ) ) |
121 f.close() | 121 f.close() |
122 except: | 122 except Exception, e: |
123 print "could not open " + dir_struct["user"] + filename + ", ignoring..." | 123 print "could not open " + dir_struct["user"] + filename + ", ignoring..." |
124 print 'Error given', e | |
124 pass | 125 pass |
125 | 126 |
126 # This class displayes the chat information in html? | 127 # This class displayes the chat information in html? |
127 # | 128 # |
128 # Defines: | 129 # Defines: |
341 self.create_gm_tab() | 342 self.create_gm_tab() |
342 self.SetSelection(0) | 343 self.SetSelection(0) |
343 | 344 |
344 def get_tab_index(self, chatpanel): | 345 def get_tab_index(self, chatpanel): |
345 "Return the index of a chatpanel in the wxNotebook." | 346 "Return the index of a chatpanel in the wxNotebook." |
346 | |
347 for i in xrange(self.GetPageCount()): | 347 for i in xrange(self.GetPageCount()): |
348 if (self.GetPage(i) == chatpanel): | 348 if (self.GetPage(i) == chatpanel): |
349 return i | 349 return i |
350 | 350 |
351 def create_gm_tab(self): | 351 def create_gm_tab(self): |
1028 | 1028 |
1029 # play sound | 1029 # play sound |
1030 sound_file = self.settings.get_setting("SendSound") | 1030 sound_file = self.settings.get_setting("SendSound") |
1031 if sound_file != '': component.get('sound').play(sound_file) | 1031 if sound_file != '': component.get('sound').play(sound_file) |
1032 if s[0] != "/": ## it's not a slash command | 1032 if s[0] != "/": ## it's not a slash command |
1033 s = Parse.Post( s, True, True ) | 1033 s = self.ParsePost( s, True, True ) |
1034 else: self.chat_cmds.docmd(s) # emote is in chatutils.py | 1034 else: self.chat_cmds.docmd(s) # emote is in chatutils.py |
1035 | 1035 |
1036 def on_chat_key_down(self, event): | 1036 def on_chat_key_down(self, event): |
1037 s = self.chattxt.GetValue() | 1037 s = self.chattxt.GetValue() |
1038 if event.GetKeyCode() == wx.WXK_RETURN and not event.ShiftDown(): | 1038 if event.GetKeyCode() == wx.WXK_RETURN and not event.ShiftDown(): |
1167 id = evt.GetId() | 1167 id = evt.GetId() |
1168 if self.dieIDs.has_key(id): dieText += self.dieIDs[id] | 1168 if self.dieIDs.has_key(id): dieText += self.dieIDs[id] |
1169 if len(dieMod) and dieMod[0] not in "*/-+": dieMod = "+" + dieMod | 1169 if len(dieMod) and dieMod[0] not in "*/-+": dieMod = "+" + dieMod |
1170 dieText += dieMod | 1170 dieText += dieMod |
1171 dieText = "[" + dieText + "]" | 1171 dieText = "[" + dieText + "]" |
1172 Parse.Post(dieText, 1, 1) | 1172 self.ParsePost(dieText, 1, 1) |
1173 self.chattxt.SetFocus() | 1173 self.chattxt.SetFocus() |
1174 | 1174 |
1175 def on_chat_save(self, evt): | 1175 def on_chat_save(self, evt): |
1176 f = wx.FileDialog(self,"Save Chat Buffer",".","","HTM* (*.htm*)|*.htm*|HTML (*.html)|*.html|HTM (*.htm)|*.htm",wx.SAVE) | 1176 f = wx.FileDialog(self,"Save Chat Buffer",".","","HTM* (*.htm*)|*.htm*|HTML (*.html)|*.html|HTM (*.htm)|*.htm",wx.SAVE) |
1177 if f.ShowModal() == wx.ID_OK: | 1177 if f.ShowModal() == wx.ID_OK: |
1587 except Exception, e: | 1587 except Exception, e: |
1588 logger.general(traceback.format_exc()) | 1588 logger.general(traceback.format_exc()) |
1589 logger.general("EXCEPTION: " + str(e)) | 1589 logger.general("EXCEPTION: " + str(e)) |
1590 return "[ERROR]" | 1590 return "[ERROR]" |
1591 | 1591 |
1592 def ParsePost(self, s, send=False, myself=False): | |
1593 s = Parse.Normalize(s) | |
1594 self.set_colors() | |
1595 self.Post(s,send,myself) | |
1592 | 1596 |
1593 # This subroutine builds a chat display name. | 1597 # This subroutine builds a chat display name. |
1594 # | 1598 # |
1595 def chat_display_name(self, player): | 1599 def chat_display_name(self, player): |
1596 if self.settings.get_setting("ShowIDInChat") == "0": | 1600 if self.settings.get_setting("ShowIDInChat") == "0": |