mirror of
https://github.com/luanti-org/luanti.git
synced 2025-11-06 18:25:21 +01:00
Fix indentation
This commit is contained in:
@@ -3897,8 +3897,9 @@ For example:
|
|||||||
* X1, Y1, ... Z2 are coordinates
|
* X1, Y1, ... Z2 are coordinates
|
||||||
* `relative_to`: Optional. If set to a position, each coordinate
|
* `relative_to`: Optional. If set to a position, each coordinate
|
||||||
can use the tilde notation for relative positions
|
can use the tilde notation for relative positions
|
||||||
* Tilde notation: "~": Relative coordinate
|
* Tilde notation:
|
||||||
"~<number>": Relative coordinate plus <number>
|
* `"~"`: Relative coordinate
|
||||||
|
* `"~<number>"`: Relative coordinate plus `<number>`
|
||||||
* Example: `minetest.string_to_area("(1,2,3) (~5,~-5,~)", {x=10,y=10,z=10})`
|
* Example: `minetest.string_to_area("(1,2,3) (~5,~-5,~)", {x=10,y=10,z=10})`
|
||||||
returns `{x=1,y=2,z=3}, {x=15,y=5,z=10}`
|
returns `{x=1,y=2,z=3}, {x=15,y=5,z=10}`
|
||||||
* `minetest.formspec_escape(string)`: returns a string
|
* `minetest.formspec_escape(string)`: returns a string
|
||||||
@@ -5538,9 +5539,10 @@ Call these functions only at load time!
|
|||||||
giving a type - use this for custom damage types.
|
giving a type - use this for custom damage types.
|
||||||
* `punch`: Was punched. `reason.object` will hold the puncher, or nil if none.
|
* `punch`: Was punched. `reason.object` will hold the puncher, or nil if none.
|
||||||
* `fall`
|
* `fall`
|
||||||
* `node_damage`: `damage_per_second` from a neighboring node.
|
* `node_damage`:
|
||||||
`reason.node` will hold the node name or nil.
|
* `damage_per_second` from a neighboring node.
|
||||||
`reason.node_pos` will hold the position of the node
|
* `reason.node` will hold the node name or nil.
|
||||||
|
* `reason.node_pos` will hold the position of the node
|
||||||
* `drown`
|
* `drown`
|
||||||
* `respawn`
|
* `respawn`
|
||||||
* Any of the above types may have additional fields from mods.
|
* Any of the above types may have additional fields from mods.
|
||||||
|
|||||||
@@ -206,9 +206,9 @@ Passed to `HTTPApiTable.fetch` callback. Returned by
|
|||||||
* `core.show_path_select_dialog(formname, caption, is_file_select)`
|
* `core.show_path_select_dialog(formname, caption, is_file_select)`
|
||||||
* shows a path select dialog
|
* shows a path select dialog
|
||||||
* `formname` is base name of dialog response returned in fields
|
* `formname` is base name of dialog response returned in fields
|
||||||
- if dialog was accepted `"_accepted"`
|
* if dialog was accepted `"_accepted"`
|
||||||
will be added to fieldname containing the path
|
will be added to fieldname containing the path
|
||||||
- if dialog was canceled `"_cancelled"`
|
* if dialog was canceled `"_cancelled"`
|
||||||
will be added to fieldname value is set to formname itself
|
will be added to fieldname value is set to formname itself
|
||||||
* if `is_file_select` is `true`, a file and not a folder will be selected
|
* if `is_file_select` is `true`, a file and not a folder will be selected
|
||||||
* returns nil or selected file/folder
|
* returns nil or selected file/folder
|
||||||
@@ -420,10 +420,10 @@ For a complete list of methods of the `Settings` object see
|
|||||||
the result of `async_job` is passed to this function
|
the result of `async_job` is passed to this function
|
||||||
|
|
||||||
## Limitations of Async Operations
|
## Limitations of Async Operations
|
||||||
* No access to global lua variables, don't even try
|
|
||||||
* Limited set of available functions
|
* No access to global lua variables, don't even try
|
||||||
e.g. No access to functions modifying menu like `core.start`, `core.close`,
|
* Limited set of available functions, e.g. No access to functions modifying menu
|
||||||
`core.show_path_select_dialog`
|
like `core.start`, `core.close`, `core.show_path_select_dialog`
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user