Package horizons :: Package world :: Package managers :: Module statusiconmanager :: Class StatusIconManager
[hide private]
[frames] | no frames]

Class StatusIconManager

source code

Manager class that manages all status icons. It listenes to AddStatusIcon and RemoveStatusIcon messages on the main message bus

Instance Methods [hide private]
 
__init__(self, renderer, layer) source code
 
end(self) source code
 
on_add_icon_message(self, message)
This is called by the message bus with AddStatusIcon messages
source code
 
on_worldobject_deleted_message(self, message) source code
 
on_remove_icon_message(self, message)
Called by the MessageBus with RemoveStatusIcon messages.
source code
 
__render_status(self, instance, status) source code
 
get_status_string(self, instance)
Returns render name for status icons of this instance
source code
 
on_hover_instances_changed(self, msg)
Check if we need to display a tooltip
source code
Method Details [hide private]

__init__(self, renderer, layer)
(Constructor)

source code 
Parameters:
  • renderer - Renderer used to render the icons
  • layer - map layer, needed to place icon