Mercurial > traipse
comparison plugins/xxchatnotify.py @ 18:97265586402b ornery-orc
Traipse 'OpenRPG' {090827-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:
Update Manager is now in version 0.8. While not every button works, users can now browse the different revisions and their different changesets. The code has been refined some with feature from Core added to it. A Crash report is now created if the users software crashes. Update Manager has been moved to the Traipse Suite menu item, and a Debug Console as been added as well.
author | sirebral |
---|---|
date | Thu, 27 Aug 2009 01:04:43 -0500 |
parents | 4385a7d0efd1 |
children | ff154cf3350c |
comparison
equal
deleted
inserted
replaced
17:265b987cce4f | 18:97265586402b |
---|---|
32 self.notifyWhisper = notifyType.AppendRadioItem(wx.ID_ANY, 'Whisper') | 32 self.notifyWhisper = notifyType.AppendRadioItem(wx.ID_ANY, 'Whisper') |
33 self.menu.AppendMenu(wx.ID_ANY, 'Type', notifyType) | 33 self.menu.AppendMenu(wx.ID_ANY, 'Type', notifyType) |
34 self.topframe.Bind(wx.EVT_MENU, self.on_settings, self.notifyAll) | 34 self.topframe.Bind(wx.EVT_MENU, self.on_settings, self.notifyAll) |
35 self.topframe.Bind(wx.EVT_MENU, self.on_settings, self.notifyWhisper) | 35 self.topframe.Bind(wx.EVT_MENU, self.on_settings, self.notifyWhisper) |
36 | 36 |
37 | |
38 def on_settings(self, evt): | 37 def on_settings(self, evt): |
39 if self.notifyToggle.IsChecked() == False: | 38 if self.notifyToggle.IsChecked() == False: |
40 self.notify = 'Off' | 39 self.notify = 'Off' |
40 self.plugindb.SetString('xxchatnotify', 'notify', self.notify) | |
41 return | 41 return |
42 if self.notifyBeep.IsChecked() == True: | 42 if self.notifyBeep.IsChecked() == True: |
43 self.notify ='beep' | 43 self.notify ='beep' |
44 elif self.notifyFlash.IsChecked() == True: | 44 elif self.notifyFlash.IsChecked() == True: |
45 self.notify = 'flash' | 45 self.notify = 'flash' |
47 self.notify = 'both' | 47 self.notify = 'both' |
48 if self.notifyAll.IsChecked() == True: | 48 if self.notifyAll.IsChecked() == True: |
49 self.type = 'all' | 49 self.type = 'all' |
50 elif self.notifyWhisper.IsChecked() == True: | 50 elif self.notifyWhisper.IsChecked() == True: |
51 self.type = 'whisper' | 51 self.type = 'whisper' |
52 self.plugindb.SetString('xxchatnotify', 'notify', self.notify) | |
53 self.plugindb.SetString('xxchatnotify', 'type', self.type) | |
52 | 54 |
53 | 55 |
54 def plugin_enabled(self): | 56 def plugin_enabled(self): |
55 self.plugin_addcommand('/notify', self.on_notify, 'beep | flash | both | off | type all|whisper | clearsound | lsound soundfile [Local Sound Files only] | rsound http://to.sound.file [Remote Sound Files only] - This command turns on the chat notification. You can use sound files and flash by issuing /notify both') | 57 self.plugin_addcommand('/notify', self.on_notify, 'beep | flash | both | off | type all|whisper | clearsound | lsound soundfile [Local Sound Files only] | rsound http://to.sound.file [Remote Sound Files only] - This command turns on the chat notification. You can use sound files and flash by issuing /notify both') |
56 self.notify = self.plugindb.GetString('xxchatnotify', 'notify', 'off') | 58 self.notify = self.plugindb.GetString('xxchatnotify', 'notify', string) or 'off' |
57 self.type = self.plugindb.GetString('xxchatnotify', 'type', 'all') | 59 self.type = self.plugindb.GetString('xxchatnotify', 'type', string) or 'beep' |
58 self.mainframe = open_rpg.get_component('frame') | 60 self.mainframe = component.get('frame') |
59 self.sound_player = open_rpg.get_component('sound') | 61 self.sound_player = component.get('sound') |
60 self.soundloc = self.plugindb.GetString('xxchatnotify', 'soundloc', 'local') | 62 self.soundloc = self.plugindb.GetString('xxchatnotify', 'soundloc', 'local') |
61 self.soundfile = self.plugindb.GetString('xxchatnotify', 'soundfile', 'None') | 63 self.soundfile = self.plugindb.GetString('xxchatnotify', 'soundfile', 'None') |
62 self.chat_settings() | 64 self.chat_settings() |
63 | 65 |
64 def chat_settings(self): | 66 def chat_settings(self): |