Ejemplo n.º 1
0
    public static void ShowConfiguration() // When a configuration is declared
    {
        HunterLevelSettings.Load();
        var settingWindow = new MarsSettingsGUI.SettingsWindow(HunterLevelSettings.CurrentSetting, ObjectManager.Me.WowClass.ToString());

        settingWindow.ShowDialog();
        HunterLevelSettings.CurrentSetting.Save();
        Main.kindofclass = HunterLevelSettings.CurrentSetting.ChooseTalent;
    }
Ejemplo n.º 2
0
 public static void Initialize() // When product started, initialize and launch Fightclass
 {
     if (ObjectManager.Me.WowClass == WoWClass.Hunter)
     {
         HunterLevelSettings.Load();
         Main.kindofclass = HunterLevelSettings.CurrentSetting.ChooseTalent;
         Talents.InitTalents(HunterLevelSettings.CurrentSetting.AssignTalents,
                             HunterLevelSettings.CurrentSetting.UseDefaultTalents,
                             HunterLevelSettings.CurrentSetting.TalentCodes.ToArray());
         Logging.Write("Hunter Low Level  Class...loading...");
         RangeManager();
         _isLaunched = true;
         Rotation();
     }
     else
     {
         Logging.Write("No  Hunter....unloading...");
     }
 }
Ejemplo n.º 3
0
 public static bool Load()
 {
     try
     {
         if (File.Exists(AdviserFilePathAndName("Hunter Settings", ObjectManager.Me.Name + "." + Usefuls.RealmName)))
         {
             CurrentSetting =
                 Load <HunterLevelSettings>(AdviserFilePathAndName("Hunter Settings",
                                                                   ObjectManager.Me.Name + "." + Usefuls.RealmName));
             return(true);
         }
         CurrentSetting = new HunterLevelSettings();
     }
     catch (Exception e)
     {
         Logging.WriteError("HunterLevelSettings > Load(): " + e);
     }
     return(false);
 }