mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Add package update detection on Content tab (#13807)
This commit is contained in:
parent
ddce858c34
commit
4ee32c5441
16 changed files with 329 additions and 54 deletions
|
@ -672,6 +672,9 @@ Minetest namespace reference
|
|||
* If a flag in this table is set to true, the feature is RESTRICTED.
|
||||
* Possible flags: `load_client_mods`, `chat_messages`, `read_itemdefs`,
|
||||
`read_nodedefs`, `lookup_nodes`, `read_playerinfo`
|
||||
* `minetest.urlencode(str)`: Encodes non-unreserved URI characters by a
|
||||
percent sign followed by two hex digits. See
|
||||
[RFC 3986, section 2.3](https://datatracker.ietf.org/doc/html/rfc3986#section-2.3).
|
||||
|
||||
### Logging
|
||||
* `minetest.debug(...)`
|
||||
|
@ -1551,4 +1554,4 @@ Same as `image`, but does not accept a `position`; the position is instead deter
|
|||
texture = "image.png",
|
||||
-- ^ Uses texture (string)
|
||||
}
|
||||
```
|
||||
```
|
||||
|
|
|
@ -50,7 +50,7 @@ methods:
|
|||
^ tab:
|
||||
{
|
||||
name = "tabname", -- name of tab to create
|
||||
caption = "tab caption", -- text to show for tab header
|
||||
caption = "tab caption", -- text to show for tab header. Either a string or a function: (tabview) -> string
|
||||
cbf_button_handler = function(tabview, fields, tabname, tabdata), -- callback for button events
|
||||
--TODO cbf_events = function(tabview, event, tabname), -- callback for events
|
||||
cbf_formspec = function(tabview, name, tabdata), -- get formspec
|
||||
|
|
|
@ -5406,6 +5406,9 @@ Utilities
|
|||
use `colorspec_to_bytes` to generate raw RGBA values in a predictable way.
|
||||
The resulting PNG image is always 32-bit. Palettes are not supported at the moment.
|
||||
You may use this to procedurally generate textures during server init.
|
||||
* `minetest.urlencode(str)`: Encodes non-unreserved URI characters by a
|
||||
percent sign followed by two hex digits. See
|
||||
[RFC 3986, section 2.3](https://datatracker.ietf.org/doc/html/rfc3986#section-2.3).
|
||||
|
||||
Logging
|
||||
-------
|
||||
|
|
|
@ -101,7 +101,7 @@ HTTP Requests
|
|||
* `core.download_file(url, target)` (possible in async calls)
|
||||
* `url` to download, and `target` to store to
|
||||
* returns true/false
|
||||
* `minetest.get_http_api()` (possible in async calls)
|
||||
* `core.get_http_api()` (possible in async calls)
|
||||
* returns `HTTPApiTable` containing http functions.
|
||||
* The returned table contains the functions `fetch_sync`, `fetch_async` and
|
||||
`fetch_async_get` described below.
|
||||
|
@ -394,10 +394,13 @@ Helpers
|
|||
* eg. `string.trim("\n \t\tfoo bar\t ")` == `"foo bar"`
|
||||
* `core.is_yes(arg)` (possible in async calls)
|
||||
* returns whether `arg` can be interpreted as yes
|
||||
* `minetest.encode_base64(string)` (possible in async calls)
|
||||
* `core.encode_base64(string)` (possible in async calls)
|
||||
* Encodes a string in base64.
|
||||
* `minetest.decode_base64(string)` (possible in async calls)
|
||||
* `core.decode_base64(string)` (possible in async calls)
|
||||
* Decodes a string encoded in base64.
|
||||
* `core.urlencode(str)`: Encodes non-unreserved URI characters by a
|
||||
percent sign followed by two hex digits. See
|
||||
[RFC 3986, section 2.3](https://datatracker.ietf.org/doc/html/rfc3986#section-2.3).
|
||||
|
||||
|
||||
Async
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue