comparison orpg/mapper/base_handler.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 78407d627cba
children 449a8900f9ac
comparison
equal deleted inserted replaced
65:4840657c23c5 66:c54768cffbd4
28 # 28 #
29 __version__ = "$Id: base_handler.py,v 1.20 2007/11/04 17:32:25 digitalxero Exp $" 29 __version__ = "$Id: base_handler.py,v 1.20 2007/11/04 17:32:25 digitalxero Exp $"
30 30
31 31
32 from orpg.orpg_windows import * 32 from orpg.orpg_windows import *
33 from orpg.orpgCore import open_rpg 33 from orpg.orpgCore import component
34 34
35 class base_layer_handler(wx.Panel): 35 class base_layer_handler(wx.Panel):
36 36
37 def __init__(self, parent, id, canvas): 37 def __init__(self, parent, id, canvas):
38 wx.Panel.__init__(self, parent, id) 38 wx.Panel.__init__(self, parent, id)
39 self.canvas = canvas 39 self.canvas = canvas
40 self.map_frame = self.canvas.frame 40 self.map_frame = self.canvas.frame
41 self.top_frame = self.canvas.frame.top_frame 41 self.top_frame = self.canvas.frame.top_frame
42 self.chat = open_rpg.get_component("chat") 42 self.chat = component.get("chat")
43 self.build_ctrls() 43 self.build_ctrls()
44 self.build_menu() 44 self.build_menu()
45 #self.Bind(wx.EVT_SIZE, self.on_size) 45 #self.Bind(wx.EVT_SIZE, self.on_size)
46 self.Bind(wx.EVT_LEFT_DCLICK, self.on_left_dclick) 46 self.Bind(wx.EVT_LEFT_DCLICK, self.on_left_dclick)
47 47