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

30 lines
647 B
Lua

---@class WBP_ChallengeInfo_C:UUserWidget
---@field TextBlock_Skill UTextBlock
---@field WBP_WidgetHeader UWBP_WidgetHeader_C
--Edit Below--
local WBP_ChallengeInfo = { bInitDoOnce = false; };
function WBP_ChallengeInfo:Construct()
WBP_ChallengeInfo.SuperClass.Construct(self)
end
-- function WBP_ChallengeInfo:Tick(MyGeometry, InDeltaTime)
-- end
-- function WBP_ChallengeInfo:Destruct()
-- end
function WBP_ChallengeInfo:SetSkillId(InId)
local Desc = Tables.ChallengeInfo[InId].SkillDesc
if Desc == nil then
return
end
self.TextBlock_Skill:SetText(string.format("%s\
%s", Desc.Skill1, Desc.Skill2))
end
return WBP_ChallengeInfo;