changed formspec size for add quest steps

This commit is contained in:
Sokomine 2023-09-19 02:17:17 +02:00
parent 1c72d714e7
commit decae6977e

View File

@ -149,7 +149,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
local formspec = {} local formspec = {}
table.insert(formspec, "size[18,12]") table.insert(formspec, "size[12.5,16]")
-- add back button -- add back button
table.insert(formspec, "button[8,0;2,0.7;back;Back]") table.insert(formspec, "button[8,0;2,0.7;back;Back]")
-- show which quest we're working at -- show which quest we're working at
@ -164,6 +164,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
-- add new quest step -- add new quest step
table.insert(formspec, "label[0.2,2.2;Add a new quest step named:]") table.insert(formspec, "label[0.2,2.2;Add a new quest step named:]")
table.insert(formspec, "button[11.1,2.4;1.2,0.7;add_step;Add]")
table.insert(formspec, "field[1.0,2.4;10,0.7;add_quest_step;;]") table.insert(formspec, "field[1.0,2.4;10,0.7;add_quest_step;;]")
local current_step = nil local current_step = nil
@ -214,7 +215,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
minetest.colorize("#9999FF", "at least one").. minetest.colorize("#9999FF", "at least one")..
" of these requirements is fulfilled:]") " of these requirements is fulfilled:]")
yl_speak_up.quest_step_list_show_table(formspec, yl_speak_up.quest_step_list_show_table(formspec,
"0.2,4.3;11.0,3.0;delete_from_one_step_required;", "0.2,4.3;12.0,3.0;delete_from_one_step_required;",
step_data[current_step].one_step_required, step_data[current_step].one_step_required,
step_data, required_for_steps) step_data, required_for_steps)
table.insert(formspec, "label[0.2,7.5;(Click on an entry to delete it from the list above.)]") table.insert(formspec, "label[0.2,7.5;(Click on an entry to delete it from the list above.)]")
@ -228,7 +229,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
minetest.colorize("#9999FF", "all").. minetest.colorize("#9999FF", "all")..
" of these requirements are fulfilled:]") " of these requirements are fulfilled:]")
yl_speak_up.quest_step_list_show_table(formspec, yl_speak_up.quest_step_list_show_table(formspec,
"0.2,4.3;11.0,3.0;delete_from_all_steps_required;", "0.2,4.3;12.0,3.0;delete_from_all_steps_required;",
step_data[current_step].all_steps_required, step_data[current_step].all_steps_required,
step_data, required_for_steps) step_data, required_for_steps)
table.insert(formspec, "label[0.2,7.5;(Click on an entry to delete it from the list above.)]") table.insert(formspec, "label[0.2,7.5;(Click on an entry to delete it from the list above.)]")
@ -245,7 +246,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
table.insert(formspec, tostring(y_pos)) table.insert(formspec, tostring(y_pos))
table.insert(formspec, ";or select an existing quest step from the list below:]") table.insert(formspec, ";or select an existing quest step from the list below:]")
yl_speak_up.quest_step_list_show_table(formspec, yl_speak_up.quest_step_list_show_table(formspec,
"0.2,"..tostring(y_pos + 0.2)..";11.0,3.0;add_from_available;", "0.2,"..tostring(y_pos + 0.2)..";12.0,6.0;add_from_available;",
available_steps, available_steps,
step_data, required_for_steps) step_data, required_for_steps)