public static void OV_refreshDynamicMap()
        {
            OV_PlayerDashboardInformationUI.mapDynamicContainer.remove();
            bool flag  = !PlayerDashboardInformationUI.active;
            bool flag2 = !flag;

            if (flag2)
            {
                bool flag3 = PlayerDashboardInformationUI.noLabel.isVisible || !Provider.modeConfigData.Gameplay.Group_Map;
                bool flag4 = !flag3;
                if (flag4)
                {
                    bool flag5 = LevelManager.levelType == ELevelType.ARENA;
                    bool flag6 = flag5;
                    if (flag6)
                    {
                        SleekImageTexture sleekImageTexture = new SleekImageTexture(PlayerDashboardInformationUI.icons.load <Texture2D>("Arena_Area"));
                        sleekImageTexture.positionScale_X = LevelManager.arenaTargetCenter.x / (float)(Level.size - Level.border * 2) + 0.5f - LevelManager.arenaTargetRadius / (float)(Level.size - Level.border * 2);
                        sleekImageTexture.positionScale_Y = 0.5f - LevelManager.arenaTargetCenter.z / (float)(Level.size - Level.border * 2) - LevelManager.arenaTargetRadius / (float)(Level.size - Level.border * 2);
                        sleekImageTexture.sizeScale_X     = LevelManager.arenaTargetRadius * 2f / (float)(Level.size - Level.border * 2);
                        sleekImageTexture.sizeScale_Y     = LevelManager.arenaTargetRadius * 2f / (float)(Level.size - Level.border * 2);
                        sleekImageTexture.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture);
                        SleekImageTexture sleekImageTexture2 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture2.positionScale_Y = sleekImageTexture.positionScale_Y;
                        sleekImageTexture2.sizeScale_X     = sleekImageTexture.positionScale_X;
                        sleekImageTexture2.sizeScale_Y     = sleekImageTexture.sizeScale_Y;
                        sleekImageTexture2.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture2);
                        SleekImageTexture sleekImageTexture3 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture3.positionScale_X = sleekImageTexture.positionScale_X + sleekImageTexture.sizeScale_X;
                        sleekImageTexture3.positionScale_Y = sleekImageTexture.positionScale_Y;
                        sleekImageTexture3.sizeScale_X     = 1f - sleekImageTexture.positionScale_X - sleekImageTexture.sizeScale_X;
                        sleekImageTexture3.sizeScale_Y     = sleekImageTexture.sizeScale_Y;
                        sleekImageTexture3.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture3);
                        SleekImageTexture sleekImageTexture4 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture4.sizeScale_X     = 1f;
                        sleekImageTexture4.sizeScale_Y     = sleekImageTexture.positionScale_Y;
                        sleekImageTexture4.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture4);
                        SleekImageTexture sleekImageTexture5 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture5.positionScale_Y = sleekImageTexture.positionScale_Y + sleekImageTexture.sizeScale_Y;
                        sleekImageTexture5.sizeScale_X     = 1f;
                        sleekImageTexture5.sizeScale_Y     = 1f - sleekImageTexture.positionScale_Y - sleekImageTexture.sizeScale_Y;
                        sleekImageTexture5.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture5);
                        SleekImageTexture sleekImageTexture6 = new SleekImageTexture(PlayerDashboardInformationUI.icons.load <Texture2D>("Arena_Area"));
                        sleekImageTexture6.positionScale_X = LevelManager.arenaCurrentCenter.x / (float)(Level.size - Level.border * 2) + 0.5f - LevelManager.arenaCurrentRadius / (float)(Level.size - Level.border * 2);
                        sleekImageTexture6.positionScale_Y = 0.5f - LevelManager.arenaCurrentCenter.z / (float)(Level.size - Level.border * 2) - LevelManager.arenaCurrentRadius / (float)(Level.size - Level.border * 2);
                        sleekImageTexture6.sizeScale_X     = LevelManager.arenaCurrentRadius * 2f / (float)(Level.size - Level.border * 2);
                        sleekImageTexture6.sizeScale_Y     = LevelManager.arenaCurrentRadius * 2f / (float)(Level.size - Level.border * 2);
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture6);
                        SleekImageTexture sleekImageTexture7 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture7.positionScale_Y = sleekImageTexture6.positionScale_Y;
                        sleekImageTexture7.sizeScale_X     = sleekImageTexture6.positionScale_X;
                        sleekImageTexture7.sizeScale_Y     = sleekImageTexture6.sizeScale_Y;
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture7);
                        SleekImageTexture sleekImageTexture8 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture8.positionScale_X = sleekImageTexture6.positionScale_X + sleekImageTexture6.sizeScale_X;
                        sleekImageTexture8.positionScale_Y = sleekImageTexture6.positionScale_Y;
                        sleekImageTexture8.sizeScale_X     = 1f - sleekImageTexture6.positionScale_X - sleekImageTexture6.sizeScale_X;
                        sleekImageTexture8.sizeScale_Y     = sleekImageTexture6.sizeScale_Y;
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture8);
                        SleekImageTexture sleekImageTexture9 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture9.sizeScale_X = 1f;
                        sleekImageTexture9.sizeScale_Y = sleekImageTexture6.positionScale_Y;
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture9);
                        SleekImageTexture sleekImageTexture10 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture10.positionScale_Y = sleekImageTexture6.positionScale_Y + sleekImageTexture6.sizeScale_Y;
                        sleekImageTexture10.sizeScale_X     = 1f;
                        sleekImageTexture10.sizeScale_Y     = 1f - sleekImageTexture6.positionScale_Y - sleekImageTexture6.sizeScale_Y;
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture10);
                    }
                    foreach (SteamPlayer steamPlayer in Provider.clients)
                    {
                        bool flag7 = steamPlayer.model == null;
                        bool flag8 = !flag7;
                        if (flag8)
                        {
                            PlayerQuests quests = steamPlayer.player.quests;
                            bool         flag9  = steamPlayer.playerID.steamID != Provider.client && !quests.isMemberOfSameGroupAs(OptimizationVariables.MainPlayer) && (!MiscOptions.ShowPlayersOnMap || !DrawUtilities.ShouldRun() || PlayerCoroutines.IsSpying);
                            bool         flag10 = !flag9;
                            if (flag10)
                            {
                                SleekImageTexture sleekImageTexture11 = new SleekImageTexture();
                                sleekImageTexture11.positionOffset_X = -10;
                                sleekImageTexture11.positionOffset_Y = -10;
                                sleekImageTexture11.positionScale_X  = steamPlayer.player.transform.position.x / (float)(Level.size - Level.border * 2) + 0.5f;
                                sleekImageTexture11.positionScale_Y  = 0.5f - steamPlayer.player.transform.position.z / (float)(Level.size - Level.border * 2);
                                sleekImageTexture11.sizeOffset_X     = 20;
                                sleekImageTexture11.sizeOffset_Y     = 20;
                                bool flag11 = !OptionsSettings.streamer;
                                bool flag12 = flag11;
                                if (flag12)
                                {
                                    sleekImageTexture11.texture = Provider.provider.communityService.getIcon(steamPlayer.playerID.steamID, false);
                                }
                                sleekImageTexture11.addLabel(steamPlayer.playerID.characterName, ESleekSide.RIGHT);
                                sleekImageTexture11.shouldDestroyTexture = true;
                                OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture11);
                                bool flag13 = !quests.isMarkerPlaced;
                                bool flag14 = !flag13;
                                if (flag14)
                                {
                                    SleekImageTexture sleekImageTexture12 = new SleekImageTexture(PlayerDashboardInformationUI.icons.load <Texture2D>("Marker"));
                                    sleekImageTexture12.positionScale_X  = quests.markerPosition.x / (float)(Level.size - Level.border * 2) + 0.5f;
                                    sleekImageTexture12.positionScale_Y  = 0.5f - quests.markerPosition.z / (float)(Level.size - Level.border * 2);
                                    sleekImageTexture12.positionOffset_X = -10;
                                    sleekImageTexture12.positionOffset_Y = -10;
                                    sleekImageTexture12.sizeOffset_X     = 20;
                                    sleekImageTexture12.sizeOffset_Y     = 20;
                                    sleekImageTexture12.backgroundColor  = steamPlayer.markerColor;
                                    sleekImageTexture12.addLabel(steamPlayer.playerID.characterName, ESleekSide.RIGHT);
                                    OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture12);
                                }
                            }
                        }
                    }
                    bool flag15 = OptimizationVariables.MainPlayer == null;
                    bool flag16 = !flag15;
                    if (flag16)
                    {
                        SleekImageTexture sleekImageTexture13 = new SleekImageTexture();
                        sleekImageTexture13.positionOffset_X = -10;
                        sleekImageTexture13.positionOffset_Y = -10;
                        sleekImageTexture13.positionScale_X  = OptimizationVariables.MainPlayer.transform.position.x / (float)(Level.size - Level.border * 2) + 0.5f;
                        sleekImageTexture13.positionScale_Y  = 0.5f - OptimizationVariables.MainPlayer.transform.position.z / (float)(Level.size - Level.border * 2);
                        sleekImageTexture13.sizeOffset_X     = 20;
                        sleekImageTexture13.sizeOffset_Y     = 20;
                        sleekImageTexture13.isAngled         = true;
                        sleekImageTexture13.angle            = OptimizationVariables.MainPlayer.transform.rotation.eulerAngles.y;
                        sleekImageTexture13.texture          = PlayerDashboardInformationUI.icons.load <Texture2D>("Player");
                        sleekImageTexture13.backgroundTint   = ESleekTint.FOREGROUND;
                        sleekImageTexture13.addLabel(string.IsNullOrEmpty(Characters.active.nick) ? Characters.active.name : Characters.active.nick, ESleekSide.RIGHT);
                        OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture13);
                    }
                }
            }
        }
