コード例 #1
0
        private void InitView()
        {
            if (this.player.PlayerID == Service.CurrentPlayer.PlayerId)
            {
                this.nameLabel.Text = Service.Lang.Get("LEADERBOARD_YOUR_NAME", new object[]
                {
                    this.player.PlayerName
                });
                this.arrowSprite.Visible = false;
                base.ToggleHighlight(true);
            }
            else
            {
                this.nameLabel.Text = Service.Lang.Get("LEADERBOARD_PLAYER_NAME", new object[]
                {
                    this.player.PlayerName
                });
                base.ToggleHighlight(false);
            }
            this.typeLabel.Text = this.player.SquadName;
            this.squadSymbolSprite.SpriteName = this.player.Symbol;
            this.rankLabel.Text                  = this.player.Rank.ToString();
            this.memberNumberLabel.Visible       = false;
            this.activeMemberNumberLabel.Visible = false;
            this.squadLevelGroup.Visible         = false;
            LeaderboardBattleHistory leaderboardBattleHistory = null;

            this.InitButtons(this.id);
            this.InitPlanetStats(this.id);
            this.InitBattleStats(this.id, out leaderboardBattleHistory);
            int rating = (leaderboardBattleHistory == null) ? 0 : GameUtils.CalculateBattleHistoryVictoryRating(leaderboardBattleHistory);

            this.InitIcons(this.id, this.player.Faction, rating);
            this.InitFacebookData();
        }