Ejemplo n.º 1
0
    public static void ShowConfiguration() // When use click on Fight class settings
    {
        DruidLevelSettings.Load();
        var settingWindow = new MarsSettingsGUI.SettingsWindow(DruidLevelSettings.CurrentSetting, ObjectManager.Me.WowClass.ToString());

        settingWindow.ShowDialog();
        DruidLevelSettings.CurrentSetting.Save();
        Main.kindofclass = DruidLevelSettings.CurrentSetting.ChooseTalent;
    }
Ejemplo n.º 2
0
    public static Spell AbolishPoison = new Spell("Abolish Poison"); //26



    public static void Initialize()
    {
        {
            _isLaunched = true;
            DruidLevelSettings.Load();
            Main.kindofclass = DruidLevelSettings.CurrentSetting.ChooseTalent;
            Talents.InitTalents(DruidLevelSettings.CurrentSetting.AssignTalents,
                                DruidLevelSettings.CurrentSetting.UseDefaultTalents,
                                DruidLevelSettings.CurrentSetting.TalentCodes.ToArray());
            Logging.Write("Druid Low Level Class...loading...");
            Groundmount = wManager.wManagerSetting.CurrentSetting.GroundMountName;
            if (wManager.wManagerSetting.CurrentSetting.GroundMountName == string.Empty)
            {
                wManager.wManagerSetting.CurrentSetting.GroundMountName = "Travel Form";
            }
            Rotation();
        }
    }
Ejemplo n.º 3
0
 public static bool Load()
 {
     try
     {
         if (File.Exists(AdviserFilePathAndName("DruidLevelSettings", ObjectManager.Me.Name + "." + Usefuls.RealmName)))
         {
             CurrentSetting =
                 Load <DruidLevelSettings>(AdviserFilePathAndName("DruidLevelSettings",
                                                                  ObjectManager.Me.Name + "." + Usefuls.RealmName));
             return(true);
         }
         CurrentSetting = new DruidLevelSettings();
     }
     catch (Exception e)
     {
         Logging.WriteError("DruidLevelSettings > Load(): " + e);
     }
     return(false);
 }