UGCProjects/GZJ/Script/UI/ChildWidgets/WBP_InheritItem.lua

27 lines
605 B
Lua
Raw Normal View History

2025-01-08 22:46:12 +08:00
---@class WBP_InheritItem_C:UUserWidget
---@field Image_Icon UImage
---@field TextBlock_Name UTextBlock
--Edit Below--
local WBP_InheritItem = { bInitDoOnce = false; };
--[==[ Construct
function WBP_InheritItem:Construct()
end
-- Construct ]==]
-- function WBP_InheritItem:Tick(MyGeometry, InDeltaTime)
-- end
-- function WBP_InheritItem:Destruct()
-- end
function WBP_InheritItem:SetItemInheritId(InId)
local Info = InheritTable.Items[InId]
self.TextBlock_Name:SetText(Info.Stage .. tostring(Info.Level) .. '')
UIManager.LoadTexture(self.Image_Icon, Info.Icon)
end
return WBP_InheritItem;