Skip to content

Commit

Permalink
Document & bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
SmallJoker committed May 8, 2024
1 parent 2a79f25 commit 039d1f4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion doc/lua_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
--------
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/network/networkprotocol.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_.-"

Expand Down

0 comments on commit 039d1f4

Please sign in to comment.