Example #1
0
        public override void Initialize()
        {
            try
            {
                MyCurrentSpec = Me.Specialization;

                GlobalSettingsManager.Instance.Init();
                AbilityManager.ReloadAbilities();
                AbilityChainsManager.Init();
                ItemManager.LoadDataSet();

                Events = new Events();

                Log.Combat("--------------------------------------------------");
                Log.Combat(Name);
                Log.Combat(string.Format("You are a Level {0} {1} {2}", Me.Level, Me.Race, Me.Class));
                Log.Combat(string.Format("Current Specialization: {0}",
                                         MyCurrentSpec.ToString().Replace("Druid", string.Empty)));
                Log.Combat(string.Format("Current Profile: {0}", GlobalSettingsManager.Instance.LastUsedProfile));
                Log.Combat(string.Format("{0} abilities loaded", AbilityManager.Instance.Abilities.Count));
                Log.Combat(string.Format("{0} conditional use items loaded ({1} enabled)", ItemManager.Items.Count,
                                         ItemManager.Items.Count(o => o.Enabled)));
                Log.Combat("--------------------------------------------------");

                AbilityChainsManager.LoadDataSet();

                SettingsManager.Instance.LogDump();
            }
            catch (Exception ex)
            {
                Log.Gui(string.Format("Error Initializing Paws Combat Routine: {0}", ex));
            }
        }
Example #2
0
        public override void OnButtonPress()
        {
            var settingsForm = new SettingsForm();

            if (settingsForm.ShowDialog() == DialogResult.OK)
            {
                SettingsManager.InitWithLastUsedProfile();
                AbilityManager.ReloadAbilities();
                ItemManager.LoadDataSet();

                AbilityChainsManager.Init();
                AbilityChainsManager.LoadDataSet();

                SettingsManager.Instance.LogDump();

                Log.Gui(string.Format("Profile [{0}] saved and loaded.", GlobalSettingsManager.Instance.LastUsedProfile));
            }
        }