Mercurial > traipse
diff orpg/mapper/base_handler.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 | 211ac836b6a0 |
children | ff154cf3350c |
line wrap: on
line diff
--- a/orpg/mapper/base_handler.py Thu Aug 13 13:14:10 2009 -0500 +++ b/orpg/mapper/base_handler.py Thu Aug 27 01:04:43 2009 -0500 @@ -30,7 +30,7 @@ from orpg.orpg_windows import * -from orpg.orpgCore import open_rpg +from orpg.orpgCore import component class base_layer_handler(wx.Panel): @@ -39,7 +39,7 @@ self.canvas = canvas self.map_frame = self.canvas.frame self.top_frame = self.canvas.frame.top_frame - self.chat = open_rpg.get_component("chat") + self.chat = component.get("chat") self.build_ctrls() self.build_menu() #self.Bind(wx.EVT_SIZE, self.on_size) @@ -51,15 +51,15 @@ self.buttonsizer = wx.BoxSizer(wx.HORIZONTAL) self.zoom_in_button = createMaskedButton( self, - orpg.dirpath.dir_struct["icon"]+'zoom_in.gif', "Zoom in from x1.0", wx.ID_ANY ) + dir_struct["icon"]+'zoom_in.gif', "Zoom in from x1.0", wx.ID_ANY ) self.zoom_out_button = createMaskedButton( self, - orpg.dirpath.dir_struct["icon"]+'zoom_out.gif', "Zoom out from x1.0", wx.ID_ANY ) + dir_struct["icon"]+'zoom_out.gif', "Zoom out from x1.0", wx.ID_ANY ) props = createMaskedButton( self, - orpg.dirpath.dir_struct["icon"]+'compass.gif', 'Edit map properties', wx.ID_ANY ) + dir_struct["icon"]+'compass.gif', 'Edit map properties', wx.ID_ANY ) mapopen = createMaskedButton( self, - orpg.dirpath.dir_struct["icon"]+'open.bmp', 'Load a map', wx.ID_ANY, '#c0c0c0', wx.BITMAP_TYPE_BMP ) + dir_struct["icon"]+'open.bmp', 'Load a map', wx.ID_ANY, '#c0c0c0', wx.BITMAP_TYPE_BMP ) mapsave = createMaskedButton( self, - orpg.dirpath.dir_struct["icon"]+'save.bmp', 'Save the map', wx.ID_ANY, '#c0c0c0', wx.BITMAP_TYPE_BMP ) + dir_struct["icon"]+'save.bmp', 'Save the map', wx.ID_ANY, '#c0c0c0', wx.BITMAP_TYPE_BMP ) self.buttonsizer.Add(self.zoom_in_button, 0, wx.ALIGN_CENTER ) self.buttonsizer.Add(self.zoom_out_button, 0, wx.ALIGN_CENTER ) self.buttonsizer.Add(props, 0, wx.ALIGN_CENTER ) @@ -98,7 +98,7 @@ self.main_menu = main_menu def on_save_map_jpg(self, evt): - directory = orpg.dirpath.dir_struct["user"] + directory = dir_struct["user"] if directory == None: directory = "" d = wx.FileDialog(self.GetParent(), "Save map as a jpg", directory, "", "*.jpg", wx.SAVE)