Module ...
Displays a tooltip
Functions
_M:displayAtMap (tmx, tmy, mx, my, text) | Displays the tooltip at the given map coordinates |
_M:set (str, ...) | Set the tooltip text |
Functions
- _M:displayAtMap (tmx, tmy, mx, my, text)
-
Displays the tooltip at the given map coordinates
Parameters
- tmx: the map coordinate to get tooltip from
- tmy: the map coordinate to get tooltip from
- mx: the screen coordinate to display at, if nil it will be computed from tmx
- my: the screen coordinate to display at, if nil it will be computed from tmy
- text: a text to display, if nil it will interrogate the map under the mouse using the "tooltip" property
- _M:set (str, ...)
-
Set the tooltip text
Parameters
- str:
- ...: