1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-06 10:15:19 +01:00

Enforce newline after headings

This commit is contained in:
Bradley Pierce
2024-01-25 21:36:41 -05:00
parent f22efe7116
commit 0fa914a6d1
7 changed files with 36 additions and 0 deletions

View File

@@ -52,13 +52,16 @@ configuration file can usually be found at:
## Useful Settings
### `gui_scaling`
This is a user-specified scaling factor for the GUI. If the main menu is too big or small on your device, try changing
this value.
### `mapblock_limit`
Mobile devices generally have less RAM than PC, this setting limits how many mapblock can be kept in RAM.
### `fps_limit`
This setting limits maximum FPS. The default value is `60`, which is the lowest commonly found
Android refresh rate, but if you're using a device with a lower refresh rate, change this.

View File

@@ -709,6 +709,7 @@ Please do not try to access the reference until the camera is initialized, other
* Returns aspect ratio of screen
## `LocalPlayer`
An interface to retrieve information about the player.
This object will only be available after the client is initialized. Earlier accesses will yield a `nil` value.
@@ -825,6 +826,7 @@ Methods:
* Returns `true` on success, otherwise returns `nil`
## `Settings`
An interface to read config files in the format of `minetest.conf`.
It can be created via `Settings(filename)`.
@@ -841,6 +843,7 @@ It can be created via `Settings(filename)`.
* `to_table()`: returns `{[key1]=value1,...}`
## `NodeMetaRef`
Node metadata: reference extra data and functionality stored in a node.
Can be obtained via `minetest.get_meta(pos)`.

View File

@@ -2936,6 +2936,7 @@ background elements are drawn before all other elements.
coordinate. With the old system, newlines are spaced 2/5 of an inventory slot.
### `hypertext[<X>,<Y>;<W>,<H>;<name>;<text>]`
* Displays a static formatted text with hyperlinks.
> [!WARNING]
> This element is currently unstable and subject to change.
@@ -2944,6 +2945,7 @@ background elements are drawn before all other elements.
* `text` is the formatted text using `Markup Language` described below.
### `vertlabel[<X>,<Y>;<label>]`
* Textual label drawn vertically
* `label` is the text on the label
> [!NOTE]
@@ -3112,6 +3114,7 @@ background elements are drawn before all other elements.
* See also `minetest.explode_scrollbar_event`
### `scrollbaroptions[opt1;opt2;...]`
* Sets options for all following `scrollbar[]` elements
* `min=<int>`
* Sets scrollbar minimum value, defaults to `0`.

View File

@@ -1,4 +1,5 @@
# Minetest Lua Mainmenu API Reference 5.8.0
## Introduction
The main menu is defined as a formspec by Lua in `builtin/mainmenu/`

View File

@@ -18,28 +18,33 @@ Texture pack directory structure
`-- Another Texture Pack
### Texture Pack
This is a directory containing the entire contents of a single texture pack.
It can be chosen more or less freely and will also become the name of the
texture pack. The name must not be "base".
### `texture_pack.conf`
A key-value config file with the following keys:
* `title` - human readable title
* `description` - short description, shown in the content tab
### `description.txt`
**Deprecated**, you should use texture_pack.conf instead.
A file containing a short description of the texture pack to be shown in the
content tab.
### `screenshot.png`
A preview image showing an in-game screenshot of this texture pack; it will be
shown in the texture packs tab. It should have an aspect ratio of 3:2 and a
minimum size of 300×200 pixels.
### `your_texture_1.png`, `your_texture_2.png`, etc.
Any other PNG files will be interpreted as textures. They must have the same
names as the textures they are supposed to override. For example, to override
the apple texture of Minetest Game, add a PNG file named `default_apple.png`.

View File

@@ -288,6 +288,7 @@ storing coordinates separately), but the format has been kept unchanged for
that part.
## `map.sqlite`
`map.sqlite` is a `SQLite3` database, containing a single table, called
`blocks`. It looks like this:
@@ -423,6 +424,7 @@ Timestamp and node ID mappings were introduced in map format version 29.
* Always 2
## Node Data
> [!NOTE]
> Zlib-compressed before map format version 29
@@ -439,6 +441,7 @@ Timestamp and node ID mappings were introduced in map format version 29.
* The location of a node in each of those arrays is `(z*16*16 + y*16 + x)`.
### Node Metadata List
> [!NOTE]
> Zlib-compressed before map version format 29
* Before map format version 23:
@@ -470,6 +473,7 @@ Timestamp and node ID mappings were introduced in map format version 29.
> Version type was `u16` before map format version 23
## Node Timers
* Map format version 23:
* `u8` unused version (always 0)

View File

@@ -5,9 +5,11 @@ Test Tools is a mod for developers that adds a bunch of tools to directly manipu
Here's the list of tools:
## Remover
Removes nodes and non-player entities that you punch.
## Node Setter
Replace a node with another one.
First, punch a node you want to remember.
@@ -16,6 +18,7 @@ Then rightclick any other node to replace it with the node you remembered.
If you rightclick while pointing nothing, you can manually enter the node and param2.
## Param2 Tool
Change the value param2 of nodes.
* Punch: Add 1 to param2
@@ -27,6 +30,7 @@ Change the value param2 of nodes.
> Use the debug screen (F5) to see the param2 of the pointed node.
## Falling Node Tool
Turns nodes into falling nodes.
Usage:
@@ -35,6 +39,7 @@ Usage:
* Place: Try to teleport up to 2 units upwards, then make it fall
## Node Meta Editor
Edit and view metadata of nodes.
Usage:
@@ -42,6 +47,7 @@ Usage:
* Punch: Open node metadata editor
## Item Meta Editor
Edit and view metadata of items.
Usage:
@@ -50,6 +56,7 @@ Usage:
inventory slot from the wielded item
## Entity Rotator
Changes the entity rotation (with `set_rotation`).
Usage:
@@ -61,6 +68,7 @@ Usage:
Each usage rotates the entity by 22.5°.
## Entity Spawner
Spawns entities.
Usage:
@@ -69,6 +77,7 @@ Usage:
* Place to place selected entity
## Object Property Editor
Edits properties of objects.
Usage:
@@ -80,6 +89,7 @@ To edit a property, select it in the list, enter a new value (in Lua syntax)
and hit "Submit".
## Object Attacher
Allows you to attach an object to another one.
Basic usage:
@@ -98,6 +108,7 @@ Hint: To detach all objects nearby you (including on yourself), use the
`/detach` server command.
## Object Mover
Move an object by a given distance.
Usage:
@@ -107,6 +118,7 @@ Usage:
* Sneak+place: Decrease move distance
## Children Getter
Shows list of objects that are attached to an object (aka "children") in chat.
Usage:
@@ -114,6 +126,7 @@ Usage:
* Punch air: Show your own children
## Entity Visual Scaler
Change visual size of entities
Usage:
@@ -122,6 +135,7 @@ Usage:
* Sneak+punch entity to decrease visual size
## Branding Iron
Give an object a temporary name.
Usage:
@@ -133,6 +147,7 @@ Usage:
Use `testtools.get_branded_object(name)` to get an ObjRef.
## Note Meta Privatizer
Sets the 'formspec' and 'infotext' metadata fields of a node
to private. This means that clients can no longer access these
fields.
@@ -142,6 +157,7 @@ Usage:
* Punch: Set metadata of pointed node to private
## Light Tool
Show light level of node.
Usage:
@@ -149,6 +165,7 @@ Usage:
* Place: Show light info of the node that you touched
## Particle Spawner
Spawn a random animated particle.
Usage: