---@class WB_RoundFinish_C:UUserWidget ---@field ShowFInish UWidgetAnimation ---@field Image_62 UImage ---@field TextBlock_MVPAddCoin UTextBlock ---@field TextBlock_MVPPlayer UTextBlock ---@field WidgetSwitcher_FInish UWidgetSwitcher --Edit Below-- ---@type WB_RoundFinish_C local WB_RoundFinish = { bInitDoOnce = false; }; --[==[ Construct function WB_RoundFinish:Construct() end -- Construct ]==] function WB_RoundFinish:OnShowPanel(WinnerTeam, MVPPlayer) self.TextBlock_MVPAddCoin:SetText(tostring(GlobalConfigs.GameSetting.MVPPlayerAddCoin)) if WinnerTeam <= 0 then self.WidgetSwitcher_FInish:SetActiveWidgetIndex(2) else local LocalTeam = UGCGameSystem.GameState:GetPlayerTeamIDByPlayerKey(UGCSystemLibrary.GetLocalPlayerKey()) if LocalTeam == WinnerTeam then self.WidgetSwitcher_FInish:SetActiveWidgetIndex(0) else self.WidgetSwitcher_FInish:SetActiveWidgetIndex(1) end end if MVPPlayer > 0 then local MVPPlayerName = UGCGameSystem.GameState:GetPlayerNameByPlayerKey(MVPPlayer) self.TextBlock_MVPPlayer:SetText(MVPPlayerName) end self:PlayAnimation(self.ShowFInish, 0, 1, EUMGSequencePlayMode.Forward, 1) end -- function WB_RoundFinish:Tick(MyGeometry, InDeltaTime) -- end -- function WB_RoundFinish:Destruct() -- end return WB_RoundFinish;