---@class WB_MiniGameMVP_C:UUserWidget ---@field ShowMVP UWidgetAnimation ---@field Border_ImageColor UBorder ---@field Image_Head UImage ---@field TextBlock_Name UTextBlock ---@field TextBlock_PlayerNum_Debug UTextBlock --Edit Below-- local WB_MiniGameMVP = { bInitDoOnce = false; }; --[==[ Construct function WB_MiniGameMVP:Construct() end -- Construct ]==] -- function WB_MiniGameMVP:Tick(MyGeometry, InDeltaTime) -- end -- function WB_MiniGameMVP:Destruct() -- end function WB_MiniGameMVP:UpdatePlayer(InPlayerKey) if GlobalConfigs.IsDebug then self.TextBlock_PlayerNum_Debug:SetVisibility(ESlateVisibility.SelfHitTestInvisible) self.TextBlock_PlayerNum_Debug:SetText(tostring(InPlayerKey % 10)) end self.PlayerKey = InPlayerKey local PlayerName = UGCGameSystem.GameState:GetPlayerNameByPlayerKey(self.PlayerKey) self.TextBlock_Name:SetText(PlayerName) self:PlayAnimation(self.ShowMVP, 0, 1, EUMGSequencePlayMode.Forward, 1) UGCSystemLibrary.DownloadImageToUImage(self.Image_Head, UGCGameSystem.GameState:GetHeadIconByPlayerKey(self.PlayerKey)); end return WB_MiniGameMVP;