---@class WB_RoundWin_C:UUserWidget ---@field InSettle UWidgetAnimation ---@field WidgetSwitcher_Round UWidgetSwitcher --Edit Below-- ---@type WB_RoundWin_C local WB_RoundWin = { bInitDoOnce = false; }; --[==[ Construct function WB_RoundWin:Construct() end -- Construct ]==] -- function WB_RoundWin:Tick(MyGeometry, InDeltaTime) -- end -- function WB_RoundWin:Destruct() -- end function WB_RoundWin:OnShowPanel(WinTeamId) UGCLogSystem.Log("[WB_RoundWin:OnShowPanel] 执行") if WinTeamId == DefaultSettings.LocalTeamId then self.WidgetSwitcher_Round:SetActiveWidgetIndex(0) else self.WidgetSwitcher_Round:SetActiveWidgetIndex(1) end --self:PlayAnimation(self.InSettle, 0, 1, EUMGSequencePlayMode.Forward, 0); UGCEventSystem.SetTimer(self, function() --self:PlayAnimation(self.InSettle, 0, 1, EUMGSequencePlayMode.Reverse, 0); WidgetManager:ClosePanel(WidgetConfig.EUIType.RoundWin) end, DefaultSettings.RoundInfo.RoundSettleTime / 2); end return WB_RoundWin;