コード例 #1
0
ファイル: PluginCore.cs プロジェクト: Oonej/ChaosHelper
        void LoadWindow()
        {
            // Create the view
            VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
            parser.ParseFromResource("ChaosHelper.mainView.xml", out properties, out controls);

            // Display the view
            view = new VirindiViewService.HudView(properties, controls);

            TabView = view != null ? (HudTabView)view["nbMain"] : new HudTabView();

            ChatCommand  = view != null ? (HudTextBox)view["ChatCommand"] : new HudTextBox();
            ConfigChoice = view != null ? (HudCombo)view["ConfigFiles"] : new HudCombo(controls);
            VersionLbl   = view != null ? (HudStaticText)view["VersionLbl"] : new HudStaticText();

            SetChatBtn      = view != null ? (HudButton)view["ChatCommandSet"] : new HudButton();
            LoadConfigBtn   = view != null ? (HudButton)view["ReloadConfig"] : new HudButton();
            SaveDefaultsBtn = view != null ? (HudButton)view["SaveIni"] : new HudButton();

            popoutList = view != null ? (HudList)view["PopoutList"] : new HudList();

            SetChatBtn.Hit      += new EventHandler(ChatCommandSet_Click);
            LoadConfigBtn.Hit   += new EventHandler(ReloadConfig_Click);
            SaveDefaultsBtn.Hit += new EventHandler(SaveIni_Click);

            view.Location = new System.Drawing.Point(locx, locy);

            TabView.OpenTabChange += new EventHandler(TabChanged);

            VersionLbl.Text  = "Version 2.2.5.0";
            ChatCommand.Text = chatLoc;
        }
コード例 #2
0
 void SetVVSProps()
 {
     VirindiViewService.HudView v = ((MyClasses.MetaViewWrappers.VirindiViewServiceHudControls.View)View).Underlying;
     v.UserMinimizable     = false;
     v.UserGhostable       = false;
     v.UserAlphaChangeable = false;
     v.ShowInBar           = false;
     v.ForcedZOrder        = 10;
 }
コード例 #3
0
        //List<HudB>

        public PopoutWindow()
        {
            VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
            parser.ParseFromResource("ChaosHelper.popoutView.xml", out popoutproperties, out popoutcontrols);

            popoutview                 = new VirindiViewService.HudView(popoutproperties, popoutcontrols);
            popoutview.ShowInBar       = false;
            popoutview.Visible         = false;
            popoutview.UserMinimizable = true;

            popoutTempLayout = popoutview != null ? (HudFixedLayout)popoutview["popout"] : new HudFixedLayout();

            //popoutview.VisibleChanged += Popoutview_VisibleChanged;
        }
コード例 #4
0
        private void LoadWindow()
        {
            // Create the view
            VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
            parser.ParseFromResource("RareHunter.mainView.xml", out properties, out controls);
            view = new VirindiViewService.HudView(properties, controls);

            TabView = view != null ? (HudTabView)view["nbMain"] : new HudTabView();

            killrate      = view != null ? (HudStaticText)view["killrate"] : new HudStaticText();
            time          = view != null ? (HudStaticText)view["time"] : new HudStaticText();
            killshr       = view != null ? (HudStaticText)view["killshr"] : new HudStaticText();
            rares         = view != null ? (HudStaticText)view["rares"] : new HudStaticText();
            totalInvRares = view != null ? (HudStaticText)view["totalInvRares"] : new HudStaticText();

            broadcaststats      = view != null ? (HudButton)view["broadcaststats"] : new HudButton();
            broadcaststats.Hit += new EventHandler(BroadCastMessage);

            broadcaststatsa      = view != null ? (HudButton)view["broadcaststatsa"] : new HudButton();
            broadcaststatsa.Hit += new EventHandler(BroadCastMessagea);

            broadcaststatsf      = view != null ? (HudButton)view["broadcaststatsf"] : new HudButton();
            broadcaststatsf.Hit += new EventHandler(BroadCastMessagef);

            refreshRares      = view != null ? (HudButton)view["refreshRares"] : new HudButton();
            refreshRares.Hit += new EventHandler(CharacterFilter_LoginComplete);

            resetstats      = view != null ? (HudButton)view["resetstats"] : new HudButton();
            resetstats.Hit += new EventHandler(ResetStats);

            resetHistory      = view != null ? (HudButton)view["resetHistory"] : new HudButton();
            resetHistory.Hit += new EventHandler(resetHistoryEvent);

            exportHistory      = view != null ? (HudButton)view["exportHistory"] : new HudButton();
            exportHistory.Hit += new EventHandler(exporthistoryEvent);

            email = view != null ? (HudTextBox)view["emailValue"] : new HudTextBox();
            pass  = view != null ? (HudTextBox)view["passwordValue"] : new HudTextBox();
            port  = view != null ? (HudTextBox)view["portValue"] : new HudTextBox();
            host  = view != null ? (HudTextBox)view["hostValue"] : new HudTextBox();
            ss1   = view != null ? (HudCheckBox)view["enableSS1Value"] : new HudCheckBox();

            showAllCB         = view != null ? (HudCheckBox)view["showAll"] : new HudCheckBox();
            showAllCB.Change += new EventHandler(toggleShowAll);

            raresFound = view != null ? (HudList)view["raresFound"] : new HudList();
            totalRares = view != null ? (HudList)view["inventoryRares"] : new HudList();

            sendemail         = view != null ? (HudCheckBox)view["sendEmailValue"] : new HudCheckBox();
            sendemail.Change += new EventHandler(SendEmailChanged);

            testEmail      = view != null ? (HudButton)view["testEmail"] : new HudButton();
            testEmail.Hit += new EventHandler(TestEmail);

            saveEmail      = view != null ? (HudButton)view["emailSave"] : new HudButton();
            saveEmail.Hit += new EventHandler(SaveEmailSettings);

            saveDiscord      = view != null ? (HudButton)view["discordSave"] : new HudButton();
            saveDiscord.Hit += new EventHandler(SaveEmailSettings);

            testDiscord            = view != null ? (HudButton)view["testDiscord"] : new HudButton();
            testDiscord.Hit       += new EventHandler(TestDiscord);
            discordwebhook         = view != null ? (HudCheckBox)view["discordWebhookValue"] : new HudCheckBox();
            discordwebhook.Change += new EventHandler(SendDiscordHookChanged);

            discordurl = view != null ? (HudTextBox)view["discordWebhookURLValue"] : new HudTextBox();

            tier1cb         = view != null ? (HudCheckBox)view["notifytier1"] : new HudCheckBox();
            tier1cb.Change += new EventHandler(SaveEmailSettings);

            tier2cb         = view != null ? (HudCheckBox)view["notifytier2"] : new HudCheckBox();
            tier2cb.Change += new EventHandler(SaveEmailSettings);

            tier3cb         = view != null ? (HudCheckBox)view["notifytier3"] : new HudCheckBox();
            tier3cb.Change += new EventHandler(SaveEmailSettings);

            tier4cb         = view != null ? (HudCheckBox)view["notifytier4"] : new HudCheckBox();
            tier4cb.Change += new EventHandler(SaveEmailSettings);

            tier5cb         = view != null ? (HudCheckBox)view["notifytier5"] : new HudCheckBox();
            tier5cb.Change += new EventHandler(SaveEmailSettings);

            tier6cb         = view != null ? (HudCheckBox)view["notifytier6"] : new HudCheckBox();
            tier6cb.Change += new EventHandler(SaveEmailSettings);
        }
