mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-16 13:48:06 +02:00
show_fs: edit_trade_limit
This commit is contained in:
parent
82616c85b1
commit
d6338abeca
@ -116,3 +116,19 @@ yl_speak_up.get_fs_edit_trade_limit = function(player, selected_row)
|
|||||||
}
|
}
|
||||||
return table.concat(formspec, '')
|
return table.concat(formspec, '')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
yl_speak_up.get_fs_edit_trade_limit = function(player, param)
|
||||||
|
if(not(param)) then
|
||||||
|
param = {}
|
||||||
|
end
|
||||||
|
return yl_speak_up.get_fs_edit_trade_limit(player, param.selected_row)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
yl_speak_up.register_fs("edit_trade_limit",
|
||||||
|
yl_speak_up.input_edit_trade_limit,
|
||||||
|
yl_speak_up.get_fs_edit_trade_limit_wrapper,
|
||||||
|
-- force formspec version 1:
|
||||||
|
1
|
||||||
|
)
|
||||||
|
10
show_fs.lua
10
show_fs.lua
@ -67,9 +67,6 @@ yl_speak_up.input_handler = function(player, formname, fields)
|
|||||||
elseif formname == "yl_speak_up:show_npc_list" then
|
elseif formname == "yl_speak_up:show_npc_list" then
|
||||||
yl_speak_up.input_show_npc_list(player, formname, fields)
|
yl_speak_up.input_show_npc_list(player, formname, fields)
|
||||||
return true
|
return true
|
||||||
elseif formname == "yl_speak_up:edit_trade_limit" then
|
|
||||||
yl_speak_up.input_edit_trade_limit(player, formname, fields)
|
|
||||||
return true
|
|
||||||
-- handled in fs_initial_config.lua
|
-- handled in fs_initial_config.lua
|
||||||
elseif formname == "yl_speak_up:initial_config" then
|
elseif formname == "yl_speak_up:initial_config" then
|
||||||
yl_speak_up.input_fs_initial_config(player, formname, fields)
|
yl_speak_up.input_fs_initial_config(player, formname, fields)
|
||||||
@ -275,13 +272,6 @@ yl_speak_up.show_fs = function(player, fs_name, param)
|
|||||||
yl_speak_up.get_fs_show_npc_list(player, nil))
|
yl_speak_up.get_fs_show_npc_list(player, nil))
|
||||||
|
|
||||||
|
|
||||||
elseif(fs_name == "edit_trade_limit") then
|
|
||||||
if(not(param)) then
|
|
||||||
param = {}
|
|
||||||
end
|
|
||||||
yl_speak_up.show_fs_ver(pname, "yl_speak_up:edit_trade_limit",
|
|
||||||
yl_speak_up.get_fs_edit_trade_limit(player, param.selected_row), 1)
|
|
||||||
|
|
||||||
elseif(fs_name == "initial_config") then
|
elseif(fs_name == "initial_config") then
|
||||||
if(not(param)) then
|
if(not(param)) then
|
||||||
param = {}
|
param = {}
|
||||||
|
Loading…
Reference in New Issue
Block a user