30 lines
791 B
Lua
30 lines
791 B
Lua
|
---@class WB_TipSlidingTackle_C:UUserWidget
|
||
|
---@field ShowTip UWidgetAnimation
|
||
|
---@field WidgetSwitcher_IsEnable UWidgetSwitcher
|
||
|
--Edit Below--
|
||
|
---@type WB_TipSlidingTackle_C
|
||
|
local WB_TipSlidingTackle = { bInitDoOnce = false }
|
||
|
|
||
|
--[==[ Construct
|
||
|
function WB_TipSlidingTackle:Construct()
|
||
|
|
||
|
end
|
||
|
-- Construct ]==]
|
||
|
|
||
|
-- function WB_TipSlidingTackle:Tick(MyGeometry, InDeltaTime)
|
||
|
|
||
|
-- end
|
||
|
|
||
|
-- function WB_TipSlidingTackle:Destruct()
|
||
|
|
||
|
-- end
|
||
|
|
||
|
function WB_TipSlidingTackle:OnShowPanel(IsEnableSlidingTackle)
|
||
|
self.WidgetSwitcher_IsEnable:SetActiveWidgetIndex(IsEnableSlidingTackle and 1 or 0)
|
||
|
self:PlayAnimation(self.ShowTip, 0, 1, EUMGSequencePlayMode.Forward, 1);
|
||
|
UGCEventSystem.SetTimer(self, function()
|
||
|
self:SetVisibility(ESlateVisibility.Collapsed);
|
||
|
end, 3.5)
|
||
|
end
|
||
|
|
||
|
return WB_TipSlidingTackle
|