comparison plugins/xxchatnotify.py @ 195:b633f4c64aae alpha

Traipse Alpha 'OpenRPG' {100219-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 (Patch-2) New Features: New Namespace method with two new syntaxes Fixes: Fix to Server GUI startup errors Fix to Server GUI Rooms tab updating Fix to Chat and Settings if non existant die roller is picked Fix to Dieroller and .open() used with .vs(). Successes are correctly calculated Fix to Alias Lib's Export to Tree, Open, Save features Fix to alias node, now works properly Fix to Splitter node, minor GUI cleanup
author sirebral
date Sat, 24 Apr 2010 08:37:20 -0500
parents 7b752c9d0c28
children
comparison
equal deleted inserted replaced
182:4b2884f29a72 195:b633f4c64aae
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