When displaying text which can contain formspec code, e.g. text set by a player,
use `minetest.formspec_escape`.
[Mod] Emoji [emoji]
- LMD
- Member
- Posts: 1400
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: [Mod] Emoji [emoji]
You have to escape it for the formspec : Minetest Lua API
- rubenwardy
- Moderator
- Posts: 6978
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: Bristol, United Kingdom
- Contact:
Re: [Mod] Emoji [emoji]
Naughty, sounds like you're not escaping your formspecs.bosapara wrote:Wuzzy wrote: - The shortcuts are also inconsistent. Some use noses, some don't.
Each text smile should be original, if you have ":)", so ">:)" will not work.
PS Tooltips won't work with text smiles like ";)", minetest give back an error.
"tooltip[name;", minetest.formspec_escape(";)"), "]"
- LMD
- Member
- Posts: 1400
- Joined: Sat Apr 08, 2017 08:16
- GitHub: appgurueu
- IRC: appguru[eu]
- In-game: LMD
- Location: Germany
- Contact:
Re: [Mod] Emoji [emoji]
Needs to be "tooltip[name;" .. minetest.formspec_escape(";)") .. "]" or table.concat({"tooltip[name;", minetest.formspec_escape(";)"), "]"})rubenwardy wrote: "tooltip[name;", minetest.formspec_escape(";)"), "]"
Re: [Mod] Emoji [emoji]
LMD, rubenwardy
Thanks for advances, will use it.
Thanks for advances, will use it.
- FreeGamers
- Member
- Posts: 650
- Joined: Sat May 25, 2019 00:15
- GitHub: is proprietary I use NotABug
- Location: United States
- Contact:
Re: [Mod] Emoji [emoji]
bosapara, I think this stopped working with chat strings in 5.2.0-dev?
FreeGamers.org has moved to MeseCraft.net | FreeGamers on this forum is now MeseCraft
Who is online
Users browsing this forum: Google [Bot] and 48 guests