comparison plugins/xxsimpleinit.py @ 66:c54768cffbd4 ornery-dev

Traipse Dev 'OpenRPG' {090818-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: *Unstable* This is the first wave of Code Refinement updates. Includes new material from Core Beta; new debugger material (partially implemented), beginnings of switch to etree, TerminalWriter, and a little more. open_rpg has been renamed to component; functioning now as component.get(), component.add(), component.delete(). This version has known bugs, specifically with the gametree and nodes. I think the XML files where not removed during testing of Core and switching back.
author sirebral
date Tue, 18 Aug 2009 06:33:37 -0500
parents c160f26ecf65
children 4dc11df853bf
comparison
equal deleted inserted replaced
65:4840657c23c5 66:c54768cffbd4
8 # 8 #
9 # !self : instance of self 9 # !self : instance of self
10 # !openrpg : instance of the the base openrpg control 10 # !openrpg : instance of the the base openrpg control
11 def __init__(self, plugindb, parent): 11 def __init__(self, plugindb, parent):
12 orpg.pluginhandler.PluginHandler.__init__(self, plugindb, parent) 12 orpg.pluginhandler.PluginHandler.__init__(self, plugindb, parent)
13 self.orpgframe = open_rpg.get_component('frame') 13 self.orpgframe = component.get('frame')
14 14
15 # The Following code should be edited to contain the proper information 15 # The Following code should be edited to contain the proper information
16 self.name = 'Simple Init' 16 self.name = 'Simple Init'
17 self.author = 'Dj Gilcrease + Tyler Starke' 17 self.author = 'Dj Gilcrease + Tyler Starke'
18 self.help = 'This is a simplistic Init tool that does not rely on Chat message parsing' 18 self.help = 'This is a simplistic Init tool that does not rely on Chat message parsing'
274 274
275 class InitFrame(wx.Frame): 275 class InitFrame(wx.Frame):
276 def __init__(self, plugin): 276 def __init__(self, plugin):
277 self.plugin = plugin 277 self.plugin = plugin
278 self.toggle = plugin.toggle 278 self.toggle = plugin.toggle
279 self.log = open_rpg.get_component('log') 279 self.log = component.get('log')
280 self.log.log("Enter InitFrame", ORPG_DEBUG) 280 self.log.log("Enter InitFrame", ORPG_DEBUG)
281 281
282 wx.Frame.__init__(self, None, wx.ID_ANY, title="Simple Init", style=wx.DEFAULT_FRAME_STYLE) 282 wx.Frame.__init__(self, None, wx.ID_ANY, title="Simple Init", style=wx.DEFAULT_FRAME_STYLE)
283 self.SetOwnBackgroundColour('#EFEFEF') 283 self.SetOwnBackgroundColour('#EFEFEF')
284 284
285 self.dir_struct = open_rpg.get_component('dir_struct') 285 self.dir_struct = component.get('dir_struct')
286 self.settings = open_rpg.get_component('settings') 286 self.settings = component.get('settings')
287 self.xml = open_rpg.get_component('xml') 287 self.xml = component.get('xml')
288 self.validate = open_rpg.get_component('validate') 288 self.validate = component.get('validate')
289 289
290 self.Freeze() 290 self.Freeze()
291 self.buildMenu() 291 self.buildMenu()
292 self.buildButtons() 292 self.buildButtons()
293 self.buildGUI() 293 self.buildGUI()
296 self.Bind(wx.EVT_CLOSE, self.onCloseWindow) 296 self.Bind(wx.EVT_CLOSE, self.onCloseWindow)
297 297
298 self.log.log("Exit InitFrame", ORPG_DEBUG) 298 self.log.log("Exit InitFrame", ORPG_DEBUG)
299 299
300 def InitSetup(self): 300 def InitSetup(self):
301 self.chat = open_rpg.get_component('chat') 301 self.chat = component.get('chat')
302 self.gametree = open_rpg.get_component('tree') 302 self.gametree = component.get('tree')
303 self.map = open_rpg.get_component('map') 303 self.map = component.get('map')
304 self.session = open_rpg.get_component('session') 304 self.session = component.get('session')
305 305
306 self.initIdx = -1 306 self.initIdx = -1
307 self.Thaw() 307 self.Thaw()
308 308
309 def initSort(self, item1, item2): 309 def initSort(self, item1, item2):