fixed bug in manage_quest_steps

This commit is contained in:
Sokomine 2023-09-19 05:20:52 +02:00
parent 6ecf800a60
commit 35506731bd

View File

@ -112,7 +112,7 @@ yl_speak_up.quest_step_show_table = function(formspec, table_specs, liste)
table.insert(formspec, table_specs)
local tmp = {}
for k, v in pairs(liste) do
table.insert(tmp, "#FFFFFF")
table.insert(tmp, "#AAFFAA")
table.insert(tmp, minetest.formspec_escape(v))
end
table.insert(formspec, table.concat(tmp, ","))
@ -176,6 +176,7 @@ yl_speak_up.get_fs_manage_quest_steps = function(player, param)
table.insert(required_for, s)
end
end
-- left side (previous quest step)
table.insert(formspec, "label[0.2,2.0;"..em("Required previous").."]"..
"label[0.2,2.4;quest step(s):]"..
@ -224,7 +225,7 @@ yl_speak_up.get_fs_manage_quest_steps = function(player, param)
"box[0,0;5.6,8.5;#666666]"..
"label[0.1,0.5;get these quest step(s) "..em("next")..":]")
yl_speak_up.quest_step_show_table(formspec, "0.1,0.7;5.4,7.7;next_steps_show;",
needed_for or {})
required_for or {})
table.insert(formspec, "tooltip[next_steps_show;"..
"Once the current quest step has been achieved by the\n"..
"player, the player can strive to achieve these next\n"..