Mercurial > traipse_dev
comparison plugins/xxchatnotify.py @ 227:81d0bfd5e800 alpha
Traipse Alpha 'OpenRPG' {100612-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 (Preparing to close updates)
New Features:
New to Map, can re-order Grid, Miniatures, and Whiteboard layer draw order
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
author | sirebral |
---|---|
date | Sat, 12 Jun 2010 03:50:37 -0500 |
parents | 7b752c9d0c28 |
children |
comparison
equal
deleted
inserted
replaced
182:4b2884f29a72 | 227:81d0bfd5e800 |
---|---|
124 self.chat.InfoPost('Setting Notification type to ' + args[0]) | 124 self.chat.InfoPost('Setting Notification type to ' + args[0]) |
125 self.chat_settings() | 125 self.chat_settings() |
126 | 126 |
127 | 127 |
128 def plugin_incoming_msg(self, text, type, name, player): | 128 def plugin_incoming_msg(self, text, type, name, player): |
129 if (self.notify == 'beep' or self.notify == 'both') and (self.type == 'all' or type == 2): | 129 if not self.topframe.IsActive(): |
130 if self.soundfile == 'None': | 130 if (self.notify == 'beep' or self.notify == 'both') and (self.type == 'all' or type == 2): |
131 wx.CallAfter(wx.Bell) | 131 if self.soundfile == 'None': |
132 wx.CallAfter(wx.Bell) | 132 wx.CallAfter(wx.Bell) |
133 else: | 133 wx.CallAfter(wx.Bell) |
134 wx.CallAfter(self.sound_player.play, self.soundfile, self.soundloc) | 134 else: |
135 if (self.notify == 'flash' or self.notify == 'both') and (self.type == 'all' or type == 2): | 135 wx.CallAfter(self.sound_player.play, self.soundfile, self.soundloc) |
136 wx.CallAfter(self.mainframe.RequestUserAttention) | 136 if (self.notify == 'flash' or self.notify == 'both') and (self.type == 'all' or type == 2): |
137 wx.CallAfter(self.mainframe.RequestUserAttention) | |
137 return text, type, name | 138 return text, type, name |
138 | 139 |
139 | 140 |