30 lines
647 B
Lua
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;
|