forked from Sokomine/yl_speak_up
got rid of x_add in add quest step
This commit is contained in:
parent
ba81ac2f63
commit
9e3b98d09e
@ -300,13 +300,11 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
|
||||
end
|
||||
|
||||
local formspec = {}
|
||||
local x_add = 0
|
||||
if(mode and mode == "embedded_select") then
|
||||
table.insert(formspec, "size[30,12]container[6,0;18.5,12]")
|
||||
current_step = nil
|
||||
x_add = 5
|
||||
else
|
||||
table.insert(formspec, "size[12.5,17.3]")
|
||||
table.insert(formspec, "size[18.5,17.3]")
|
||||
end
|
||||
-- add back button
|
||||
table.insert(formspec, "button[8,0;2,0.7;back;Back]")
|
||||
@ -322,8 +320,8 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
|
||||
|
||||
-- add new quest step
|
||||
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, "button[16.1,2.4;1.2,0.7;add_step;Add]")
|
||||
table.insert(formspec, "field[1.0,2.4;15,0.7;add_quest_step;;]")
|
||||
|
||||
local y_pos = 3.3
|
||||
if(current_step and mode == "insert_after_prev_step") then
|
||||
@ -363,7 +361,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
|
||||
minetest.colorize("#9999FF", "at least one")..
|
||||
" of these requirements is fulfilled:]")
|
||||
yl_speak_up.quest_step_list_show_table(formspec,
|
||||
"0.2,4.3;12.0,3.0;delete_from_one_step_required;",
|
||||
"0.2,4.3;17.0,3.0;delete_from_one_step_required;",
|
||||
step_data[current_step].one_step_required,
|
||||
step_data, required_for_steps)
|
||||
table.insert(formspec, "label[0.2,7.5;(Click on an entry to delete it from the list above.)]")
|
||||
@ -377,7 +375,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
|
||||
minetest.colorize("#9999FF", "all")..
|
||||
" of these requirements are fulfilled:]")
|
||||
yl_speak_up.quest_step_list_show_table(formspec,
|
||||
"0.2,4.3;12.0,3.0;delete_from_all_steps_required;",
|
||||
"0.2,4.3;17.0,3.0;delete_from_all_steps_required;",
|
||||
step_data[current_step].all_steps_required,
|
||||
step_data, required_for_steps)
|
||||
table.insert(formspec, "label[0.2,7.5;(Click on an entry to delete it from the list above.)]")
|
||||
@ -423,7 +421,7 @@ yl_speak_up.get_fs_add_quest_steps = function(player, param)
|
||||
table.insert(formspec, ":]")
|
||||
end
|
||||
yl_speak_up.quest_step_list_show_table(formspec,
|
||||
"0.2,0.2;"..tostring(12+x_add)..",6.0;add_from_available;",
|
||||
"0.2,0.2;17,6.0;add_from_available;",
|
||||
available_steps,
|
||||
step_data, required_for_steps)
|
||||
table.insert(formspec, "label[0.2,6.5;Legend: The numbers show the amount of quest steps...\n"..
|
||||
|
Loading…
Reference in New Issue
Block a user