UGCProjects/GZJ/Script/UI/WBP_SealRewards.lua
2025-01-08 22:46:12 +08:00

28 lines
713 B
Lua

---@class WBP_SealRewards_C:UUserWidget
---@field VerticalBox_Rewards UVerticalBox
---@field WBP_RewardItem UWBP_RewardItem_C
---@field WBP_RewardItem_116 UWBP_RewardItem_C
---@field WBP_WidgetHeader UWBP_WidgetHeader_C
--Edit Below--
local WBP_SealRewards = { bInitDoOnce = false; };
function WBP_SealRewards:Construct()
self.WBP_WidgetHeader:Construct()
end
-- function WBP_SealRewards:Tick(MyGeometry, InDeltaTime)
-- end
-- function WBP_SealRewards:Destruct()
-- end
function WBP_SealRewards:SetRewards(InRewards)
local Count = self.VerticalBox_Rewards:GetChildrenCount()
for i = 1, Count do
self.VerticalBox_Rewards:GetChildAt(i - 1):SetRewardsData(InRewards[i])
end
end
return WBP_SealRewards;