Document & bump version

This commit is contained in:
SmallJoker 2024-05-08 09:33:26 +02:00
parent 2a79f25178
commit 039d1f42ae
2 changed files with 6 additions and 2 deletions

View File

@ -2683,6 +2683,7 @@ Version History
* Formspec version 7 (5.8.0):
* style[]: Add focused state for buttons
* Add field_enter_after_edit[] (experimental)
* Formspec version 8 (5.9.0)
Elements
--------
@ -2774,7 +2775,10 @@ Elements
`scrollbar name` times `scroll factor` along the orientation `orientation` and
* be clipped to the rectangle defined by `X`, `Y`, `W` and `H`.
* `orientation`: possible values are `vertical` and `horizontal`.
* `scroll factor`: optional, defaults to `0.1`.
* `scroll factor`: (optional), multiplicator for the associated scrollbar scroll position.
* Defaults to `0.1`.
* `auto` will calculate the multiplicator based on the contents
* Requires formspec version >= 8.
* Nesting is possible.
* Some elements might work a little different if they are in a scroll_container.
* Note: If you want the scroll_container to actually work, you also need to add a

View File

@ -244,7 +244,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
// base64-encoded SHA-1 (27+\0).
// See also formspec [Version History] in doc/lua_api.md
#define FORMSPEC_API_VERSION 7
#define FORMSPEC_API_VERSION 8
#define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"