33 lines
625 B
Lua
33 lines
625 B
Lua
|
---@class WB_RoundEnd_C:UUserWidget
|
||
|
---@field WidgetSwitcher_Win UWidgetSwitcher
|
||
|
--Edit Below--
|
||
|
---@type WB_RoundEnd_C
|
||
|
local WB_RoundEnd = { bInitDoOnce = false; };
|
||
|
|
||
|
--[==[ Construct
|
||
|
function WB_RoundEnd:Construct()
|
||
|
|
||
|
end
|
||
|
-- Construct ]==]
|
||
|
|
||
|
-- function WB_RoundEnd:Tick(MyGeometry, InDeltaTime)
|
||
|
|
||
|
-- end
|
||
|
|
||
|
-- function WB_RoundEnd:Destruct()
|
||
|
|
||
|
-- end
|
||
|
|
||
|
function WB_RoundEnd:SetWin(IsWin)
|
||
|
if IsWin ~= nil then
|
||
|
if IsWin then
|
||
|
self.WidgetSwitcher_Win:SetActiveWidgetIndex(0);
|
||
|
else
|
||
|
self.WidgetSwitcher_Win:SetActiveWidgetIndex(1);
|
||
|
end
|
||
|
else
|
||
|
self.WidgetSwitcher_Win:SetActiveWidgetIndex(2);
|
||
|
end
|
||
|
end
|
||
|
|
||
|
return WB_RoundEnd;
|