Package horizons :: Package editor :: Module gui :: Class IngameGui
[hide private]
[frames] | no frames]

Class IngameGui

source code

util.living.LivingObject --+
                           |
                          IngameGui

Instance Methods [hide private]
 
__init__(self, session) source code
 
end(self)
Put all the code the object needs to end safely here.
source code
 
handle_selection_group(self, num, ctrl_pressed) source code
 
toggle_pause(self) source code
 
toggle_help(self) source code
 
load(self, savegame) source code
 
setup(self)
Called after the world editor was initialized.
source code
 
minimap_to_front(self)
Make sure the full right top gui is visible and not covered by some dialog
source code
 
show_save_map_dialog(self)
Shows a dialog where the user can set the name of the saved map.
source code
 
on_escape(self) source code
 
on_key_press(self, action, evt) source code
 
set_cursor(self, which='default', *args, **kwargs)
Sets the mousetool (i.e.
source code
 
_update_zoom(self, message)
Enable/disable zoom buttons
source code
Class Variables [hide private]
  minimap = livingProperty()
  keylistener = livingProperty()
  message_widget = livingProperty()
Method Details [hide private]

end(self)

source code 

Put all the code the object needs to end safely here. Make sure it always contains the super(YOUROBJECT, self).end() call, to ensure all parentobjects are deinited correctly.

Overrides: util.living.LivingObject.end
(inherited documentation)

set_cursor(self, which='default', *args, **kwargs)

source code 

Sets the mousetool (i.e. cursor). This is done here for encapsulation and control over destructors. Further arguments are passed to the mouse tool constructor.