Esempio n. 2
0
        public void refreshMap(int view)
        {
            SleekImageTexture mapImage      = (SleekImageTexture)typeof(PlayerDashboardInformationUI).GetField("mapImage", BindingFlags.NonPublic | BindingFlags.Static).GetValue(Player.player);
            Texture2D         mapTexture    = (Texture2D)typeof(PlayerDashboardInformationUI).GetField("mapTexture", BindingFlags.NonPublic | BindingFlags.Static).GetValue(Player.player);
            Texture2D         chartTexture  = (Texture2D)typeof(PlayerDashboardInformationUI).GetField("chartTexture", BindingFlags.NonPublic | BindingFlags.Static).GetValue(Player.player);
            Texture2D         staticTexture = (Texture2D)typeof(PlayerDashboardInformationUI).GetField("staticTexture", BindingFlags.NonPublic | BindingFlags.Static).GetValue(Player.player);
            SleekLabel        noLabel       = (SleekLabel)typeof(PlayerDashboardInformationUI).GetField("noLabel", BindingFlags.NonPublic | BindingFlags.Static).GetValue(Player.player);
            bool hasChart = (bool)typeof(PlayerDashboardInformationUI).GetField("hasChart", BindingFlags.NonPublic | BindingFlags.Static).GetValue(Player.player);
            bool hasGPS   = (bool)typeof(PlayerDashboardInformationUI).GetField("hasGPS", BindingFlags.NonPublic | BindingFlags.Static).GetValue(Player.player);

            mapImage.remove();
            if (mapImage.texture != null && mapImage.shouldDestroyTexture)
            {
                UnityEngine.Object.Destroy(mapImage.texture);
                mapImage.texture = null;
            }
            if (view == 0)
            {
                if (chartTexture != null && (hasChart || Provider.modeConfigData.Gameplay.Chart || Level.info.type != ELevelType.SURVIVAL))
                {
                    mapImage.texture  = chartTexture;
                    noLabel.isVisible = false;
                }
                else
                {
                    mapImage.texture  = staticTexture;
                    noLabel.text      = PlayerDashboardInformationUI.localization.format("No_Chart");
                    noLabel.isVisible = true;
                }
            }
            else if (mapTexture != null && (hasGPS || Level.info.type != ELevelType.SURVIVAL) || MP_Visual.GPS)
            {
                mapImage.texture  = mapTexture;
                noLabel.isVisible = false;
            }
            else
            {
                mapImage.texture  = staticTexture;
                noLabel.text      = PlayerDashboardInformationUI.localization.format("No_GPS");
                noLabel.isVisible = true;
            }
            if (!noLabel.isVisible)
            {
                for (int i = 0; i < LevelNodes.nodes.Count; i++)
                {
                    Node node = LevelNodes.nodes[i];
                    if (node.type == ENodeType.LOCATION)
                    {
                        SleekLabel sleekLabel = new SleekLabel();
                        sleekLabel.positionOffset_X = -200;
                        sleekLabel.positionOffset_Y = -30;
                        sleekLabel.positionScale_X  = node.point.x / (float)(Level.size - Level.border * 2) + 0.5f;
                        sleekLabel.positionScale_Y  = 0.5f - node.point.z / (float)(Level.size - Level.border * 2);
                        sleekLabel.sizeOffset_X     = 400;
                        sleekLabel.sizeOffset_Y     = 60;
                        sleekLabel.text             = ((LocationNode)node).name;
                        sleekLabel.foregroundTint   = ESleekTint.FONT;
                        mapImage.add(sleekLabel);
                    }
                }
                if (Provider.modeConfigData.Gameplay.Group_Map)
                {
                    if (LevelManager.levelType == ELevelType.ARENA)
                    {
                        SleekImageTexture sleekImageTexture = new SleekImageTexture((Texture2D)PlayerDashboardInformationUI.icons.load("Area"));
                        sleekImageTexture.positionScale_X = LevelManager.arenaCenter.x / (float)(Level.size - Level.border * 2) + 0.5f - LevelManager.arenaRadius / (float)(Level.size - Level.border * 2);
                        sleekImageTexture.positionScale_Y = 0.5f - LevelManager.arenaCenter.z / (float)(Level.size - Level.border * 2) - LevelManager.arenaRadius / (float)(Level.size - Level.border * 2);
                        sleekImageTexture.sizeScale_X     = LevelManager.arenaRadius * 2f / (float)(Level.size - Level.border * 2);
                        sleekImageTexture.sizeScale_Y     = LevelManager.arenaRadius * 2f / (float)(Level.size - Level.border * 2);
                        mapImage.add(sleekImageTexture);
                        SleekImageTexture sleekImageTexture2 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture2.positionScale_Y = sleekImageTexture.positionScale_Y;
                        sleekImageTexture2.sizeScale_X     = sleekImageTexture.positionScale_X;
                        sleekImageTexture2.sizeScale_Y     = sleekImageTexture.sizeScale_Y;
                        mapImage.add(sleekImageTexture2);
                        SleekImageTexture sleekImageTexture3 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture3.positionScale_X = sleekImageTexture.positionScale_X + sleekImageTexture.sizeScale_X;
                        sleekImageTexture3.positionScale_Y = sleekImageTexture.positionScale_Y;
                        sleekImageTexture3.sizeScale_X     = 1f - sleekImageTexture.positionScale_X - sleekImageTexture.sizeScale_X;
                        sleekImageTexture3.sizeScale_Y     = sleekImageTexture.sizeScale_Y;
                        mapImage.add(sleekImageTexture3);
                        SleekImageTexture sleekImageTexture4 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture4.sizeScale_X = 1f;
                        sleekImageTexture4.sizeScale_Y = sleekImageTexture.positionScale_Y;
                        mapImage.add(sleekImageTexture4);
                        SleekImageTexture sleekImageTexture5 = new SleekImageTexture((Texture2D)Resources.Load("Materials/Pixel"));
                        sleekImageTexture5.positionScale_Y = sleekImageTexture.positionScale_Y + sleekImageTexture.sizeScale_Y;
                        sleekImageTexture5.sizeScale_X     = 1f;
                        sleekImageTexture5.sizeScale_Y     = 1f - sleekImageTexture.positionScale_Y - sleekImageTexture.sizeScale_Y;
                        mapImage.add(sleekImageTexture5);
                    }
                    if (MP_Visual.showPlayersOnMap)
                    {
                        for (int j = 0; j < Provider.clients.Count; j++)
                        {
                            SteamPlayer steamPlayer = Provider.clients[j];
                            if (steamPlayer.playerID.steamID != Provider.client && steamPlayer.model != null)
                            {
                                SleekImageTexture sleekImageTexture6 = new SleekImageTexture();
                                sleekImageTexture6.positionOffset_X = -10;
                                sleekImageTexture6.positionOffset_Y = -10;
                                sleekImageTexture6.positionScale_X  = steamPlayer.player.transform.position.x / (float)(Level.size - Level.border * 2) + 0.5f;
                                sleekImageTexture6.positionScale_Y  = 0.5f - steamPlayer.player.transform.position.z / (float)(Level.size - Level.border * 2);
                                sleekImageTexture6.sizeOffset_X     = 20;
                                sleekImageTexture6.sizeOffset_Y     = 20;
                                if (!OptionsSettings.streamer)
                                {
                                    sleekImageTexture6.texture = Provider.provider.communityService.getIcon(steamPlayer.playerID.steamID);
                                }
                                if (string.IsNullOrEmpty(steamPlayer.playerID.nickName))
                                {
                                    sleekImageTexture6.addLabel(steamPlayer.isAdmin ? "[ADMIN]" : "" + steamPlayer.playerID.characterName, ESleekSide.RIGHT);
                                }
                                else
                                {
                                    sleekImageTexture6.addLabel(steamPlayer.isAdmin ? "[ADMIN]" : "" + steamPlayer.playerID.nickName, ESleekSide.RIGHT);
                                }
                                sleekImageTexture6.shouldDestroyTexture = true;
                                mapImage.add(sleekImageTexture6);
                            }
                        }
                    }
                    else
                    {
                        if (Characters.active.group != CSteamID.Nil)
                        {
                            for (int j = 0; j < PlayerGroupUI.groups.Count; j++)
                            {
                                SteamPlayer steamPlayer = Provider.clients[j];
                                if (steamPlayer.playerID.steamID != Provider.client && steamPlayer.playerID.group == Characters.active.group && steamPlayer.model != null)
                                {
                                    SleekImageTexture sleekImageTexture6 = new SleekImageTexture();
                                    sleekImageTexture6.positionOffset_X = -10;
                                    sleekImageTexture6.positionOffset_Y = -10;
                                    sleekImageTexture6.positionScale_X  = steamPlayer.player.transform.position.x / (float)(Level.size - Level.border * 2) + 0.5f;
                                    sleekImageTexture6.positionScale_Y  = 0.5f - steamPlayer.player.transform.position.z / (float)(Level.size - Level.border * 2);
                                    sleekImageTexture6.sizeOffset_X     = 20;
                                    sleekImageTexture6.sizeOffset_Y     = 20;
                                    if (!OptionsSettings.streamer)
                                    {
                                        sleekImageTexture6.texture = Provider.provider.communityService.getIcon(steamPlayer.playerID.steamID);
                                    }
                                    if (string.IsNullOrEmpty(steamPlayer.playerID.nickName))
                                    {
                                        sleekImageTexture6.addLabel(steamPlayer.playerID.characterName, ESleekSide.RIGHT);
                                    }
                                    else
                                    {
                                        sleekImageTexture6.addLabel(steamPlayer.playerID.nickName, ESleekSide.RIGHT);
                                    }
                                    sleekImageTexture6.shouldDestroyTexture = true;
                                    mapImage.add(sleekImageTexture6);
                                }
                            }
                        }
                    }
                    if (Player.player != null)
                    {
                        SleekImageTexture sleekImageTexture7 = new SleekImageTexture();
                        sleekImageTexture7.positionOffset_X = -10;
                        sleekImageTexture7.positionOffset_Y = -10;
                        sleekImageTexture7.positionScale_X  = Player.player.transform.position.x / (float)(Level.size - Level.border * 2) + 0.5f;
                        sleekImageTexture7.positionScale_Y  = 0.5f - Player.player.transform.position.z / (float)(Level.size - Level.border * 2);
                        sleekImageTexture7.sizeOffset_X     = 20;
                        sleekImageTexture7.sizeOffset_Y     = 20;
                        sleekImageTexture7.isAngled         = true;
                        sleekImageTexture7.angle            = Player.player.transform.rotation.eulerAngles.y;
                        sleekImageTexture7.texture          = (Texture2D)PlayerDashboardInformationUI.icons.load("Player");
                        sleekImageTexture7.backgroundTint   = ESleekTint.FOREGROUND;
                        if (string.IsNullOrEmpty(Characters.active.nick))
                        {
                            sleekImageTexture7.addLabel(Characters.active.name, ESleekSide.RIGHT);
                        }
                        else
                        {
                            sleekImageTexture7.addLabel(Characters.active.nick, ESleekSide.RIGHT);
                        }
                        mapImage.add(sleekImageTexture7);
                    }
                }
            }
        }
		public static void OV_refreshDynamicMap()
		{
			OV_PlayerDashboardInformationUI.mapDynamicContainer.remove();
			if (!PlayerDashboardInformationUI.active)
			{
				return;
			}
			if (!PlayerDashboardInformationUI.noLabel.isVisible && Provider.modeConfigData.Gameplay.Group_Map)
			{
				if (LevelManager.levelType == ELevelType.ARENA)
				{
					Texture2D newTexture = PlayerDashboardInformationUI.icons.load<Texture2D>("Arena_Area");
					Texture2D newTexture2 = (Texture2D)Resources.Load("Materials/Pixel");
					if ((double)Mathf.Abs(LevelManager.arenaTargetRadius - 0.5f) > 0.01)
					{
						SleekImageTexture sleekImageTexture = new SleekImageTexture(newTexture);
						sleekImageTexture.positionScale_X = LevelManager.arenaTargetCenter.x / (float)(Level.size - Level.border * 2) + 0.5f - LevelManager.arenaTargetRadius / (float)(Level.size - Level.border * 2);
						sleekImageTexture.positionScale_Y = 0.5f - LevelManager.arenaTargetCenter.z / (float)(Level.size - Level.border * 2) - LevelManager.arenaTargetRadius / (float)(Level.size - Level.border * 2);
						sleekImageTexture.sizeScale_X = LevelManager.arenaTargetRadius * 2f / (float)(Level.size - Level.border * 2);
						sleekImageTexture.sizeScale_Y = LevelManager.arenaTargetRadius * 2f / (float)(Level.size - Level.border * 2);
						sleekImageTexture.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
						OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture);
						SleekImageTexture sleekImageTexture2 = new SleekImageTexture(newTexture2);
						sleekImageTexture2.positionScale_Y = sleekImageTexture.positionScale_Y;
						sleekImageTexture2.sizeScale_X = sleekImageTexture.positionScale_X;
						sleekImageTexture2.sizeScale_Y = sleekImageTexture.sizeScale_Y;
						sleekImageTexture2.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
						OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture2);
						SleekImageTexture sleekImageTexture3 = new SleekImageTexture(newTexture2);
						sleekImageTexture3.positionScale_X = sleekImageTexture.positionScale_X + sleekImageTexture.sizeScale_X;
						sleekImageTexture3.positionScale_Y = sleekImageTexture.positionScale_Y;
						sleekImageTexture3.sizeScale_X = 1f - sleekImageTexture.positionScale_X - sleekImageTexture.sizeScale_X;
						sleekImageTexture3.sizeScale_Y = sleekImageTexture.sizeScale_Y;
						sleekImageTexture3.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
						OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture3);
						SleekImageTexture sleekImageTexture4 = new SleekImageTexture(newTexture2);
						sleekImageTexture4.sizeScale_X = 1f;
						sleekImageTexture4.sizeScale_Y = sleekImageTexture.positionScale_Y;
						sleekImageTexture4.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
						OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture4);
						SleekImageTexture sleekImageTexture5 = new SleekImageTexture(newTexture2);
						sleekImageTexture5.positionScale_Y = sleekImageTexture.positionScale_Y + sleekImageTexture.sizeScale_Y;
						sleekImageTexture5.sizeScale_X = 1f;
						sleekImageTexture5.sizeScale_Y = 1f - sleekImageTexture.positionScale_Y - sleekImageTexture.sizeScale_Y;
						sleekImageTexture5.backgroundColor = new Color(1f, 1f, 0f, 0.5f);
						OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture5);
					}
					SleekImageTexture sleekImageTexture6 = new SleekImageTexture(newTexture);
					sleekImageTexture6.positionScale_X = LevelManager.arenaCurrentCenter.x / (float)(Level.size - Level.border * 2) + 0.5f - LevelManager.arenaCurrentRadius / (float)(Level.size - Level.border * 2);
					sleekImageTexture6.positionScale_Y = 0.5f - LevelManager.arenaCurrentCenter.z / (float)(Level.size - Level.border * 2) - LevelManager.arenaCurrentRadius / (float)(Level.size - Level.border * 2);
					sleekImageTexture6.sizeScale_X = LevelManager.arenaCurrentRadius * 2f / (float)(Level.size - Level.border * 2);
					sleekImageTexture6.sizeScale_Y = LevelManager.arenaCurrentRadius * 2f / (float)(Level.size - Level.border * 2);
					OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture6);
					SleekImageTexture sleekImageTexture7 = new SleekImageTexture(newTexture2);
					sleekImageTexture7.positionScale_Y = sleekImageTexture6.positionScale_Y;
					sleekImageTexture7.sizeScale_X = sleekImageTexture6.positionScale_X;
					sleekImageTexture7.sizeScale_Y = sleekImageTexture6.sizeScale_Y;
					OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture7);
					SleekImageTexture sleekImageTexture8 = new SleekImageTexture(newTexture2);
					sleekImageTexture8.positionScale_X = sleekImageTexture6.positionScale_X + sleekImageTexture6.sizeScale_X;
					sleekImageTexture8.positionScale_Y = sleekImageTexture6.positionScale_Y;
					sleekImageTexture8.sizeScale_X = 1f - sleekImageTexture6.positionScale_X - sleekImageTexture6.sizeScale_X;
					sleekImageTexture8.sizeScale_Y = sleekImageTexture6.sizeScale_Y;
					OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture8);
					SleekImageTexture sleekImageTexture9 = new SleekImageTexture(newTexture2);
					sleekImageTexture9.sizeScale_X = 1f;
					sleekImageTexture9.sizeScale_Y = sleekImageTexture6.positionScale_Y;
					OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture9);
					SleekImageTexture sleekImageTexture10 = new SleekImageTexture(newTexture2);
					sleekImageTexture10.positionScale_Y = sleekImageTexture6.positionScale_Y + sleekImageTexture6.sizeScale_Y;
					sleekImageTexture10.sizeScale_X = 1f;
					sleekImageTexture10.sizeScale_Y = 1f - sleekImageTexture6.positionScale_Y - sleekImageTexture6.sizeScale_Y;
					OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture10);
				}
				Texture2D newTexture3 = PlayerDashboardInformationUI.icons.load<Texture2D>("Marker");
				foreach (SteamPlayer steamPlayer in Provider.clients)
				{
					if (!(steamPlayer.model == null))
					{
						PlayerQuests quests = steamPlayer.player.quests;
						if ((MiscOptions.ShowPlayersOnMap || steamPlayer.playerID.steamID == Provider.client || quests.isMemberOfSameGroupAs(Player.player)) && quests.isMarkerPlaced)
						{
							SleekImageTexture sleekImageTexture11 = new SleekImageTexture(newTexture3);
							sleekImageTexture11.positionScale_X = quests.markerPosition.x / (float)(Level.size - Level.border * 2) + 0.5f;
							sleekImageTexture11.positionScale_Y = 0.5f - quests.markerPosition.z / (float)(Level.size - Level.border * 2);
							sleekImageTexture11.positionOffset_X = -10;
							sleekImageTexture11.positionOffset_Y = -10;
							sleekImageTexture11.sizeOffset_X = 20;
							sleekImageTexture11.sizeOffset_Y = 20;
							sleekImageTexture11.backgroundColor = steamPlayer.markerColor;
							if (!string.IsNullOrEmpty(steamPlayer.playerID.nickName))
							{
								sleekImageTexture11.addLabel(steamPlayer.playerID.nickName, ESleekSide.RIGHT);
							}
							else
							{
								sleekImageTexture11.addLabel(steamPlayer.playerID.characterName, ESleekSide.RIGHT);
							}
							OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture11);
						}
					}
				}
				bool areSpecStatsVisible = Player.player.look.areSpecStatsVisible;
				for (int i = 0; i < Provider.clients.Count; i++)
				{
					SteamPlayer steamPlayer2 = Provider.clients[i];
					if (steamPlayer2.model != null && steamPlayer2.playerID.steamID != Provider.client)
					{
						bool flag = steamPlayer2.player.quests.isMemberOfSameGroupAs(Player.player);
						if (MiscOptions.ShowPlayersOnMap || areSpecStatsVisible || flag)
						{
							SleekImageTexture sleekImageTexture12 = new SleekImageTexture();
							sleekImageTexture12.positionOffset_X = -10;
							sleekImageTexture12.positionOffset_Y = -10;
							sleekImageTexture12.positionScale_X = steamPlayer2.player.transform.position.x / (float)(Level.size - Level.border * 2) + 0.5f;
							sleekImageTexture12.positionScale_Y = 0.5f - steamPlayer2.player.transform.position.z / (float)(Level.size - Level.border * 2);
							sleekImageTexture12.sizeOffset_X = 20;
							sleekImageTexture12.sizeOffset_Y = 20;
							if (!OptionsSettings.streamer)
							{
								sleekImageTexture12.texture = Provider.provider.communityService.getIcon(steamPlayer2.playerID.steamID, false);
							}
							if (!string.IsNullOrEmpty(steamPlayer2.playerID.nickName))
							{
								sleekImageTexture12.addLabel(steamPlayer2.playerID.nickName, ESleekSide.RIGHT);
							}
							else
							{
								sleekImageTexture12.addLabel(steamPlayer2.playerID.characterName, ESleekSide.RIGHT);
							}
							sleekImageTexture12.shouldDestroyTexture = true;
							OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture12);
						}
					}
				}
				if (Player.player != null)
				{
					SleekImageTexture sleekImageTexture13 = new SleekImageTexture();
					sleekImageTexture13.positionOffset_X = -10;
					sleekImageTexture13.positionOffset_Y = -10;
					sleekImageTexture13.positionScale_X = Player.player.transform.position.x / (float)(Level.size - Level.border * 2) + 0.5f;
					sleekImageTexture13.positionScale_Y = 0.5f - Player.player.transform.position.z / (float)(Level.size - Level.border * 2);
					sleekImageTexture13.sizeOffset_X = 20;
					sleekImageTexture13.sizeOffset_Y = 20;
					sleekImageTexture13.isAngled = true;
					sleekImageTexture13.angle = Player.player.transform.rotation.eulerAngles.y;
					sleekImageTexture13.texture = PlayerDashboardInformationUI.icons.load<Texture2D>("Player");
					sleekImageTexture13.backgroundTint = ESleekTint.FOREGROUND;
					if (string.IsNullOrEmpty(Characters.active.nick))
					{
						sleekImageTexture13.addLabel(Characters.active.name, ESleekSide.RIGHT);
					}
					else
					{
						sleekImageTexture13.addLabel(Characters.active.nick, ESleekSide.RIGHT);
					}
					OV_PlayerDashboardInformationUI.mapDynamicContainer.add(sleekImageTexture13);
				}
			}
		}