comparison orpg/main.py @ 231:cc7629ab526d alpha

Traipse Alpha 'OpenRPG' {100614-00} 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 (Closing/Closed) New Features: New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order New to Server GUI, can now clear log Fixes: Fix to InterParse that was causing an Infernal Loop with Namespace Internal Fix to XML data, removed old Minidom and switched to Element Tree Fix to Server that was causing eternal attempt to find a Server ID, in Register Rooms thread Fix to metaservers.xml file not being created Fix to Single and Double quotes in Whiteboard text Fix to Background images not showing when using the Image Server Fix to Duplicate chat names appearing Fix to Server GUI's logging output Fix to FNB.COLORFUL_TABS bug.
author sirebral
date Mon, 14 Jun 2010 15:20:08 -0500
parents 24769389a7ba
children
comparison
equal deleted inserted replaced
230:2e2281ed40a9 231:cc7629ab526d
933 etreeEl = Element('msg') 933 etreeEl = Element('msg')
934 try: etreeEl.append(fromstring(data)) 934 try: etreeEl.append(fromstring(data))
935 except: etreeEl.text = data 935 except: etreeEl.text = data
936 936
937 display_name = self.chat.chat_display_name(player) 937 display_name = self.chat.chat_display_name(player)
938 if etreeEl.text:self.chat.Post(display_name+etreeEl.text) 938 if etreeEl.text:
939 if "is creating room" in etreeEl.text: self.chat.Post(etreeEl.text)
940 else: self.chat.Post(display_name+etreeEl.text)
939 941
940 for child in etreeEl.getchildren(): 942 for child in etreeEl.getchildren():
941 if child.tag == 'tree': 943 if child.tag == 'tree':
942 dlg = wx.MessageDialog(None, component.strip_html(display_name) + ' is trying to send you a tree node. Accept?', 'Question', 944 dlg = wx.MessageDialog(None,
943 wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION) 945 component.strip_html(display_name) + ' is trying to send you a tree node. Accept?',
946 'Question', wx.YES_NO | wx.NO_DEFAULT | wx.ICON_QUESTION)
944 if dlg.ShowModal() == wx.ID_YES: 947 if dlg.ShowModal() == wx.ID_YES:
945 dlg.Destroy() 948 dlg.Destroy()
946 self.tree.on_receive_data(tostring(child)) 949 self.tree.on_receive_data(tostring(child))
947 self.chat.InfoPost(display_name + " has sent you a tree node...") 950 self.chat.InfoPost(display_name + " has sent you a tree node...")
948 elif child.tag == 'map': 951 elif child.tag == 'map':