comparison orpg/mapper/base_handler.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 06f10429eedc
children
comparison
equal deleted inserted replaced
182:4b2884f29a72 227:81d0bfd5e800
19 # 19 #
20 # File: mapper/whiteboard_hander.py 20 # File: mapper/whiteboard_hander.py
21 # Author: OpenRPG Team 21 # Author: OpenRPG Team
22 # Maintainer: 22 # Maintainer:
23 # Version: 23 # Version:
24 # $Id: base_handler.py,v 1.20 2007/11/04 17:32:25 digitalxero Exp $ 24 # $Id: base_handler.py,v Traipse 'Ornery-Orc' prof.ebral Exp $
25 # 25 #
26 # Description: base layer handler. 26 # Description: base layer handler.
27 # layer handlers are responsible for the GUI elements of the layer 27 # layer handlers are responsible for the GUI elements of the layer
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 Traipse 'Ornery-Orc' prof.ebral Exp $"
30 30
31 31
32 from orpg.orpg_windows import * 32 from orpg.orpg_windows import *
33 from orpg.orpgCore import component 33 from orpg.orpgCore import component
34 34
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 = component.get("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)
46 self.Bind(wx.EVT_LEFT_DCLICK, self.on_left_dclick) 45 self.Bind(wx.EVT_LEFT_DCLICK, self.on_left_dclick)
47 46
48 def build_ctrls(self): 47 def build_ctrls(self):
49 self.basesizer = wx.BoxSizer(wx.HORIZONTAL) 48 self.basesizer = wx.BoxSizer(wx.HORIZONTAL)
50 self.sizer = wx.BoxSizer(wx.HORIZONTAL) 49 self.sizer = wx.BoxSizer(wx.HORIZONTAL)
51 self.buttonsizer = wx.BoxSizer(wx.HORIZONTAL) 50 self.buttonsizer = wx.BoxSizer(wx.HORIZONTAL)
52
53 self.zoom_in_button = createMaskedButton( self, 51 self.zoom_in_button = createMaskedButton( self,
54 dir_struct["icon"]+'zoom_in.gif', "Zoom in from x1.0", wx.ID_ANY ) 52 dir_struct["icon"]+'zoom_in.gif', "Zoom in from x1.0", wx.ID_ANY )
55 self.zoom_out_button = createMaskedButton( self, 53 self.zoom_out_button = createMaskedButton( self,
56 dir_struct["icon"]+'zoom_out.gif', "Zoom out from x1.0", wx.ID_ANY ) 54 dir_struct["icon"]+'zoom_out.gif', "Zoom out from x1.0", wx.ID_ANY )
57 props = createMaskedButton( self, 55 props = createMaskedButton( self,