public void GetAvailableAreas()
 {
     _areaNames.Clear();
     foreach (XElement a in Data.Profile.SimpleAreaData)
     {
         if (!Unranked_Areas.Contains(a.Attribute("name").Value.ToLower()))
         {
             _areaNames.Add(a.Attribute("name").Value);
         }
     }
 }
Beispiel #2
0
        private void CreateAreaBackgrounds()
        {
            _areas = new Dictionary <string, AnimatedBackground>();
            foreach (XElement a in Data.Profile.SimpleAreaData)
            {
                if (!Unranked_Areas.Contains(a.Attribute("name").Value.ToLower()))
                {
                    string            area     = a.Attribute("name").Value;
                    AreaDataContainer areaData = Profile.GetDataForNamedArea(area);

                    _areas.Add(area, AnimatedBackground.Create(areaData.SelectionTexture, new int[] { 0, 1, 2 }));
                }
            }
        }