CLears up all parts and bindings
Closes this element when its background is clicked
Calls closeMethod if an overlay is opened
Draws the tooltips overlays
Should draw any overlays (screen space)
Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such
Forwards the map movement keybindings so you can move the map with the arrow keys
Forwards the game speed keybindings so you can toggle pause / Fastforward in the building tooltip and such
Returns the instance of the given renderer or null
Internal sell method
the action used to destroy / sell
Internal helper to rerender the health bar
Internal helper to rerender the title and health bar
Updates the number of attached parts, used for the css layout
Should return true if this overlay is open and currently blocking any user interaction
Opens the entities wiki page
Handles a resync
Handles a change in the selected entity
Callback to show the wiki dialog
Tries to sell the structure
Registers a new click detector
Should return true if the widget has a modal dialog opened and thus the game does not need to update / redraw
Helper method to construct a new click detector
The element to listen on
The handler to call on this object
Click detector arguments
Updates the tooltip
Cleans up all parts