completed get_fs_edit_option_action_npc_gives
This commit is contained in:
parent
d74ab72ca7
commit
c67e36abc7
@ -1681,12 +1681,16 @@ yl_speak_up.get_fs_edit_option_action_trade = function(
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
yl_speak_up.get_fs_edit_option_action_npc_gives = function(pname, dialog, formspec, data, id_prefix, save_button, e)
|
-- "The NPC gives something to the player (i.e. a quest item).", -- 4
|
||||||
|
-- (only for actions)
|
||||||
|
yl_speak_up.get_fs_edit_option_action_npc_gives = function(
|
||||||
|
pname, dialog, formspec, data, id_prefix, save_button, e)
|
||||||
local bg_img = ""
|
local bg_img = ""
|
||||||
if(data and data.item_string) then
|
if(data and data.item_string) then
|
||||||
bg_img = "item_image[2.15,3.65;0.7,0.7;"..tostring(data.item_string).."]"
|
bg_img = "item_image[2.15,3.65;0.7,0.7;"..tostring(data.item_string).."]"
|
||||||
end
|
end
|
||||||
return "label[8,2.6;Your inventory:]"..
|
return formspec..
|
||||||
|
"label[8,2.6;Your inventory:]"..
|
||||||
"list[current_player;main;8,3;8,4;]"..
|
"list[current_player;main;8,3;8,4;]"..
|
||||||
"label[1,3.1;"..minetest.formspec_escape(dialog.n_npc or "?").." gives:]"..
|
"label[1,3.1;"..minetest.formspec_escape(dialog.n_npc or "?").." gives:]"..
|
||||||
"list[detached:yl_speak_up_player_"..pname..";npc_gives;2,3.5;1,1;]"..
|
"list[detached:yl_speak_up_player_"..pname..";npc_gives;2,3.5;1,1;]"..
|
||||||
|
Loading…
Reference in New Issue
Block a user