mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-08-31 16:26:24 +02:00
fixed bug with trade not showing up as Ef tag - added Tr tag if there are no effects
This commit is contained in:
parent
a9ddfb5a51
commit
71d4db6219
@ -1335,8 +1335,18 @@ yl_speak_up.get_fs_talkdialog = function(player, n_id, d_id)
|
||||
end
|
||||
if(has_other_results) then
|
||||
table.insert(formspec, "button[1.1," .. h .. ";0.6,0.9;effects_"..oid..";Ef]")
|
||||
-- label: "There are further (Ef)fects (apart from switching to a new dialog) set for this option. Display them."
|
||||
table.insert(formspec, "tooltip[effects_" .. oid .. ";There are further (Ef)fects (apart from switching to a new dialog) set for this option. Display them.]")
|
||||
-- label: "There are further (Ef)fects (apart from switching to a new dialog)
|
||||
-- set for this option. Display them."
|
||||
table.insert(formspec, "tooltip[effects_" .. oid .. ";"..
|
||||
"There are further (Ef)fects (apart from switching\n"..
|
||||
"to a new dialog) set for this option. Display them.]")
|
||||
-- if there are only trade effects: show that as well
|
||||
elseif(dialog and dialog.trades
|
||||
and dialog.trades[ tostring(c_d_id).." "..tostring(oid) ]) then
|
||||
table.insert(formspec, "button[1.1," .. h .. ";0.6,0.9;effects_"..oid..";Tr]")
|
||||
table.insert(formspec, "tooltip[effects_" .. oid .. ";"..
|
||||
"There is a (Tr)ade that will happen when switching to a\n"..
|
||||
"new dialog. Display effects and trade of this option.]")
|
||||
end
|
||||
|
||||
-- show the actual text for the option
|
||||
|
Loading…
Reference in New Issue
Block a user