mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-26 18:21:04 +00:00
Allow any character in formspec strings with escape char
This commit is contained in:
parent
bdbdeab005
commit
ba78194636
5 changed files with 129 additions and 56 deletions
|
@ -778,6 +778,9 @@ string:trim()
|
|||
minetest.pos_to_string({x=X,y=Y,z=Z}) -> "(X,Y,Z)"
|
||||
^ Convert position to a printable string
|
||||
minetest.string_to_pos(string) -> position
|
||||
^ Same but in reverse
|
||||
minetest.formspec_escape(string) -> string
|
||||
^ escapes characters like [, ], and \ that can not be used in formspecs
|
||||
|
||||
minetest namespace reference
|
||||
-----------------------------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue