EmmyLua -> LuaLS
This commit is contained in:
@@ -240,17 +240,17 @@ end
|
||||
|
||||
---Context keys for the `PlayerInventoryUI` class.
|
||||
---@alias PlayerInventoryUI.ContexKey
|
||||
--- 'compact_mode'|
|
||||
--- 'node_tab_pos'|
|
||||
--- 'node_tab'|
|
||||
---|'compact_mode'
|
||||
---|'node_tab_pos'
|
||||
---|'node_tab'
|
||||
---
|
||||
--- 'left_tab_name'|
|
||||
--- 'right_tab_name'|
|
||||
---|'left_tab_name'|
|
||||
---|'right_tab_name'|
|
||||
---
|
||||
--- 'left_craft_tab_craft_data'|
|
||||
--- 'right_craft_tab_craft_data'|
|
||||
--- 'left_node_tab_craft_data'|
|
||||
--- 'right_node_tab_craft_data'
|
||||
---|'left_craft_tab_craft_data'|
|
||||
---|'right_craft_tab_craft_data'|
|
||||
---|'left_node_tab_craft_data'|
|
||||
---|'right_node_tab_craft_data'
|
||||
|
||||
|
||||
---@class PlayerInventoryUI : BaseUI
|
||||
@@ -265,7 +265,6 @@ local PlayerInventoryUI = BaseUI:new('', getFormSpecString, false)
|
||||
---@param tabName 'craft_tab'|'node_tab'
|
||||
---@return PlayerInventoryUI.CraftTabData
|
||||
function PlayerInventoryUI:getTabCraftData(playerName, tabType, tabName)
|
||||
---@diagnostic disable-next-line: param-type-not-match
|
||||
---@type PlayerInventoryUI.CraftTabData
|
||||
local craftTabData = self:getContex(playerName, tabType..'_'..tabName..'_craft_data')
|
||||
|
||||
@@ -277,7 +276,6 @@ end
|
||||
---@param tabName 'craft_tab'|'node_tab'
|
||||
---@param data PlayerInventoryUI.CraftTabData
|
||||
function PlayerInventoryUI:setTabCraftData(playerName, tabType, tabName, data)
|
||||
---@diagnostic disable-next-line: param-type-not-match
|
||||
self:setContex(playerName, tabType..'_'..tabName..'_craft_data', data)
|
||||
end
|
||||
|
||||
@@ -716,7 +714,7 @@ core.register_allow_player_inventory_action(function(player, action, inventory,
|
||||
-- Equipment items will automatically place themselves in their slots
|
||||
-- when you hold down the shift key.
|
||||
if inventoryInfo.to_list == 'listring_equip' then
|
||||
return equipListring(player, inventory, inventoryInfo.from_list, inventoryInfo.from_index)
|
||||
return equipListring(player --[[@as Player]], inventory, inventoryInfo.from_list, inventoryInfo.from_index)
|
||||
end
|
||||
|
||||
-- Checking if a slot is an equipment slot.
|
||||
|
||||
@@ -26,7 +26,7 @@ local function getBagTab(self, playerName, tabType)
|
||||
BagLists
|
||||
:image(0.5, 0, 9.875, (lines)*1.25+1, background)
|
||||
:itemImage(0.5625, 0.0625, 1, 1, bag:get_name())
|
||||
:label(1.7625, 0.5, bag:get_definition()._title or '')
|
||||
:label(1.7625, 0.5, Smc.getItemDefinition(bag).settings._title or '')
|
||||
:list('current_player', 'inventory_back', 0.5625, 1.25, 8, 4)
|
||||
|
||||
containerHeight = containerHeight + lines * 1.25 + 1
|
||||
@@ -43,7 +43,7 @@ local function getBagTab(self, playerName, tabType)
|
||||
BagLists
|
||||
:image(0.5, containerHeight, 9.875, (lines)*1.25+1, background)
|
||||
:itemImage(0.5625, containerHeight + 0.0625, 1, 1, bag:get_name())
|
||||
:label(1.7625, containerHeight + 0.5, bag:get_definition()._title or '')
|
||||
:label(1.7625, containerHeight + 0.5, Smc.getItemDefinition(bag).settings._title or '')
|
||||
:list('current_player', 'inventory_left_thigh', 0.5625, containerHeight + 1.25, 8, 4)
|
||||
|
||||
containerHeight = containerHeight + lines * 1.25 + 1
|
||||
@@ -60,7 +60,7 @@ local function getBagTab(self, playerName, tabType)
|
||||
BagLists
|
||||
:image(0.5, containerHeight, 9.875, (lines)*1.25+1, background)
|
||||
:itemImage(0.5625, containerHeight + 0.0625, 1, 1, bag:get_name())
|
||||
:label(1.7625, containerHeight + 0.5, bag:get_definition()._title or '')
|
||||
:label(1.7625, containerHeight + 0.5, Smc.getItemDefinition(bag).settings._title or '')
|
||||
:list('current_player', 'inventory_right_thigh', 0.5625, containerHeight + 1.25, 8, 4)
|
||||
|
||||
containerHeight = containerHeight + lines * 1.25 + 1
|
||||
|
||||
Reference in New Issue
Block a user