---@class WB_GameEnd_PlayerInfo_C:UUserWidget ---@field Image_Icon UImage ---@field TextBlock_Dir UTextBlock ---@field TextBlock_PlayerName UTextBlock ---@field TextBlock_Score UTextBlock --Edit Below-- local WB_GameEnd_PlayerInfo = { bInitDoOnce = false; }; --[==[ Construct function WB_GameEnd_PlayerInfo:Construct() end -- Construct ]==] function WB_GameEnd_PlayerInfo:LuaInit() end function WB_GameEnd_PlayerInfo:SetPlayerInfo(PlayerKey, Info, IsSelf) if PlayerKey == nil then return; end ---@type PlayerAccountInfo local PlayerInfo = GameState.PlayerDatas.AccountInfo[PlayerKey] if IsSelf then self.TextBlock_Dir:SetText("己方") else self.TextBlock_Dir:SetText("敌方") end self.TextBlock_Score:SetText(tostring(Info == nil and 0 or Info)); if PlayerInfo then self.TextBlock_PlayerName:SetText(PlayerInfo.PlayerName); UITool.DownloadImage(PlayerInfo.IconURL, function(Texture) self.Image_Icon:SetBrushFromTextureDynamic(Texture); end); end end -- function WB_GameEnd_PlayerInfo:Tick(MyGeometry, InDeltaTime) -- end -- function WB_GameEnd_PlayerInfo:Destruct() -- end return WB_GameEnd_PlayerInfo;