Ejemplo n.º 1
0
 public void Draw(RadarForm form)
 {
     if (FlyingEngine.CurrentProfile != null)
     {
         FlyingProfile temp = FlyingEngine.CurrentProfile;
         PrintWay(temp.GetListSortedAfterDistance(ObjectManager.MyPlayer.Location), _colorWaypoints, form);
         PrintWay(temp.GetListSortedAfterDistance(ObjectManager.MyPlayer.Location, temp.WaypointsToTown),
                  _colorToTown, form);
     }
 }
Ejemplo n.º 2
0
        public void Load()
        {
            var    executableFileInfo      = new FileInfo(Application.ExecutablePath);
            string executableDirectoryName = executableFileInfo.DirectoryName;

            OurDirectory = executableDirectoryName;
            FlyingSettings.LoadSettings();
            CurrentMode = Mode.Normal;
            if (!string.IsNullOrEmpty(FlyingSettings.Profile) && File.Exists(FlyingSettings.Profile))
            {
                CurrentProfile = new FlyingProfile();
                CurrentProfile.LoadFile(FlyingSettings.Profile);
            }
            else
            {
                CurrentProfile = null;
                Logging.Write("Could not load a valid flying profile");
            }
        }