mirror of
https://github.com/minetest/minetest.git
synced 2024-11-23 16:13:46 +01:00
Documentation for highest formspec_version[] and changelog (#10592)
This commit is contained in:
parent
e638056523
commit
6f8a1c99d5
@ -2113,6 +2113,22 @@ Examples
|
|||||||
list[current_player;main;0,3.5;8,4;]
|
list[current_player;main;0,3.5;8,4;]
|
||||||
list[current_player;craft;3,0;3,3;]
|
list[current_player;craft;3,0;3,3;]
|
||||||
list[current_player;craftpreview;7,1;1,1;]
|
list[current_player;craftpreview;7,1;1,1;]
|
||||||
|
|
||||||
|
Version History
|
||||||
|
---------------
|
||||||
|
|
||||||
|
* FORMSPEC VERSION 1:
|
||||||
|
* (too much)
|
||||||
|
* FORMSPEC VERSION 2:
|
||||||
|
* Forced real coordinates
|
||||||
|
* background9[]: 9-slice scaling parameters
|
||||||
|
* FORMSPEC VERSION 3:
|
||||||
|
* 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:
|
||||||
|
* Allow dropdown indexing events
|
||||||
|
|
||||||
Elements
|
Elements
|
||||||
--------
|
--------
|
||||||
@ -2125,6 +2141,7 @@ Elements
|
|||||||
* Clients older than this version can neither show newer elements nor display
|
* Clients older than this version can neither show newer elements nor display
|
||||||
elements with new arguments correctly.
|
elements with new arguments correctly.
|
||||||
* Available since feature `formspec_version_element`.
|
* Available since feature `formspec_version_element`.
|
||||||
|
* See also: [Version History]
|
||||||
|
|
||||||
### `size[<W>,<H>,<fixed_size>]`
|
### `size[<W>,<H>,<fixed_size>]`
|
||||||
|
|
||||||
|
@ -226,22 +226,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#define PASSWORD_SIZE 28 // Maximum password length. Allows for
|
#define PASSWORD_SIZE 28 // Maximum password length. Allows for
|
||||||
// base64-encoded SHA-1 (27+\0).
|
// base64-encoded SHA-1 (27+\0).
|
||||||
|
|
||||||
/*
|
// See also: Formspec Version History in doc/lua_api.txt
|
||||||
Changes by FORMSPEC_API_VERSION:
|
|
||||||
|
|
||||||
FORMSPEC VERSION 1:
|
|
||||||
(too much)
|
|
||||||
FORMSPEC VERSION 2:
|
|
||||||
Forced real coordinates
|
|
||||||
background9[]: 9-slice scaling parameters
|
|
||||||
FORMSPEC VERSION 3:
|
|
||||||
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:
|
|
||||||
Allow dropdown indexing events
|
|
||||||
*/
|
|
||||||
#define FORMSPEC_API_VERSION 4
|
#define FORMSPEC_API_VERSION 4
|
||||||
|
|
||||||
#define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"
|
#define TEXTURENAME_ALLOWED_CHARS "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_.-"
|
||||||
|
Loading…
Reference in New Issue
Block a user