mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
move menu pages loader to Lua & add gui.load_document, file.ext(), file.prefix() & add core:gui_util module
This commit is contained in:
parent
da471bd4eb
commit
0a1a16299e
16 changed files with 156 additions and 55 deletions
|
|
@ -125,10 +125,22 @@ Combines objects from JSON files of different packs.
|
|||
file.name(path: str) --> str
|
||||
```
|
||||
|
||||
Extracts the file name from the path.
|
||||
Extracts the file name from the path. Example: `world:data/base/config.toml` -> `config.toml`.
|
||||
|
||||
``lua
|
||||
file.stem(path: str) --> str
|
||||
```
|
||||
|
||||
Extracts the file name from the path, removing the extension.
|
||||
Extracts the file name from the path, removing the extension. Example: `world:data/base/config.toml` -> `config`.
|
||||
|
||||
```lua
|
||||
file.ext(path: str) --> str
|
||||
```
|
||||
|
||||
Extracts the extension from the path. Example: `world:data/base/config.toml` -> `toml`.
|
||||
|
||||
```lua
|
||||
file.prefix(path: str) --> str
|
||||
```
|
||||
|
||||
Extracts the entry point (prefix) from the path. Example: `world:data/base/config.toml` -> `world`.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue