UGCProjects/ExtremeParkour/Script/UI/StatusUI/Round/WB_PlaceItemCountInfo.lua
2025-01-04 23:00:19 +08:00

34 lines
816 B
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---@class WB_PlaceItemCountInfo_C:UUserWidget
---@field TextBlock_Count UTextBlock
---@field TextBlock_ItemName UTextBlock
--Edit Below--
local WB_PlaceItemCountInfo = { bInitDoOnce = false; };
--[==[ Construct
function WB_PlaceItemCountInfo:Construct()
end
-- Construct ]==]
-- function WB_PlaceItemCountInfo:Tick(MyGeometry, InDeltaTime)
-- end
-- function WB_PlaceItemCountInfo:Destruct()
-- end
function WB_PlaceItemCountInfo:Init(InPlaceItemType)
self.PlaceItemType = InPlaceItemType
self.TextBlock_ItemName:SetText(PlacementModeConfig.ItemInfo[self.PlaceItemType].Name)
end
function WB_PlaceItemCountInfo:SetCount(InCount)
self.TextBlock_Count:SetText("×" .. InCount)
end
function WB_PlaceItemCountInfo:GetPlaceItemType()
return self.PlaceItemType
end
return WB_PlaceItemCountInfo;