Bump formspec version (#11980)

master
Vincent Robinson 2022-01-22 15:55:43 -08:00 committed by GitHub
parent 71317b8579
commit 95a775cd3a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -2271,18 +2271,20 @@ Examples
Version History
---------------
* FORMSPEC VERSION 1:
* Formspec version 1 (pre-5.1.0):
* (too much)
* FORMSPEC VERSION 2:
* Formspec version 2 (5.1.0):
* Forced real coordinates
* background9[]: 9-slice scaling parameters
* FORMSPEC VERSION 3:
* Formspec version 3 (5.2.0):
* Formspec elements are drawn in the order of definition
* bgcolor[]: use 3 parameters (bgcolor, formspec (now an enum), fbgcolor)
* box[] and image[] elements enable clipping by default
* new element: scroll_container[]
* FORMSPEC VERSION 4:
* Formspec version 4 (5.4.0):
* Allow dropdown indexing events
* Formspec version 5 (5.5.0):
* Added padding[] element
Elements
--------

View File

@ -230,7 +230,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.txt
#define FORMSPEC_API_VERSION 4
#define FORMSPEC_API_VERSION 5
#define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"