comparison orpg/mapper/base_handler.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 06f10429eedc
children
comparison
equal deleted inserted replaced
182:4b2884f29a72 195:b633f4c64aae
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,