1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-09 03:25:28 +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)