Change menu sizes
This commit is contained in:
parent
492077bd48
commit
ca02d2b79c
14
init.lua
14
init.lua
|
@ -238,8 +238,8 @@ minetest.register_on_formspec_input(function(formname, fields)
|
||||||
end
|
end
|
||||||
elseif fields.rename then
|
elseif fields.rename then
|
||||||
minetest.show_formspec('advmarkers-csm', 'size[6,3]' ..
|
minetest.show_formspec('advmarkers-csm', 'size[6,3]' ..
|
||||||
'label[0.35,0.25;Rename marker]' ..
|
'label[0.35,0.2;Rename marker]' ..
|
||||||
'field[0.25,1.5;6,1;new_name;New name;' ..
|
'field[0.3,1.3;6,1;new_name;New name;' ..
|
||||||
minetest.formspec_escape(name) .. ']' ..
|
minetest.formspec_escape(name) .. ']' ..
|
||||||
'button[0,2;3,1;cancel;Cancel]' ..
|
'button[0,2;3,1;cancel;Cancel]' ..
|
||||||
'button[3,2;3,1;rename_confirm;Rename]')
|
'button[3,2;3,1;rename_confirm;Rename]')
|
||||||
|
@ -257,14 +257,14 @@ minetest.register_on_formspec_input(function(formname, fields)
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
elseif fields.teleport then
|
elseif fields.teleport then
|
||||||
minetest.show_formspec('advmarkers-csm', 'size[6,3]' ..
|
minetest.show_formspec('advmarkers-csm', 'size[6,2.2]' ..
|
||||||
'label[0.35,0.25;' .. minetest.formspec_escape(
|
'label[0.35,0.25;' .. minetest.formspec_escape(
|
||||||
'Teleport to a marker\n - ' .. name
|
'Teleport to a marker\n - ' .. name
|
||||||
) .. ']' ..
|
) .. ']' ..
|
||||||
'button[0,2;2,1;cancel;Cancel]' ..
|
'button[0,1.25;2,1;cancel;Cancel]' ..
|
||||||
'button_exit[2,2;1,1;teleport_tpj;/tpj]' ..
|
'button_exit[2,1.25;1,1;teleport_tpj;/tpj]' ..
|
||||||
'button_exit[3,2;1,1;teleport_tpc;/tpc]' ..
|
'button_exit[3,1.25;1,1;teleport_tpc;/tpc]' ..
|
||||||
'button_exit[4,2;2,1;teleport_confirm;/teleport]')
|
'button_exit[4,1.25;2,1;teleport_confirm;/teleport]')
|
||||||
elseif fields.teleport_tpj then
|
elseif fields.teleport_tpj then
|
||||||
-- Teleport with /tpj
|
-- Teleport with /tpj
|
||||||
local pos = advmarkers.get_marker(name)
|
local pos = advmarkers.get_marker(name)
|
||||||
|
|
Loading…
Reference in New Issue