mirror of
https://github.com/pyrollo/display_modpack.git
synced 2024-11-28 00:53:49 +01:00
Use default formspec style
This commit is contained in:
parent
2977ad5113
commit
3483f34fa9
@ -37,6 +37,7 @@ function signs.set_formspec(pos)
|
|||||||
|
|
||||||
if maxlines == 1 then
|
if maxlines == 1 then
|
||||||
formspec = "size[6,3]"..
|
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}]"..
|
"field[0.5,0.7;5.5,1;display_text;"..F("Text")..";${display_text}]"..
|
||||||
"button_exit[2,2;2,1;ok;"..F("Write").."]"
|
"button_exit[2,2;2,1;ok;"..F("Write").."]"
|
||||||
else
|
else
|
||||||
@ -46,6 +47,7 @@ function signs.set_formspec(pos)
|
|||||||
end
|
end
|
||||||
|
|
||||||
formspec = "size[6,4]"..
|
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}]"..
|
"textarea[0.5,0.7;5.5,2;display_text;"..F("Text")..""..extralabel..";${display_text}]"..
|
||||||
"button_exit[2,3;2,1;ok;"..F("Write").."]"
|
"button_exit[2,3;2,1;ok;"..F("Write").."]"
|
||||||
end
|
end
|
||||||
|
@ -59,6 +59,7 @@ local function edit_poster(pos, node, player)
|
|||||||
if not minetest.is_protected(pos, player:get_player_name()) then
|
if not minetest.is_protected(pos, player:get_player_name()) then
|
||||||
formspec =
|
formspec =
|
||||||
"size[6.5,7.5]"..
|
"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")..";"..
|
"field[0.5,0.7;6,1;display_text;"..F("Title")..";"..
|
||||||
minetest.formspec_escape(meta:get_string("display_text")).."]"..
|
minetest.formspec_escape(meta:get_string("display_text")).."]"..
|
||||||
"textarea[0.5,1.7;6,6;text;"..F("Text")..";"..
|
"textarea[0.5,1.7;6,6;text;"..F("Text")..";"..
|
||||||
|
@ -63,6 +63,7 @@ for i, material in ipairs(steles.materials) do
|
|||||||
on_construct = function(pos)
|
on_construct = function(pos)
|
||||||
local meta = minetest.get_meta(pos)
|
local meta = minetest.get_meta(pos)
|
||||||
meta:set_string("formspec", "size[6,4]"
|
meta:set_string("formspec", "size[6,4]"
|
||||||
|
..default.gui_bg .. default.gui_bg_img .. default.gui_slots
|
||||||
.."textarea[0.5,0.7;5.5,2;display_text;"
|
.."textarea[0.5,0.7;5.5,2;display_text;"
|
||||||
..F("Displayed text (3 lines max)")
|
..F("Displayed text (3 lines max)")
|
||||||
..";${display_text}]"
|
..";${display_text}]"
|
||||||
|
Loading…
Reference in New Issue
Block a user