PlayerInventory & PlayerInventoryUI: adding explanatory annotations and comments to the code. #34

This commit is contained in:
Van
2026-04-13 22:00:27 +03:00
parent f1c82d9220
commit c172198ff7
2 changed files with 64 additions and 27 deletions

View File

@@ -3,6 +3,8 @@ local PrimitiveCraftHandler = Smc.requireCraftSystemPrimitiveCraftHandler()
---@type PlayerInventoryUI
local PlayerInventoryUI = Mod.getInfo('smc__ui__player_inventory').require('PlayerInventoryUI')
-- TODO: перенести обработки в PlayerUI
-- Handling the button click for selecting an item for crafting.
-- Opens the item description and allows you to craft the selected item.
PlayerInventoryUI:registerOnFormFieldActionMatch('.+::%S+::item_button',function(player, fieldName, fieldValue)