forked from Sokomine/yl_speak_up
removed overlapping of text in add quest steps formspec
This commit is contained in:
parent
4ce6101bca
commit
49c264193c
@ -197,7 +197,11 @@ yl_speak_up.get_fs_manage_general = function(player, param,
|
|||||||
formspec, list_of_entries,
|
formspec, list_of_entries,
|
||||||
text_add_new, tooltip_add_new,
|
text_add_new, tooltip_add_new,
|
||||||
what_is_the_list_about,
|
what_is_the_list_about,
|
||||||
tooltip_add_entry_general, tooltip_del_entry_general)
|
tooltip_add_entry_general, tooltip_del_entry_general,
|
||||||
|
optional_add_space)
|
||||||
|
if(not(optional_add_space)) then
|
||||||
|
optional_add_space = 0
|
||||||
|
end
|
||||||
local selected = nil
|
local selected = nil
|
||||||
local pname = player:get_player_name()
|
local pname = player:get_player_name()
|
||||||
-- the yl_speak_up.create_dropdown_playerlist function needs a table - not a list
|
-- the yl_speak_up.create_dropdown_playerlist function needs a table - not a list
|
||||||
@ -210,7 +214,11 @@ yl_speak_up.get_fs_manage_general = function(player, param,
|
|||||||
or yl_speak_up.speak_to[pname].tmp_index_general == 1
|
or yl_speak_up.speak_to[pname].tmp_index_general == 1
|
||||||
or not(list_of_entries[ yl_speak_up.speak_to[pname].tmp_index_general - 1])) then
|
or not(list_of_entries[ yl_speak_up.speak_to[pname].tmp_index_general - 1])) then
|
||||||
yl_speak_up.speak_to[pname].tmp_index_general = 1
|
yl_speak_up.speak_to[pname].tmp_index_general = 1
|
||||||
table.insert(formspec, "button[12.2,2.15;2.5,0.6;add_list_entry;")
|
table.insert(formspec, "button[")
|
||||||
|
table.insert(formspec, tostring(12.2 + 2 * optional_add_space))
|
||||||
|
table.insert(formspec, ",2.15;")
|
||||||
|
table.insert(formspec, tostring(2.5 + 2 * optional_add_space))
|
||||||
|
table.insert(formspec, ",0.6;add_list_entry;")
|
||||||
table.insert(formspec, minetest.formspec_escape(text_add_new))
|
table.insert(formspec, minetest.formspec_escape(text_add_new))
|
||||||
table.insert(formspec, "]")
|
table.insert(formspec, "]")
|
||||||
table.insert(formspec, "tooltip[add_list_entry;")
|
table.insert(formspec, "tooltip[add_list_entry;")
|
||||||
@ -242,7 +250,7 @@ yl_speak_up.get_fs_manage_general = function(player, param,
|
|||||||
player, pname,
|
player, pname,
|
||||||
table_of_entries,
|
table_of_entries,
|
||||||
yl_speak_up.speak_to[pname].tmp_index_general,
|
yl_speak_up.speak_to[pname].tmp_index_general,
|
||||||
2.6, 2.15, 1.0, 0.6,
|
2.6 + (optional_add_space), 2.15, 1.0, 0.6,
|
||||||
"list_of_entries",
|
"list_of_entries",
|
||||||
what,
|
what,
|
||||||
"Delete selected "..what,
|
"Delete selected "..what,
|
||||||
|
|||||||
@ -108,7 +108,8 @@ yl_speak_up.get_fs_manage_quest_steps = function(player, param)
|
|||||||
"This is an internal text shown only to yourself.\n"..
|
"This is an internal text shown only to yourself.\n"..
|
||||||
"Players cannot see the names of quest steps.",
|
"Players cannot see the names of quest steps.",
|
||||||
"If you click here, the selected quest step will be deleted.\n"..
|
"If you click here, the selected quest step will be deleted.\n"..
|
||||||
"This will only be possible if it's not used anywhere.")
|
"This will only be possible if it's not used anywhere.",
|
||||||
|
"0.2")
|
||||||
--[[
|
--[[
|
||||||
if(selected and selected ~= "") then
|
if(selected and selected ~= "") then
|
||||||
local k = selected
|
local k = selected
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user