コード例 #5
0
ファイル: MainView.cs プロジェクト: IbespwnAC/MagTools
		public MainView()
		{
			try
			{
				// Create the view
				VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
				parser.ParseFromResource("MagTools.Views.mainView.xml", out properties, out controls);

				// Display the view
				view = new VirindiViewService.HudView(properties, controls);


				// Assign the views objects to our local variables

				// Mana Tracker
				ManaList = view != null ? (HudList)view["ManaList"] : new HudList();

				ManaTotal = view != null ? (HudStaticText)view["ManaTotal"] : new HudStaticText();
				ManaRecharge = view != null ? (HudCheckBox)view["ManaRecharge"] : new HudCheckBox();
				UnretainedTotal = view != null ? (HudStaticText)view["UnretainedTotal"] : new HudStaticText();

				// Combat Tracker
				CombatTrackerMonsterListCurrent = view != null ? (HudList)view["CombatTrackerMonsterListCurrent"] : new HudList();
				CombatTrackerDamageListCurrent = view != null ? (HudList)view["CombatTrackerDamageListCurrent"] : new HudList();
				CombatTrackerMonsterListPersistent = view != null ? (HudList)view["CombatTrackerMonsterListPersistent"] : new HudList();
				CombatTrackerDamageListPersistent = view != null ? (HudList)view["CombatTrackerDamageListPersistent"] : new HudList();

				// Combat Tracker - Options
				CombatTrackerClearCurrentStats = view != null ? (HudButton)view["CombatTrackerClearCurrentStats"] : new HudButton();
				CombatTrackerExportCurrentStats = view != null ? (HudButton)view["CombatTrackerExportCurrentStats"] : new HudButton();
				CombatTrackerClearPersistentStats = view != null ? (HudButton)view["CombatTrackerClearPersistentStats"] : new HudButton();

				CombatTrackerExportOnLogOff = view != null ? (HudCheckBox)view["CombatTrackerExportOnLogOff"] : new HudCheckBox();
				CombatTrackerPersistent = view != null ? (HudCheckBox)view["CombatTrackerPersistent"] : new HudCheckBox();
				CombatTrackerSortAlphabetically = view != null ? (HudCheckBox)view["CombatTrackerSortAlphabetically"] : new HudCheckBox();

				// Corpse Tracker
				CorpseTrackerList = view != null ? (HudList)view["CorpseTrackerList"] : new HudList();

				// Corpse Tracker - Options
				CorpseTrackerClearHistory = view != null ? (HudButton)view["CorpseTrackerClearHistory"] : new HudButton();

				CorpseTrackerEnabled = view != null ? (HudCheckBox)view["CorpseTrackerEnabled"] : new HudCheckBox();
				CorpseTrackerPersistent = view != null ? (HudCheckBox)view["CorpseTrackerPersistent"] : new HudCheckBox();
				CorpseTrackerTrackAllCorpses = view != null ? (HudCheckBox)view["CorpseTrackerTrackAllCorpses"] : new HudCheckBox();
				CorpseTrackerTrackFellowCorpses = view != null ? (HudCheckBox)view["CorpseTrackerTrackFellowCorpses"] : new HudCheckBox();
				CorpseTrackerTrackPermittedCorpses = view != null ? (HudCheckBox)view["CorpseTrackerTrackPermittedCorpses"] : new HudCheckBox();

				// Player Tracker
				PlayerTrackerList = view != null ? (HudList)view["PlayerTrackerList"] : new HudList();

				// Player Tracker - Options
				PlayerTrackerClearHistory = view != null ? (HudButton)view["PlayerTrackerClearHistory"] : new HudButton();

				PlayerTrackerEnabled = view != null ? (HudCheckBox)view["PlayerTrackerEnabled"] : new HudCheckBox();
				PlayerTrackerPersistent = view != null ? (HudCheckBox)view["PlayerTrackerPersistent"] : new HudCheckBox();

				// Consumable Tracker
				ConsumableTrackerList = view != null ? (HudList)view["ConsumableTrackerList"] : new HudList();


				// Chat Logger
				ChatLogger1List = view != null ? (HudList)view["ChatLogger1List"] : new HudList();
				ChatLogger2List = view != null ? (HudList)view["ChatLogger2List"] : new HudList();

				// Chat Logger - Options
				ChatLoggerClearHistory = view != null ? (HudButton)view["ChatLoggerClearHistory"] : new HudButton();
				ChatLoggerPersistent = view != null ? (HudCheckBox)view["ChatLoggerPersistent"] : new HudCheckBox();

				ChatGroup1OptionsList = view != null ? (HudList)view["ChatGroup1OptionsList"] : new HudList();
				ChatGroup2OptionsList = view != null ? (HudList)view["ChatGroup2OptionsList"] : new HudList();


				// Tools - Inventory
				ClipboardWornEquipment = view != null ? (HudButton)view["ClipboardWornEquipment"] : new HudButton();
				ClipboardInventoryInfo = view != null ? (HudButton)view["ClipboardInventoryInfo"] : new HudButton();

				InventorySearch = view != null ? (HudTextBox)view["InventorySearch"] : new HudTextBox();
				InventoryList = view != null ? (HudList)view["InventoryList"] : new HudList();
				InventoryItemText = view != null ? (HudStaticText)view["InventoryItemText"] : new HudStaticText();

				// Tools - Tinkering
				TinkeringAddSelectedItem = view != null ? (HudButton)view["TinkeringAddSelectedItem"] : new HudButton();

				TinkeringMaterial = view != null ? (HudCombo)view["TinkeringMaterial"] : new HudCombo(view.Controls);
				TinkeringMinimumPercent = view != null ? (HudTextBox)view["TinkeringMinimumPercent"] : new HudTextBox();
				TinkeringTargetTotalTinks = view != null ? (HudTextBox)view["TinkeringTargetTotalTinks"] : new HudTextBox();

				TinkeringStart = view != null ? (HudButton)view["TinkeringStart"] : new HudButton();
				TinkeringStop = view != null ? (HudButton)view["TinkeringStop"] : new HudButton();

				TinkeringList = view != null ? (HudList)view["TinkeringList"] : new HudList();

				// Tools - Character
				LoginText = view != null ? (HudTextBox)view["LoginText"] : new HudTextBox();
				LoginAdd = view != null ? (HudButton)view["LoginAdd"] : new HudButton();
				LoginList = view != null ? (HudList)view["LoginList"] : new HudList();

				LoginCompleteText = view != null ? (HudTextBox)view["LoginCompleteText"] : new HudTextBox();
				LoginCompleteAdd = view != null ? (HudButton)view["LoginCompleteAdd"] : new HudButton();
				LoginCompleteList = view != null ? (HudList)view["LoginCompleteList"] : new HudList();

				PeriodicCommandText = view != null ? (HudTextBox)view["PeriodicCommandText"] : new HudTextBox();
				PeriodicCommandInterval = view != null ? (HudTextBox)view["PeriodicCommandInterval"] : new HudTextBox();
				PeriodicCommandOffset = view != null ? (HudTextBox)view["PeriodicCommandOffset"] : new HudTextBox();
				PeriodicCommandAdd = view != null ? (HudButton)view["PeriodicCommandAdd"] : new HudButton();
				PeriodicCommandList = view != null ? (HudList)view["PeriodicCommandList"] : new HudList();


				// Misc - Options
				OptionList = view != null ? (HudList)view["OptionList"] : new HudList();

				OutputWindow = view != null ? (HudTextBox)view["OutputWindow"] : new HudTextBox();

				// Misc - Filters
				FiltersList = view != null ? (HudList)view["FiltersList"] : new HudList();

				// Misc - Client
				ClientRemoveFrame = view != null ? (HudCheckBox)view["ClientRemoveFrame"] : new HudCheckBox();

				ClientSetWindowPosition = view != null ? (HudButton)view["ClientSetWindowPosition"] : new HudButton();
				ClientDelWindowPosition = view != null ? (HudButton)view["ClientDelWindowPosition"] : new HudButton();
				ClientSetPosition = view != null ? (HudStaticText)view["ClientSetPosition"] : new HudStaticText();

				NoFocusFPS = view != null ? (HudTextBox)view["NoFocusFPS"] : new HudTextBox();

				// Misc - About
				VersionLabel = view != null ? (HudStaticText)view["VersionLabel"] : new HudStaticText();


				// ******************************************************
				// Link some of our controls to our configuration manager
				// ******************************************************

				// Mana Tracker
				ManaRecharge.Checked = Settings.SettingsManager.ManaManagement.AutoRecharge.Value;
				Settings.SettingsManager.ManaManagement.AutoRecharge.Changed += obj => { ManaRecharge.Checked = obj.Value; };
				ManaRecharge.Change += (s, e) => { try { Settings.SettingsManager.ManaManagement.AutoRecharge.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				// Combat Tracker
				CombatTrackerExportOnLogOff.Checked = Settings.SettingsManager.CombatTracker.ExportOnLogOff.Value;
				Settings.SettingsManager.CombatTracker.ExportOnLogOff.Changed += obj => { CombatTrackerExportOnLogOff.Checked = obj.Value; };
				CombatTrackerExportOnLogOff.Change += (s, e) => { try { Settings.SettingsManager.CombatTracker.ExportOnLogOff.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				CombatTrackerPersistent.Checked = Settings.SettingsManager.CombatTracker.Persistent.Value;
				Settings.SettingsManager.CombatTracker.Persistent.Changed += obj => { CombatTrackerPersistent.Checked = obj.Value; };
				CombatTrackerPersistent.Change += (s, e) => { try { Settings.SettingsManager.CombatTracker.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				CombatTrackerSortAlphabetically.Checked = Settings.SettingsManager.CombatTracker.SortAlphabetically.Value;
				Settings.SettingsManager.CombatTracker.SortAlphabetically.Changed += obj => { CombatTrackerSortAlphabetically.Checked = obj.Value; };
				CombatTrackerSortAlphabetically.Change += (s, e) => { try { Settings.SettingsManager.CombatTracker.SortAlphabetically.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				// Corpse Tracker
				CorpseTrackerEnabled.Checked = Settings.SettingsManager.CorpseTracker.Enabled.Value;
				Settings.SettingsManager.CorpseTracker.Enabled.Changed += obj => { CorpseTrackerEnabled.Checked = obj.Value; };
				CorpseTrackerEnabled.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.Enabled.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				CorpseTrackerPersistent.Checked = Settings.SettingsManager.CorpseTracker.Persistent.Value;
				Settings.SettingsManager.CorpseTracker.Persistent.Changed += obj => { CorpseTrackerPersistent.Checked = obj.Value; };
				CorpseTrackerPersistent.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				CorpseTrackerTrackAllCorpses.Checked = Settings.SettingsManager.CorpseTracker.TrackAllCorpses.Value;
				Settings.SettingsManager.CorpseTracker.TrackAllCorpses.Changed += obj => { CorpseTrackerTrackAllCorpses.Checked = obj.Value; };
				CorpseTrackerTrackAllCorpses.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.TrackAllCorpses.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				CorpseTrackerTrackFellowCorpses.Checked = Settings.SettingsManager.CorpseTracker.TrackFellowCorpses.Value;
				Settings.SettingsManager.CorpseTracker.TrackFellowCorpses.Changed += obj => { CorpseTrackerTrackFellowCorpses.Checked = obj.Value; };
				CorpseTrackerTrackFellowCorpses.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.TrackFellowCorpses.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				CorpseTrackerTrackPermittedCorpses.Checked = Settings.SettingsManager.CorpseTracker.TrackPermittedCorpses.Value;
				Settings.SettingsManager.CorpseTracker.TrackPermittedCorpses.Changed += obj => { CorpseTrackerTrackPermittedCorpses.Checked = obj.Value; };
				CorpseTrackerTrackPermittedCorpses.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.TrackPermittedCorpses.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				// Player Tracker
				PlayerTrackerEnabled.Checked = Settings.SettingsManager.PlayerTracker.Enabled.Value;
				Settings.SettingsManager.PlayerTracker.Enabled.Changed += obj => { PlayerTrackerEnabled.Checked = obj.Value; };
				PlayerTrackerEnabled.Change += (s, e) => { try { Settings.SettingsManager.PlayerTracker.Enabled.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				PlayerTrackerPersistent.Checked = Settings.SettingsManager.PlayerTracker.Persistent.Value;
				Settings.SettingsManager.PlayerTracker.Persistent.Changed += obj => { PlayerTrackerPersistent.Checked = obj.Value; };
				PlayerTrackerPersistent.Change += (s, e) => { try { Settings.SettingsManager.PlayerTracker.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };


				// Chat Logger
				ChatLoggerPersistent.Checked = Settings.SettingsManager.ChatLogger.Persistent.Value;
				Settings.SettingsManager.ChatLogger.Persistent.Changed += obj => { ChatLoggerPersistent.Checked = obj.Value; };
				ChatLoggerPersistent.Change += (s, e) => { try { Settings.SettingsManager.ChatLogger.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Area);
				AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Tells);
				AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Fellowship);
				AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].General);
				AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Trade);
				AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Allegiance);

				AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Area);
				AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Tells);
				AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Fellowship);
				AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].General);
				AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Trade);
				AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Allegiance);


				// Misc.Options
				AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.Enabled);
				AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.ShowBuffedValues);
				AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.ShowValueAndBurden);
				AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.LeftClickIdent);
				AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.AutoClipboard);

				AddOption(OptionList, Settings.SettingsManager.AutoBuySell.Enabled);
				AddOption(OptionList, Settings.SettingsManager.AutoBuySell.TestMode);

				AddOption(OptionList, Settings.SettingsManager.AutoTradeAdd.Enabled);

				AddOption(OptionList, Settings.SettingsManager.AutoTradeAccept.Enabled);

				AddOption(OptionList, Settings.SettingsManager.Looting.AutoLootChests);
				AddOption(OptionList, Settings.SettingsManager.Looting.AutoLootCorpses);
				AddOption(OptionList, Settings.SettingsManager.Looting.AutoLootMyCorpses);
				AddOption(OptionList, Settings.SettingsManager.Looting.LootSalvage);

				AddOption(OptionList, Settings.SettingsManager.Tinkering.AutoClickYes);

				AddOption(OptionList, Settings.SettingsManager.InventoryManagement.InventoryLogger);
				AddOption(OptionList, Settings.SettingsManager.InventoryManagement.AetheriaRevealer);
				AddOption(OptionList, Settings.SettingsManager.InventoryManagement.HeartCarver);
				AddOption(OptionList, Settings.SettingsManager.InventoryManagement.ShatteredKeyFixer);
				AddOption(OptionList, Settings.SettingsManager.InventoryManagement.KeyRinger);

				AddOption(OptionList, Settings.SettingsManager.Misc.OpenMainPackOnLogin);
				AddOption(OptionList, Settings.SettingsManager.Misc.MaximizeChatOnLogin);
				AddOption(OptionList, Settings.SettingsManager.Misc.LogOutOnDeath);
				AddOption(OptionList, Settings.SettingsManager.Misc.DebuggingEnabled);

				OutputWindow.Text = Settings.SettingsManager.Misc.OutputTargetWindow.Value.ToString(CultureInfo.InvariantCulture);
				OutputWindow.Change += (s, e) =>
				{
					try
					{
						int value;
						if (!int.TryParse(OutputWindow.Text, out value))
							value = Settings.SettingsManager.Misc.OutputTargetWindow.DefaultValue;
						Settings.SettingsManager.Misc.OutputTargetWindow.Value = value;
					}
					catch (Exception ex) { Debug.LogException(ex); }
				};

				// Misc.Filters
				AddOption(FiltersList, Settings.SettingsManager.Filters.AttackEvades);
				AddOption(FiltersList, Settings.SettingsManager.Filters.DefenseEvades);
				AddOption(FiltersList, Settings.SettingsManager.Filters.AttackResists);
				AddOption(FiltersList, Settings.SettingsManager.Filters.DefenseResists);
				AddOption(FiltersList, Settings.SettingsManager.Filters.NPKFails);
				AddOption(FiltersList, Settings.SettingsManager.Filters.DirtyFighting);
				AddOption(FiltersList, Settings.SettingsManager.Filters.MonsterDeaths);

				AddOption(FiltersList, Settings.SettingsManager.Filters.SpellCastingMine);
				AddOption(FiltersList, Settings.SettingsManager.Filters.SpellCastingOthers);
				AddOption(FiltersList, Settings.SettingsManager.Filters.SpellCastFizzles);
				AddOption(FiltersList, Settings.SettingsManager.Filters.CompUsage);
				AddOption(FiltersList, Settings.SettingsManager.Filters.SpellExpires);

				AddOption(FiltersList, Settings.SettingsManager.Filters.HealingKitSuccess);
				AddOption(FiltersList, Settings.SettingsManager.Filters.HealingKitFail);
				AddOption(FiltersList, Settings.SettingsManager.Filters.Salvaging);
				AddOption(FiltersList, Settings.SettingsManager.Filters.SalvagingFails);
				AddOption(FiltersList, Settings.SettingsManager.Filters.AuraOfCraftman);
				AddOption(FiltersList, Settings.SettingsManager.Filters.ManaStoneUsage);

				AddOption(FiltersList, Settings.SettingsManager.Filters.TradeBuffBotSpam);
				AddOption(FiltersList, Settings.SettingsManager.Filters.FailedAssess);

				AddOption(FiltersList, Settings.SettingsManager.Filters.KillTaskComplete);
				AddOption(FiltersList, Settings.SettingsManager.Filters.VendorTells);
				AddOption(FiltersList, Settings.SettingsManager.Filters.MonsterTell);
				AddOption(FiltersList, Settings.SettingsManager.Filters.NpcChatter);
				AddOption(FiltersList, Settings.SettingsManager.Filters.MasterArbitratorSpam);
				AddOption(FiltersList, Settings.SettingsManager.Filters.AllMasterArbitratorChat);

				AddOption(FiltersList, Settings.SettingsManager.Filters.StatusTextYoureTooBusy);
				AddOption(FiltersList, Settings.SettingsManager.Filters.StatusTextCasting);
				AddOption(FiltersList, Settings.SettingsManager.Filters.StatusTextAll);

				// Misc.Client
				ClientRemoveFrame.Checked = Settings.SettingsManager.Misc.RemoveWindowFrame.Value;
				Settings.SettingsManager.Misc.RemoveWindowFrame.Changed += obj => { ClientRemoveFrame.Checked = obj.Value; };
				ClientRemoveFrame.Change += (s, e) => { try { Settings.SettingsManager.Misc.RemoveWindowFrame.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

				ClientSetWindowPosition.Hit += (s, e) => { try { Client.WindowMover.SetWindowPosition(); UpdateClientWindowPositionLabel(); } catch (Exception ex) { Debug.LogException(ex); } };
				ClientDelWindowPosition.Hit += (s, e) =>  { try { Client.WindowMover.DeleteWindowPosition(); UpdateClientWindowPositionLabel(); } catch (Exception ex) { Debug.LogException(ex); } };
				UpdateClientWindowPositionLabel();

				NoFocusFPS.Text = Settings.SettingsManager.Misc.NoFocusFPS.Value.ToString(CultureInfo.InvariantCulture);
				NoFocusFPS.Change += (s, e) =>
				{
					try
					{
						int value;
						if (!int.TryParse(NoFocusFPS.Text, out value))
							value = Settings.SettingsManager.Misc.NoFocusFPS.DefaultValue;
						Settings.SettingsManager.Misc.NoFocusFPS.Value = value;
					}
					catch (Exception ex) { Debug.LogException(ex); }
				};
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
コード例 #6
0
 void SetStrVVSProps()
 {
     VirindiViewService.HudView             v  = ((MyClasses.MetaViewWrappers.VirindiViewServiceHudControls.View)View).Underlying;
     VirindiViewService.Controls.HudTextBox tb = (VirindiViewService.Controls.HudTextBox)v.Controls["Textbox1"];
     VirindiViewService.HudView.FocusControl = tb;
 }
コード例 #7
0
        public MainView()
        {
            try
            {
                // Create the view
                VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
                parser.ParseFromResource("MagTools.Views.mainView.xml", out properties, out controls);

                // Display the view
                view = new VirindiViewService.HudView(properties, controls);


                // Assign the views objects to our local variables

                // Mana Tracker
                ManaList = view != null ? (HudList)view["ManaList"] : new HudList();

                ManaTotal       = view != null ? (HudStaticText)view["ManaTotal"] : new HudStaticText();
                ManaRecharge    = view != null ? (HudCheckBox)view["ManaRecharge"] : new HudCheckBox();
                UnretainedTotal = view != null ? (HudStaticText)view["UnretainedTotal"] : new HudStaticText();

                // Combat Tracker
                CombatTrackerMonsterListCurrent    = view != null ? (HudList)view["CombatTrackerMonsterListCurrent"] : new HudList();
                CombatTrackerDamageListCurrent     = view != null ? (HudList)view["CombatTrackerDamageListCurrent"] : new HudList();
                CombatTrackerMonsterListPersistent = view != null ? (HudList)view["CombatTrackerMonsterListPersistent"] : new HudList();
                CombatTrackerDamageListPersistent  = view != null ? (HudList)view["CombatTrackerDamageListPersistent"] : new HudList();

                // Combat Tracker - Options
                CombatTrackerClearCurrentStats    = view != null ? (HudButton)view["CombatTrackerClearCurrentStats"] : new HudButton();
                CombatTrackerExportCurrentStats   = view != null ? (HudButton)view["CombatTrackerExportCurrentStats"] : new HudButton();
                CombatTrackerClearPersistentStats = view != null ? (HudButton)view["CombatTrackerClearPersistentStats"] : new HudButton();

                CombatTrackerExportOnLogOff     = view != null ? (HudCheckBox)view["CombatTrackerExportOnLogOff"] : new HudCheckBox();
                CombatTrackerPersistent         = view != null ? (HudCheckBox)view["CombatTrackerPersistent"] : new HudCheckBox();
                CombatTrackerSortAlphabetically = view != null ? (HudCheckBox)view["CombatTrackerSortAlphabetically"] : new HudCheckBox();

                // Corpse Tracker
                CorpseTrackerList = view != null ? (HudList)view["CorpseTrackerList"] : new HudList();

                // Corpse Tracker - Options
                CorpseTrackerClearHistory = view != null ? (HudButton)view["CorpseTrackerClearHistory"] : new HudButton();

                CorpseTrackerEnabled               = view != null ? (HudCheckBox)view["CorpseTrackerEnabled"] : new HudCheckBox();
                CorpseTrackerPersistent            = view != null ? (HudCheckBox)view["CorpseTrackerPersistent"] : new HudCheckBox();
                CorpseTrackerTrackAllCorpses       = view != null ? (HudCheckBox)view["CorpseTrackerTrackAllCorpses"] : new HudCheckBox();
                CorpseTrackerTrackFellowCorpses    = view != null ? (HudCheckBox)view["CorpseTrackerTrackFellowCorpses"] : new HudCheckBox();
                CorpseTrackerTrackPermittedCorpses = view != null ? (HudCheckBox)view["CorpseTrackerTrackPermittedCorpses"] : new HudCheckBox();

                // Player Tracker
                PlayerTrackerList = view != null ? (HudList)view["PlayerTrackerList"] : new HudList();

                // Player Tracker - Options
                PlayerTrackerClearHistory = view != null ? (HudButton)view["PlayerTrackerClearHistory"] : new HudButton();

                PlayerTrackerEnabled    = view != null ? (HudCheckBox)view["PlayerTrackerEnabled"] : new HudCheckBox();
                PlayerTrackerPersistent = view != null ? (HudCheckBox)view["PlayerTrackerPersistent"] : new HudCheckBox();

                // Consumable Tracker
                ConsumableTrackerList = view != null ? (HudList)view["ConsumableTrackerList"] : new HudList();


                // Chat Logger
                ChatLogger1List = view != null ? (HudList)view["ChatLogger1List"] : new HudList();
                ChatLogger2List = view != null ? (HudList)view["ChatLogger2List"] : new HudList();

                // Chat Logger - Options
                ChatLoggerClearHistory = view != null ? (HudButton)view["ChatLoggerClearHistory"] : new HudButton();
                ChatLoggerPersistent   = view != null ? (HudCheckBox)view["ChatLoggerPersistent"] : new HudCheckBox();

                ChatGroup1OptionsList = view != null ? (HudList)view["ChatGroup1OptionsList"] : new HudList();
                ChatGroup2OptionsList = view != null ? (HudList)view["ChatGroup2OptionsList"] : new HudList();


                // Tools - Inventory
                ClipboardWornEquipment = view != null ? (HudButton)view["ClipboardWornEquipment"] : new HudButton();
                ClipboardInventoryInfo = view != null ? (HudButton)view["ClipboardInventoryInfo"] : new HudButton();

                InventorySearch   = view != null ? (HudTextBox)view["InventorySearch"] : new HudTextBox();
                InventoryList     = view != null ? (HudList)view["InventoryList"] : new HudList();
                InventoryItemText = view != null ? (HudStaticText)view["InventoryItemText"] : new HudStaticText();

                // Tools - Tinkering
                TinkeringAddSelectedItem = view != null ? (HudButton)view["TinkeringAddSelectedItem"] : new HudButton();

                TinkeringMaterial         = view != null ? (HudCombo)view["TinkeringMaterial"] : new HudCombo(view.Controls);
                TinkeringMinimumPercent   = view != null ? (HudTextBox)view["TinkeringMinimumPercent"] : new HudTextBox();
                TinkeringTargetTotalTinks = view != null ? (HudTextBox)view["TinkeringTargetTotalTinks"] : new HudTextBox();

                TinkeringStart = view != null ? (HudButton)view["TinkeringStart"] : new HudButton();
                TinkeringStop  = view != null ? (HudButton)view["TinkeringStop"] : new HudButton();

                TinkeringList = view != null ? (HudList)view["TinkeringList"] : new HudList();

                // Tools - Character
                LoginText = view != null ? (HudTextBox)view["LoginText"] : new HudTextBox();
                LoginAdd  = view != null ? (HudButton)view["LoginAdd"] : new HudButton();
                LoginList = view != null ? (HudList)view["LoginList"] : new HudList();

                LoginCompleteText = view != null ? (HudTextBox)view["LoginCompleteText"] : new HudTextBox();
                LoginCompleteAdd  = view != null ? (HudButton)view["LoginCompleteAdd"] : new HudButton();
                LoginCompleteList = view != null ? (HudList)view["LoginCompleteList"] : new HudList();

                PeriodicCommandText     = view != null ? (HudTextBox)view["PeriodicCommandText"] : new HudTextBox();
                PeriodicCommandInterval = view != null ? (HudTextBox)view["PeriodicCommandInterval"] : new HudTextBox();
                PeriodicCommandOffset   = view != null ? (HudTextBox)view["PeriodicCommandOffset"] : new HudTextBox();
                PeriodicCommandAdd      = view != null ? (HudButton)view["PeriodicCommandAdd"] : new HudButton();
                PeriodicCommandList     = view != null ? (HudList)view["PeriodicCommandList"] : new HudList();


                // Misc - Options
                OptionList = view != null ? (HudList)view["OptionList"] : new HudList();

                OutputWindow = view != null ? (HudTextBox)view["OutputWindow"] : new HudTextBox();

                // Misc - Filters
                FiltersList = view != null ? (HudList)view["FiltersList"] : new HudList();

                // Misc - Client
                ClientRemoveFrame = view != null ? (HudCheckBox)view["ClientRemoveFrame"] : new HudCheckBox();

                ClientSetWindowPosition = view != null ? (HudButton)view["ClientSetWindowPosition"] : new HudButton();
                ClientDelWindowPosition = view != null ? (HudButton)view["ClientDelWindowPosition"] : new HudButton();
                ClientSetPosition       = view != null ? (HudStaticText)view["ClientSetPosition"] : new HudStaticText();

                NoFocusFPS = view != null ? (HudTextBox)view["NoFocusFPS"] : new HudTextBox();

                // Misc - About
                VersionLabel = view != null ? (HudStaticText)view["VersionLabel"] : new HudStaticText();


                // ******************************************************
                // Link some of our controls to our configuration manager
                // ******************************************************

                // Mana Tracker
                ManaRecharge.Checked = Settings.SettingsManager.ManaManagement.AutoRecharge.Value;
                Settings.SettingsManager.ManaManagement.AutoRecharge.Changed += obj => { ManaRecharge.Checked = obj.Value; };
                ManaRecharge.Change += (s, e) => { try { Settings.SettingsManager.ManaManagement.AutoRecharge.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                // Combat Tracker
                CombatTrackerExportOnLogOff.Checked = Settings.SettingsManager.CombatTracker.ExportOnLogOff.Value;
                Settings.SettingsManager.CombatTracker.ExportOnLogOff.Changed += obj => { CombatTrackerExportOnLogOff.Checked = obj.Value; };
                CombatTrackerExportOnLogOff.Change += (s, e) => { try { Settings.SettingsManager.CombatTracker.ExportOnLogOff.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                CombatTrackerPersistent.Checked = Settings.SettingsManager.CombatTracker.Persistent.Value;
                Settings.SettingsManager.CombatTracker.Persistent.Changed += obj => { CombatTrackerPersistent.Checked = obj.Value; };
                CombatTrackerPersistent.Change += (s, e) => { try { Settings.SettingsManager.CombatTracker.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                CombatTrackerSortAlphabetically.Checked = Settings.SettingsManager.CombatTracker.SortAlphabetically.Value;
                Settings.SettingsManager.CombatTracker.SortAlphabetically.Changed += obj => { CombatTrackerSortAlphabetically.Checked = obj.Value; };
                CombatTrackerSortAlphabetically.Change += (s, e) => { try { Settings.SettingsManager.CombatTracker.SortAlphabetically.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                // Corpse Tracker
                CorpseTrackerEnabled.Checked = Settings.SettingsManager.CorpseTracker.Enabled.Value;
                Settings.SettingsManager.CorpseTracker.Enabled.Changed += obj => { CorpseTrackerEnabled.Checked = obj.Value; };
                CorpseTrackerEnabled.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.Enabled.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                CorpseTrackerPersistent.Checked = Settings.SettingsManager.CorpseTracker.Persistent.Value;
                Settings.SettingsManager.CorpseTracker.Persistent.Changed += obj => { CorpseTrackerPersistent.Checked = obj.Value; };
                CorpseTrackerPersistent.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                CorpseTrackerTrackAllCorpses.Checked = Settings.SettingsManager.CorpseTracker.TrackAllCorpses.Value;
                Settings.SettingsManager.CorpseTracker.TrackAllCorpses.Changed += obj => { CorpseTrackerTrackAllCorpses.Checked = obj.Value; };
                CorpseTrackerTrackAllCorpses.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.TrackAllCorpses.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                CorpseTrackerTrackFellowCorpses.Checked = Settings.SettingsManager.CorpseTracker.TrackFellowCorpses.Value;
                Settings.SettingsManager.CorpseTracker.TrackFellowCorpses.Changed += obj => { CorpseTrackerTrackFellowCorpses.Checked = obj.Value; };
                CorpseTrackerTrackFellowCorpses.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.TrackFellowCorpses.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                CorpseTrackerTrackPermittedCorpses.Checked = Settings.SettingsManager.CorpseTracker.TrackPermittedCorpses.Value;
                Settings.SettingsManager.CorpseTracker.TrackPermittedCorpses.Changed += obj => { CorpseTrackerTrackPermittedCorpses.Checked = obj.Value; };
                CorpseTrackerTrackPermittedCorpses.Change += (s, e) => { try { Settings.SettingsManager.CorpseTracker.TrackPermittedCorpses.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                // Player Tracker
                PlayerTrackerEnabled.Checked = Settings.SettingsManager.PlayerTracker.Enabled.Value;
                Settings.SettingsManager.PlayerTracker.Enabled.Changed += obj => { PlayerTrackerEnabled.Checked = obj.Value; };
                PlayerTrackerEnabled.Change += (s, e) => { try { Settings.SettingsManager.PlayerTracker.Enabled.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                PlayerTrackerPersistent.Checked = Settings.SettingsManager.PlayerTracker.Persistent.Value;
                Settings.SettingsManager.PlayerTracker.Persistent.Changed += obj => { PlayerTrackerPersistent.Checked = obj.Value; };
                PlayerTrackerPersistent.Change += (s, e) => { try { Settings.SettingsManager.PlayerTracker.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };


                // Chat Logger
                ChatLoggerPersistent.Checked = Settings.SettingsManager.ChatLogger.Persistent.Value;
                Settings.SettingsManager.ChatLogger.Persistent.Changed += obj => { ChatLoggerPersistent.Checked = obj.Value; };
                ChatLoggerPersistent.Change += (s, e) => { try { Settings.SettingsManager.ChatLogger.Persistent.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Area);
                AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Tells);
                AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Fellowship);
                AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].General);
                AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Trade);
                AddOption(ChatGroup1OptionsList, Settings.SettingsManager.ChatLogger.Groups[0].Allegiance);

                AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Area);
                AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Tells);
                AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Fellowship);
                AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].General);
                AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Trade);
                AddOption(ChatGroup2OptionsList, Settings.SettingsManager.ChatLogger.Groups[1].Allegiance);


                // Misc.Options
                AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.Enabled);
                AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.ShowBuffedValues);
                AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.ShowValueAndBurden);
                AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.LeftClickIdent);
                AddOption(OptionList, Settings.SettingsManager.ItemInfoOnIdent.AutoClipboard);

                AddOption(OptionList, Settings.SettingsManager.AutoBuySell.Enabled);
                AddOption(OptionList, Settings.SettingsManager.AutoBuySell.TestMode);

                AddOption(OptionList, Settings.SettingsManager.AutoTradeAdd.Enabled);

                AddOption(OptionList, Settings.SettingsManager.AutoTradeAccept.Enabled);

                AddOption(OptionList, Settings.SettingsManager.Looting.AutoLootChests);
                AddOption(OptionList, Settings.SettingsManager.Looting.AutoLootCorpses);
                AddOption(OptionList, Settings.SettingsManager.Looting.AutoLootMyCorpses);
                AddOption(OptionList, Settings.SettingsManager.Looting.LootSalvage);

                AddOption(OptionList, Settings.SettingsManager.Tinkering.AutoClickYes);

                AddOption(OptionList, Settings.SettingsManager.InventoryManagement.InventoryLogger);
                AddOption(OptionList, Settings.SettingsManager.InventoryManagement.AetheriaRevealer);
                AddOption(OptionList, Settings.SettingsManager.InventoryManagement.HeartCarver);
                AddOption(OptionList, Settings.SettingsManager.InventoryManagement.ShatteredKeyFixer);
                AddOption(OptionList, Settings.SettingsManager.InventoryManagement.KeyRinger);

                AddOption(OptionList, Settings.SettingsManager.Misc.OpenMainPackOnLogin);
                AddOption(OptionList, Settings.SettingsManager.Misc.MaximizeChatOnLogin);
                AddOption(OptionList, Settings.SettingsManager.Misc.LogOutOnDeath);
                AddOption(OptionList, Settings.SettingsManager.Misc.DebuggingEnabled);

                OutputWindow.Text    = Settings.SettingsManager.Misc.OutputTargetWindow.Value.ToString(CultureInfo.InvariantCulture);
                OutputWindow.Change += (s, e) =>
                {
                    try
                    {
                        int value;
                        if (!int.TryParse(OutputWindow.Text, out value))
                        {
                            value = Settings.SettingsManager.Misc.OutputTargetWindow.DefaultValue;
                        }
                        Settings.SettingsManager.Misc.OutputTargetWindow.Value = value;
                    }
                    catch (Exception ex) { Debug.LogException(ex); }
                };

                // Misc.Filters
                AddOption(FiltersList, Settings.SettingsManager.Filters.AttackEvades);
                AddOption(FiltersList, Settings.SettingsManager.Filters.DefenseEvades);
                AddOption(FiltersList, Settings.SettingsManager.Filters.AttackResists);
                AddOption(FiltersList, Settings.SettingsManager.Filters.DefenseResists);
                AddOption(FiltersList, Settings.SettingsManager.Filters.NPKFails);
                AddOption(FiltersList, Settings.SettingsManager.Filters.DirtyFighting);
                AddOption(FiltersList, Settings.SettingsManager.Filters.MonsterDeaths);

                AddOption(FiltersList, Settings.SettingsManager.Filters.SpellCastingMine);
                AddOption(FiltersList, Settings.SettingsManager.Filters.SpellCastingOthers);
                AddOption(FiltersList, Settings.SettingsManager.Filters.SpellCastFizzles);
                AddOption(FiltersList, Settings.SettingsManager.Filters.CompUsage);
                AddOption(FiltersList, Settings.SettingsManager.Filters.SpellExpires);

                AddOption(FiltersList, Settings.SettingsManager.Filters.HealingKitSuccess);
                AddOption(FiltersList, Settings.SettingsManager.Filters.HealingKitFail);
                AddOption(FiltersList, Settings.SettingsManager.Filters.Salvaging);
                AddOption(FiltersList, Settings.SettingsManager.Filters.SalvagingFails);
                AddOption(FiltersList, Settings.SettingsManager.Filters.AuraOfCraftman);
                AddOption(FiltersList, Settings.SettingsManager.Filters.ManaStoneUsage);

                AddOption(FiltersList, Settings.SettingsManager.Filters.TradeBuffBotSpam);
                AddOption(FiltersList, Settings.SettingsManager.Filters.FailedAssess);

                AddOption(FiltersList, Settings.SettingsManager.Filters.KillTaskComplete);
                AddOption(FiltersList, Settings.SettingsManager.Filters.VendorTells);
                AddOption(FiltersList, Settings.SettingsManager.Filters.MonsterTell);
                AddOption(FiltersList, Settings.SettingsManager.Filters.NpcChatter);
                AddOption(FiltersList, Settings.SettingsManager.Filters.MasterArbitratorSpam);
                AddOption(FiltersList, Settings.SettingsManager.Filters.AllMasterArbitratorChat);

                AddOption(FiltersList, Settings.SettingsManager.Filters.StatusTextYoureTooBusy);
                AddOption(FiltersList, Settings.SettingsManager.Filters.StatusTextCasting);
                AddOption(FiltersList, Settings.SettingsManager.Filters.StatusTextAll);

                // Misc.Client
                ClientRemoveFrame.Checked = Settings.SettingsManager.Misc.RemoveWindowFrame.Value;
                Settings.SettingsManager.Misc.RemoveWindowFrame.Changed += obj => { ClientRemoveFrame.Checked = obj.Value; };
                ClientRemoveFrame.Change += (s, e) => { try { Settings.SettingsManager.Misc.RemoveWindowFrame.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } };

                ClientSetWindowPosition.Hit += (s, e) => { try { Client.WindowMover.SetWindowPosition(); UpdateClientWindowPositionLabel(); } catch (Exception ex) { Debug.LogException(ex); } };
                ClientDelWindowPosition.Hit += (s, e) => { try { Client.WindowMover.DeleteWindowPosition(); UpdateClientWindowPositionLabel(); } catch (Exception ex) { Debug.LogException(ex); } };
                UpdateClientWindowPositionLabel();

                NoFocusFPS.Text    = Settings.SettingsManager.Misc.NoFocusFPS.Value.ToString(CultureInfo.InvariantCulture);
                NoFocusFPS.Change += (s, e) =>
                {
                    try
                    {
                        int value;
                        if (!int.TryParse(NoFocusFPS.Text, out value))
                        {
                            value = Settings.SettingsManager.Misc.NoFocusFPS.DefaultValue;
                        }
                        Settings.SettingsManager.Misc.NoFocusFPS.Value = value;
                    }
                    catch (Exception ex) { Debug.LogException(ex); }
                };
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }