mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 18:25:21 +01:00
Fix some indentation
This commit is contained in:
@@ -17,11 +17,11 @@ shown), the following controls are available:
|
||||
* Press back: Pause menu
|
||||
* Touch buttons: Press button
|
||||
* Buttons:
|
||||
1. Upper-left corner: Chat
|
||||
2. Lower-right corner: Jump
|
||||
3. Lower-right corner: Crouch
|
||||
4. Lower-left corner (Joystick): Walk
|
||||
5. Lower-left corner: Display inventory
|
||||
1. Upper-left corner: Chat
|
||||
2. Lower-right corner: Jump
|
||||
3. Lower-right corner: Crouch
|
||||
4. Lower-left corner (Joystick): Walk
|
||||
5. Lower-left corner: Display inventory
|
||||
|
||||
When a menu or inventory is displayed:
|
||||
* Double tap outside menu area / Press back: Close menu
|
||||
|
||||
@@ -561,8 +561,8 @@ Call these functions only at load time!
|
||||
* Example: `write_json({10, {a = false}})`, returns `"[10, {\"a\": false}]"`
|
||||
> [!WARNING]
|
||||
> JSON is more strict than the Lua table format.
|
||||
> 1. You can only use strings and positive integers of at least one as keys.
|
||||
> 2. You cannot mix string and integer keys. This is due to the fact that JSON has
|
||||
> 1. You can only use strings and positive integers of at least one as keys.
|
||||
> 2. You cannot mix string and integer keys. This is due to the fact that JSON has
|
||||
> two distinct array and object values.
|
||||
* `minetest.serialize(table)`: returns a string
|
||||
* Convert a table containing tables, strings, numbers, booleans and `nil`s
|
||||
|
||||
@@ -3060,8 +3060,8 @@ background elements are drawn before all other elements.
|
||||
* Show a dropdown field
|
||||
> [!NOTE]
|
||||
> There are two different operation modes:
|
||||
> 1. handle directly on change (only changed dropdown is submitted)
|
||||
> 2. read the value on pressing a button (all dropdown values are available)
|
||||
> 1. handle directly on change (only changed dropdown is submitted)
|
||||
> 2. read the value on pressing a button (all dropdown values are available)
|
||||
* `X` and `Y`: position of the dropdown
|
||||
* `W`: width of the dropdown. Height is automatically chosen with this syntax.
|
||||
* Fieldname data is transferred to Lua
|
||||
@@ -3080,8 +3080,8 @@ background elements are drawn before all other elements.
|
||||
|
||||
> [!NOTE]
|
||||
> There are two different operation modes:
|
||||
> 1. handle directly on change (only changed dropdown is submitted)
|
||||
> 2. read the value on pressing a button (all dropdown values are available)
|
||||
> 1. handle directly on change (only changed dropdown is submitted)
|
||||
> 2. read the value on pressing a button (all dropdown values are available)
|
||||
* `X` and `Y`: position of the dropdown
|
||||
* `W` and `H`: width and height of the dropdown
|
||||
* Fieldname data is transferred to Lua
|
||||
|
||||
Reference in New Issue
Block a user