mirror of
https://gitea.your-land.de/Sokomine/yl_speak_up.git
synced 2025-06-15 08:08:01 +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, '')
|
||||
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
|
||||
yl_speak_up.input_show_npc_list(player, formname, fields)
|
||||
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
|
||||
elseif formname == "yl_speak_up:initial_config" then
|
||||
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))
|
||||
|
||||
|
||||
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
|
||||
if(not(param)) then
|
||||
param = {}
|
||||
|
Loading…
Reference in New Issue
Block a user