EmmyLua -> LuaLS
This commit is contained in:
@@ -48,16 +48,16 @@ local function getFormSpecString(self, playerName, isSelect)
|
||||
if isSelect then
|
||||
---@type ItemStackString
|
||||
local item = self:getContex(playerName, 'select_item')
|
||||
local itemDef = core.registered_items[item]
|
||||
local itemSettings = Smc.getItemDefinition(item).settings
|
||||
listForm
|
||||
:itemImage(11, 0.5, 2, 2, item)
|
||||
:areaLabel(11, 4.5, 4, 1, 'Add to inventory:')
|
||||
:button(11, 5, 3, 1, 'admin_commands:list_add_item', '1')
|
||||
:button(14, 5,3, 1, 'admin_commands:list_add_item', ''..tostring(itemDef.stack_max))
|
||||
:button(14, 5,3, 1, 'admin_commands:list_add_item', ''..tostring(itemSettings.stack_max))
|
||||
:areaLabel(14.5, 0.5, 6, 4,
|
||||
item..'\n\n'..
|
||||
(itemDef._title or itemDef.description)..'\n'..
|
||||
(itemDef._description or ''))
|
||||
(itemSettings._title or itemSettings.description)..'\n'..
|
||||
(itemSettings._description or ''))
|
||||
end
|
||||
|
||||
return listForm:toString()
|
||||
|
||||
Reference in New Issue
Block a user