diff options
author | Thomas--S <info@thomas-stangl.de> | 2018-01-31 21:13:03 +0100 |
---|---|---|
committer | Thomas--S <info@thomas-stangl.de> | 2018-02-01 16:56:19 +0100 |
commit | 3483f34fa9ac7c537f2ccf1d52b52f147e736659 (patch) | |
tree | ebdab0c6a7ad769302874ba48e558a3313cf2dfb /signs | |
parent | 2977ad5113b906744a1818278f5fdb62c4376fdb (diff) | |
download | display_modpack-3483f34fa9ac7c537f2ccf1d52b52f147e736659.tar.gz display_modpack-3483f34fa9ac7c537f2ccf1d52b52f147e736659.tar.bz2 display_modpack-3483f34fa9ac7c537f2ccf1d52b52f147e736659.zip |
Use default formspec style
Diffstat (limited to 'signs')
-rw-r--r-- | signs/common.lua | 2 | ||||
-rw-r--r-- | signs/nodes.lua | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/signs/common.lua b/signs/common.lua index 8e899ef..3665ab5 100644 --- a/signs/common.lua +++ b/signs/common.lua @@ -37,6 +37,7 @@ function signs.set_formspec(pos) if maxlines == 1 then formspec = "size[6,3]".. + default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "field[0.5,0.7;5.5,1;display_text;"..F("Text")..";${display_text}]".. "button_exit[2,2;2,1;ok;"..F("Write").."]" else @@ -46,6 +47,7 @@ function signs.set_formspec(pos) end formspec = "size[6,4]".. + default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "textarea[0.5,0.7;5.5,2;display_text;"..F("Text")..""..extralabel..";${display_text}]".. "button_exit[2,3;2,1;ok;"..F("Write").."]" end diff --git a/signs/nodes.lua b/signs/nodes.lua index 926d6e3..354bfd6 100644 --- a/signs/nodes.lua +++ b/signs/nodes.lua @@ -59,6 +59,7 @@ local function edit_poster(pos, node, player) if not minetest.is_protected(pos, player:get_player_name()) then formspec = "size[6.5,7.5]".. + default.gui_bg .. default.gui_bg_img .. default.gui_slots .. "field[0.5,0.7;6,1;display_text;"..F("Title")..";".. minetest.formspec_escape(meta:get_string("display_text")).."]".. "textarea[0.5,1.7;6,6;text;"..F("Text")..";".. |