Fetches a keybinding and tracks it
Adds a new task to get executed every update tick
Clears up all click detectors and keybindings
Internal cleanup handler
Callback when the tooltip got closed
Can be used to update stuff like buttons which depend on how many crystals you have
Helper method to create the tooltip div
Cleanup callback, override to perform additional cleanupĆ¼ work
Override if this tooltip part depends on the structures enhancements
On close handler. Parts are not directly destroyed, only when the tooltip is finally hidden (after 500ms or so). However, this gets called when the tooltip was closed
Appends the part to a given parent
Cleans up the whole div contents, also clears up keybindings
Helper method to track clicks on an element
Perform any per-frame updates here