forked from your-land-mirror/yl_speak_up
show 'I want to give you something' option only when it fits
This commit is contained in:
parent
abf063975e
commit
b6f5cd9029
@ -535,8 +535,9 @@ end
|
||||
-- add a prefix to "I want to give you something." dialog option in edit_mode:
|
||||
local old_talkdialog_offers_item = yl_speak_up.get_fs_talkdialog_add_player_offers_item
|
||||
yl_speak_up.get_fs_talkdialog_add_player_offers_item = function(pname, formspec, h, dialog, add_text, pname_for_old_fs)
|
||||
local offer_item_add_text = ""
|
||||
local offer_item_add_text = nil
|
||||
if(yl_speak_up.in_edit_mode(pname)) then
|
||||
-- force showing the "I want to give you something"-text
|
||||
offer_item_add_text = minetest.formspec_escape("[dialog d_got_item] -> ")
|
||||
end
|
||||
return old_talkdialog_offers_item(pname, formspec, h, dialog, offer_item_add_text, pname_for_old_fs)
|
||||
|
Loading…
Reference in New Issue
Block a user