Cleans up the hud element, if overridden make sure to call super.cleanups
Should close the element, in case its supported
Closes this element when its background is clicked
Calls closeMethod if an overlay is opened
Should draw the hud
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
Should return true if this overlay is open and currently blocking any user interaction
Handles a destroyed structure
Marks the map as dirty so that the resources will be rerendered
Registers a new click detector
Rerenders the map structures
Rerenders the viewport and copies the map structures below
Should return false if the game should be paused
Should return true if the widget has a modal dialog opened and thus the game does not need to update / redraw
Spawns a new alert
How long to show it
On which tile to show it
Helper method to construct a new click detector
The element to listen on
The handler to call on this object
Click detector arguments
Transforms from screen space into minimap space (0 .. 1)
Transforms from screen space into minimap space (0 .. 1)
Updates the minimap, checks for changes
Internal change handler when the map is zoomed flag changed
Zooms in
Zooms out
{{ expireTime: number, tile: Vector, element: Element }} MinimapAlert