27 lines
605 B
Lua
27 lines
605 B
Lua
---@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; |