UGCProjects/TwoOnTwo/Script/UI/Tip/W_TeamTip.lua

30 lines
651 B
Lua
Raw Normal View History

2025-01-04 23:00:19 +08:00
---@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;