public void SetStartingMapByFaction()
 {
     if (GarrisonStatus.Faction() == PVP_FACTION.HORDE)
     {
         this.m_zoneID = AdventureMapPanel.eZone.Zandalar;
     }
     else if (GarrisonStatus.Faction() == PVP_FACTION.ALLIANCE)
     {
         this.m_zoneID = AdventureMapPanel.eZone.Kultiras;
     }
     this.SetMapByActiveZoneID();
 }
示例#2
0
 private void Awake()
 {
     AdventureMapPanel.instance = this;
     this.m_zoneID = AdventureMapPanel.eZone.None;
     this.m_testMissionIconScale = 1f;
     this.m_mapFilters           = new bool[14];
     for (int i = 0; i < this.m_mapFilters.Length; i++)
     {
         this.m_mapFilters[i] = false;
     }
     this.EnableMapFilter(MapFilterType.All, true);
     AllPanels.instance.m_missionResultsPanel.get_gameObject().SetActive(true);
 }
        private GameObject SetupWorldQuestObject(WrapperWorldQuest worldQuest, Dictionary <int, float> mapScaleTweaks = null, Dictionary <int, Vector2> mapOffsetTweaks = null)
        {
            AdventureMapPanel.eZone zoneForMapID = AdventureMapPanel.GetZoneForMapID(worldQuest.StartLocationMapID);
            if (zoneForMapID == AdventureMapPanel.eZone.None)
            {
                Debug.LogError(string.Concat(new object[]
                {
                    "Unknown start zone ID ",
                    worldQuest.StartLocationMapID,
                    " for world quest ",
                    worldQuest.QuestID
                }));
                return(null);
            }
            MapInfo mapInfo = MapInfo.GetMapInfo(zoneForMapID);

            if (mapInfo == null)
            {
                Debug.LogError("No map info present for world quest " + worldQuest.QuestID);
                return(null);
            }
            GameObject worldQuestArea = mapInfo.GetWorldQuestArea();

            if (worldQuestArea == null)
            {
                Debug.LogError("No world quest area object on map for world quest " + worldQuest.QuestID);
                return(null);
            }
            float num  = mapInfo.m_worldQuestOffset.x;
            float num2 = mapInfo.m_worldQuestOffset.y;
            float num3 = mapInfo.m_worldQuestScale;

            if (mapScaleTweaks != null && mapScaleTweaks.ContainsKey(worldQuest.WorldMapAreaID))
            {
                num3 += mapScaleTweaks[worldQuest.WorldMapAreaID];
            }
            if (mapOffsetTweaks != null && mapOffsetTweaks.ContainsKey(worldQuest.WorldMapAreaID))
            {
                num  += mapOffsetTweaks[worldQuest.WorldMapAreaID].x;
                num2 += mapOffsetTweaks[worldQuest.WorldMapAreaID].y;
            }
            GameObject gameObject = Object.Instantiate <GameObject>(this.m_AdvMapWorldQuestPrefab);

            gameObject.transform.SetParent(worldQuestArea.transform, false);
            this.SetupWorldQuestIcon(worldQuest, gameObject, num, num2, num3);
            return(gameObject);
        }
 public void SwapMaps()
 {
     this.m_zoneID = (this.m_zoneID != AdventureMapPanel.eZone.Zandalar ? AdventureMapPanel.eZone.Zandalar : AdventureMapPanel.eZone.Kultiras);
     this.SetMapByActiveZoneID();
 }
示例#5
0
 public static MapInfo GetMapInfo(AdventureMapPanel.eZone zone)
 {
     return((!MapInfo.s_mapInfoDictionary.ContainsKey(zone)) ? null : MapInfo.s_mapInfoDictionary[zone]);
 }
 public void SetMap(AdventureMapPanel.eZone zone)
 {
     this.m_zoneID = zone;
     this.SetMapByActiveZoneID();
 }