forked from Sokomine/yl_speak_up
make back button show edit_options_dialog in manage_quest_steps
This commit is contained in:
parent
a66340ef8a
commit
8888373210
@ -265,9 +265,18 @@ end
|
||||
yl_speak_up.input_fs_manage_quest_steps = function(player, formname, fields)
|
||||
local pname = player:get_player_name()
|
||||
|
||||
if(not(fields) or (fields and fields.back)) then
|
||||
yl_speak_up.show_fs(player, "manage_quests")
|
||||
return
|
||||
-- route diffrently when the task was adding a quest step
|
||||
if(fields and fields.back
|
||||
and pname
|
||||
and yl_speak_up.speak_to[pname].d_id
|
||||
and yl_speak_up.speak_to[pname].o_id) then
|
||||
return yl_speak_up.show_fs(player, "edit_option_dialog", {
|
||||
d_id = yl_speak_up.speak_to[pname].d_id,
|
||||
o_id = yl_speak_up.speak_to[pname].o_id,
|
||||
})
|
||||
end
|
||||
if(not(fields) or fields.manage_quests or fields.back) then
|
||||
return yl_speak_up.show_fs(player, "manage_quests")
|
||||
end
|
||||
local res = yl_speak_up.player_is_working_on_quest(player)
|
||||
|
||||
@ -500,7 +509,8 @@ yl_speak_up.get_fs_manage_quest_steps = function(player, param)
|
||||
-- right side (next quest step)
|
||||
table.insert(formspec, "container[23.8,0;5.8,13.5]"..
|
||||
"label[0.6,2.0;Achieving this quest step]"..
|
||||
"label[0.6,2.4;"..em("helps").." the quester to:]")
|
||||
"label[0.6,2.4;"..em("helps").." the quester to:]"..
|
||||
"button[0.4,0.1;5.6,0.8;manage_quests;Manage quests]")
|
||||
yl_speak_up.get_fs_show_list_in_box(formspec,
|
||||
"get these quest step(s) "..em("next")..":", "next_steps_show",
|
||||
required_for,
|
||||
|
Loading…
Reference in New Issue
Block a user