BaseUI: Clearing the context is now an optional parameter & edit /list command. close #33

This commit is contained in:
Van
2026-03-02 19:54:22 +03:00
parent 1a6086190e
commit 692105abfa
3 changed files with 28 additions and 14 deletions

View File

@@ -10,7 +10,7 @@ core.register_chatcommand('list', {
func = function(name, param)
local player = core.get_player_by_name(name)
AdminListUI:showForm(name, false)
AdminListUI:showForm(name)
return true, ''
end
@@ -27,7 +27,7 @@ AdminListUI:registerOnFormFieldActionMatch('%S+::item_button',function(player, f
local playerName = player:get_player_name()
AdminListUI:setContex(playerName, 'select_item', stack)
AdminListUI:showForm(playerName, true)
AdminListUI:showForm(playerName)
end)
AdminListUI:registerOnFormFieldAction('admin_commands:list_add_item', function(player, fieldName, fieldValue)
@@ -47,8 +47,8 @@ end)
core.register_on_joinplayer(function(player, last_login)
player:set_sky({
sky_color = {
day_sky = '#FAE6E0',
day_horizon = '#E7A985',
day_sky = '#FCF0ED',
day_horizon = '#F1D4C3',
},
type = 'regular',
})