Module ...

A generic tooltip

Functions

_M:displayAtMap (tmx, tmy, mx, my, text) Displays the tooltip at the given map coordinates
_M:getTooltipAtMap (tmx, tmy, mx, my) Gets the tooltips at the given map coord This method can/should be overloaded by a module to provide custom tooltips
_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:getTooltipAtMap (tmx, tmy, mx, my)
Gets the tooltips at the given map coord This method can/should be overloaded by a module to provide custom tooltips

Parameters

  • tmx:
  • tmy:
  • mx:
  • my:
_M:set (str, ...)
Set the tooltip text

Parameters

  • str:
  • ...:

Valid XHTML 1.0!