30 lines
651 B
Lua
30 lines
651 B
Lua
---@class W_TeamTip_C:UUserWidget
|
|
---@field ShowAnim UWidgetAnimation
|
|
---@field WidgetSwitcher_Team UWidgetSwitcher
|
|
--Edit Below--
|
|
local W_TeamTip = { bInitDoOnce = false; };
|
|
|
|
--[==[ Construct
|
|
function W_TeamTip:Construct()
|
|
|
|
end
|
|
-- Construct ]==]
|
|
|
|
-- function W_TeamTip:Tick(MyGeometry, InDeltaTime)
|
|
|
|
-- end
|
|
|
|
-- function W_TeamTip:Destruct()
|
|
|
|
-- end
|
|
|
|
function W_TeamTip:OnShowPanel(IsDefender)
|
|
if IsDefender then
|
|
self.WidgetSwitcher_Team:SetActiveWidgetIndex(0)
|
|
else
|
|
self.WidgetSwitcher_Team:SetActiveWidgetIndex(1)
|
|
end
|
|
self:PlayAnimation(self.ShowAnim, 0, 1, EUMGSequencePlayMode.Forward, 1.0)
|
|
end
|
|
|
|
return W_TeamTip; |