Goonstation 13 - Modules - TypesVar Details - Proc Details

/datum/tooltips

Vars

clickTipsAll the tooltips opened by clicking on targets. Should contain only visible tooltips
debugWhether tooltip debugging enabled
hoverTipThe tooltip used for hovering over a target (we assume clients can only hover over one thing at a time)
htmlThe tooltip HTML, for caching
mapControlThe control ID of the map
mapIdThe window ID that contains the map
ownerThe client
preloadedClickTipA preloaded tooltip to use for the next shown pinned tooltip
windowPrefixAll created tooltip window IDs will have this prefix

Procs

canShowHoverDetermine if we're allowed to show hover tooltips to a client
clearAllSpecial method to remove all tooltip windows Used on client login to clean up any tooltips that might have been stuck open from a previous round
findClickTipFind a tooltip that was opened by clicking on a specific target
hideHide a tooltip
hideAllHide all tooltips of any type
hideAllClickTipsHide all tooltips that were opened by clicking on any target
hideOnTargetHide any type of tooltip opened on a specific target
loadAssetsSend browser assets to the client
onMoveCalled on mob move
onResizeCalled on window resize
onTooltipRemovedCalled when a tooltip is deleted. Do not call manually.
preloadPreload a tooltip by creating it ahead of time whilst remaining invisible Intended to speed up initial show times
resetMove all visible tooltips Experimental and incomplete, do not use Escape hatch to completely reset in case of a broken state
showShow a tooltip

Var Details

clickTips

All the tooltips opened by clicking on targets. Should contain only visible tooltips

debug

Whether tooltip debugging enabled

hoverTip

The tooltip used for hovering over a target (we assume clients can only hover over one thing at a time)

html

The tooltip HTML, for caching

mapControl

The control ID of the map

mapId

The window ID that contains the map

owner

The client

preloadedClickTip

A preloaded tooltip to use for the next shown pinned tooltip

windowPrefix

All created tooltip window IDs will have this prefix

Proc Details

canShowHover

Determine if we're allowed to show hover tooltips to a client

clearAll

Special method to remove all tooltip windows Used on client login to clean up any tooltips that might have been stuck open from a previous round

findClickTip

Find a tooltip that was opened by clicking on a specific target

hide

Hide a tooltip

Arguments:

hideAll

Hide all tooltips of any type

hideAllClickTips

Hide all tooltips that were opened by clicking on any target

hideOnTarget

Hide any type of tooltip opened on a specific target

loadAssets

Send browser assets to the client

onMove

Called on mob move

onResize

Called on window resize

onTooltipRemoved

Called when a tooltip is deleted. Do not call manually.

preload

Preload a tooltip by creating it ahead of time whilst remaining invisible Intended to speed up initial show times

reset

Move all visible tooltips Experimental and incomplete, do not use Escape hatch to completely reset in case of a broken state

show

Show a tooltip

Arguments: