/datum/tooltipOptions 
Vars | |
align | Computed axis alignment |
---|---|
bounds | Parsed target dimensions |
content | The main content body to display |
extra | Any random extra stuff |
hud | Whether the target is a non-map atom |
mouse | Parsed coordinate data as provided from MouseEntered etc procs in params |
offset | Computed tooltip positioning offsets |
pinned | Pinned means the tooltip requires clicking to open and close |
size | Computed tooltip size overrides |
theme | What theme to apply. See tooltip.css for available themes |
title | The text to display as a title |
transform | The transform matrix applied to the target atom |
Procs | |
pushTiles | Apply an extra positioning offset to the tooltip. |
setAlign | Set the position of the tooltip around the target |
setBounds | Set the dimensions of the target, required for tooltip positioning. Unlikely you will need to use this directly. |
setMouse | Parse and set the mouse target position |
setOffset | Set positioning offsets around the target, for example to push the tooltip down further away. |
setSize | Override the size of the tooltip.
Note that dimensions will still not exceed maximums set in tooltip.css , and are still subject to window/dpi scaling. |
Var Details
align 
Computed axis alignment
bounds 
Parsed target dimensions
content 
The main content body to display
extra 
Any random extra stuff
hud 
Whether the target is a non-map atom
mouse 
Parsed coordinate data as provided from MouseEntered etc procs in params
offset 
Computed tooltip positioning offsets
pinned 
Pinned means the tooltip requires clicking to open and close
size 
Computed tooltip size overrides
theme 
What theme to apply. See tooltip.css
for available themes
title 
The text to display as a title
transform 
The transform matrix applied to the target atom
Proc Details
pushTiles
Apply an extra positioning offset to the tooltip.
Arguments:
- direction (int) - Which way to push the tooltip, e.g.
NORTH
- amount (int) - How many tiles to move
setAlign
Set the position of the tooltip around the target
Arguments:
- flags (int) - Bitmask representing alignment. See
_std\defines\tooltips.dm
for available flags. Multiple flags can be combined, e.g.TOOLTIP_TOP | TOOLTIP_CENTER
setBounds
Set the dimensions of the target, required for tooltip positioning. Unlikely you will need to use this directly.
Arguments:
- newBounds (list) - Width and height respectively, e.g.
list(200, 300)
setMouse
Parse and set the mouse target position
Arguments:
- params (string) - Provided from MouseEntered (and similar) procs
setOffset
Set positioning offsets around the target, for example to push the tooltip down further away.
Arguments:
- newOffset (list) - X and Y pixels respectively, e.g.
list(10, 20)
setSize
Override the size of the tooltip.
Note that dimensions will still not exceed maximums set in tooltip.css
, and are still subject to window/dpi scaling.
Arguments:
- newSize (list) - Width and height respectively, e.g.
list(200, 300)
Use0
for either to use the automatic size for that axis