Clean up supertip documentation

This commit is contained in:
Wuzzy 2024-06-08 11:09:00 +02:00
parent 3638d93b77
commit f2422a2596

@ -2840,6 +2840,7 @@ Elements
### `tooltip[<gui_element_name>;<tooltip_text>;<bgcolor>;<fontcolor>]` ### `tooltip[<gui_element_name>;<tooltip_text>;<bgcolor>;<fontcolor>]`
* Adds tooltip for an element * Adds tooltip for an element
* It has to be declared *after* the element that is bound to
* `bgcolor` tooltip background color as `ColorString` (optional) * `bgcolor` tooltip background color as `ColorString` (optional)
* `fontcolor` tooltip font color as `ColorString` (optional) * `fontcolor` tooltip font color as `ColorString` (optional)
@ -2853,7 +2854,7 @@ Elements
* Adds an advanced tooltip for an element. Displays a formatted text using * Adds an advanced tooltip for an element. Displays a formatted text using
`Markup Language` in a tooltip. `Markup Language` in a tooltip.
This supertip have to be declared *after* its parent element that is bound to. * This supertip has to be declared *after* the element that is bound to.
* `staticPos` is an optional position of the form `posX,posY` in formspec coordinates. * `staticPos` is an optional position of the form `posX,posY` in formspec coordinates.
If specified, the tooltip will always appear at these given formspec coordinates. If specified, the tooltip will always appear at these given formspec coordinates.
If this field is empty, the tooltip will follow the cursor. If this field is empty, the tooltip will follow the cursor.
@ -2866,12 +2867,7 @@ Elements
* Adds an advanced tooltip for an area. Displays a formatted text using * Adds an advanced tooltip for an area. Displays a formatted text using
`Markup Language` in a tooltip. `Markup Language` in a tooltip.
* `X`, `Y`, `W` and `H` set the cursor hover area that allows the tooltip to pop-up. * `X`, `Y`, `W` and `H` set the cursor hover area that allows the tooltip to pop-up.
* `staticPos` is an optional position of the form `posX,posY` in formspec coordinates. * `staticPos`, `width`, `name`, `text`: See above.
If specified, the tooltip will always appear at these given formspec coordinates.
If this field is empty, the tooltip will follow the cursor.
* `width` sets the tooltip width (in formspec units).
* `name` is the name of the field.
* `text` is the formatted text using `Markup Language` described below.
### `image[<X>,<Y>;<W>,<H>;<texture name>;<middle>]` ### `image[<X>,<Y>;<W>,<H>;<texture name>;<middle>]`