mirror of
https://github.com/pyrollo/display_modpack.git
synced 2025-10-15 00:35:20 +02:00
Fix visible color escape sequences when selecting text of posters (#16)
This commit is contained in:
@@ -43,8 +43,7 @@ local function display_poster(pos, node, player)
|
|||||||
style_type[textarea;textcolor=#111]
|
style_type[textarea;textcolor=#111]
|
||||||
textarea[0.3,1.5;7,8;;%s;]]=],
|
textarea[0.3,1.5;7,8;;%s;]]=],
|
||||||
titletexture,
|
titletexture,
|
||||||
minetest.colorize("#111",
|
minetest.formspec_escape(meta:get_string("text")))
|
||||||
minetest.formspec_escape(meta:get_string("text"))))
|
|
||||||
|
|
||||||
if minetest.is_protected(pos, player:get_player_name()) then
|
if minetest.is_protected(pos, player:get_player_name()) then
|
||||||
fs = string.format("%sbutton_exit[2.5,8;2,1;ok;%s]", fs, FS("Close"))
|
fs = string.format("%sbutton_exit[2.5,8;2,1;ok;%s]", fs, FS("Close"))
|
||||||
|
Reference in New Issue
Block a user