Esempio n. 1
0
        private void CreatePopoutList()
        {
            popoutList.ClearColumnsAndRows();
            popoutEvents.Clear();
            popoutList.AddColumn(typeof(HudStaticText), 70, "name");
            popoutList.AddColumn(typeof(HudCheckBox), 30, "?");

            for (int i = 1; i < TabView.TabCount; i++)
            {
                string tabName = TabView.GetTabName(i);
                HudList.HudListRowAccessor newRow = popoutList.AddRow();
                ((HudStaticText)newRow[0]).Text = tabName;
                HudCheckBox temp = new HudCheckBox();

                //Check if tab starts popped out, and check it.
                if (popoutWindows[tabName].visible)
                {
                    temp.Checked = true;
                }

                popoutWindows[tabName].setCheckBox(temp);

                EventHandler tempEH = new EventHandler((s, e) => TogglePopout(s, e, tabName));
                popoutEvents.Add(tabName, tempEH);
                temp.Change += tempEH;
                newRow[1]    = temp;
            }
        }
Esempio n. 2
0
 public FavoriteQuestsView(QuestManager questManager, HudList hudList, QuestFlagRepository questFlagRepository, PlayerData playerData, Action <Quest> thing, HudView hudView) : base(hudList)
 {
     _questManager        = questManager;
     _questFlagRepository = questFlagRepository;
     _playerData          = playerData;
     _questClickCallback  = thing;
     _hudView             = hudView;
     _showCompleted       = (HudCheckBox)_hudView["QuestFavoritesShowCompleted"];
 }
Esempio n. 3
0
        public void Init()
        {
            try
            {
                _logger.Info("Init()");

                CreateFromXMLResource("Commander.Lib.Views.MainView.mainView.xml");
                _debug            = (HudCheckBox)view["DebugCheckBox"];
                _logOnDeath       = (HudCheckBox)view["LogOnDeath"];
                _logOnVitae       = (HudCheckBox)view["LogOnVitae"];
                _vitaeLimit       = (HudTextBox)view["VitaeLimit"];
                _relog            = (HudCheckBox)view["Relog"];
                _relogDuration    = (HudTextBox)view["RelogDuration"];
                _enemyListView    = (HudList)view["EnemyList"];
                _friendlyListView = (HudList)view["FriendlyList"];
                _enemySounds      = (HudCheckBox)view["EnemySounds"];
                _friendlySounds   = (HudCheckBox)view["FriendlySounds"];
                _friendlyIcon     = (HudCheckBox)view["FriendlyIcon"];
                _enemyIcon        = (HudCheckBox)view["EnemyIcon"];

                _settings = _settingsManager.Settings;

                _debug.Checked          = _settings.Debug;
                _logOnDeath.Checked     = _settings.LogOnDeath;
                _logOnVitae.Checked     = _settings.LogOnVitae;
                _vitaeLimit.Text        = _settings.VitaeLimit.ToString();
                _relog.Checked          = _settings.Relog;
                _relogDuration.Text     = _settings.RelogDuration.ToString();
                _enemySounds.Checked    = _settings.EnemySounds;
                _friendlySounds.Checked = _settings.FriendlySounds;
                _friendlyIcon.Checked   = _settings.FriendlyIcon;
                _enemyIcon.Checked      = _settings.EnemyIcon;

                foreach (KeyValuePair <int, Player> entry in _playerManager.PlayersInstance())
                {
                    _processPlayerAdd(entry.Value);
                }

                _debuffObjects = new List <DebuffObj>();
                _playerIcons   = new List <PlayerIcon>();
                RegisterEvents();
            } catch (Exception ex) { _logger.Error(ex); }
        }
Esempio n. 4
0
        private void RenderChiefGearHudSounds()
        {
            try
            {
                int i = 0;

                chkMuteSounds = new HudCheckBox();
                chkMuteSounds.Text = "Mute Sound Effects";
                ChiefGearHudSounds.AddControl(chkMuteSounds, new Rectangle(8, 5, 115, 20));
                chkMuteSounds.Checked = mMainSettings.bGearTacticianEnabled;

                HudStaticText lblLandscapeHud = new HudStaticText();
                lblLandscapeHud.FontHeight = nmenuFontHeight;
                lblLandscapeHud.Text = "Gear Sense Sounds:";
                ChiefGearHudSounds.AddControl(lblLandscapeHud, new Rectangle(8, 30, 200, 16));

                ControlGroup cboTrophyLandscapeChoices = new ControlGroup();
                cboTrophyLandscape = new    HudCombo(cboTrophyLandscapeChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboTrophyLandscape.AddItem(s.name, i);
                    i++;
                }
                cboTrophyLandscape.Current = 0;
                ChiefGearHudSounds.AddControl(cboTrophyLandscape, new Rectangle(5, 55, 125, 20));

                HudStaticText lblSound1 = new HudStaticText();
                lblSound1.FontHeight = nmenuFontHeight;
                lblSound1.Text = "Trophies";
                ChiefGearHudSounds.AddControl(lblSound1, new Rectangle(135, 55, 250, 16));

                ControlGroup cboMobLandscapeChoices = new ControlGroup();
                cboMobLandscape = new    HudCombo(cboMobLandscapeChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboMobLandscape.AddItem(s.name, i);
                    i++;
                }
                cboMobLandscape.Current = 0;
                ChiefGearHudSounds.AddControl(cboMobLandscape, new Rectangle(5, 80, 125, 20));

                HudStaticText lblSound2 = new HudStaticText();
                lblSound2.FontHeight = nmenuFontHeight;
                lblSound2.Text = "Mobs";
                ChiefGearHudSounds.AddControl(lblSound2, new Rectangle(135, 80, 250, 16));

                ControlGroup cboPlayerLandscapeChoices = new ControlGroup();
                cboPlayerLandscape = new    HudCombo(cboPlayerLandscapeChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboPlayerLandscape.AddItem(s.name, i);
                    i++;
                }
                cboPlayerLandscape.Current = 0;
                ChiefGearHudSounds.AddControl(cboPlayerLandscape, new Rectangle(5, 105, 125, 20));

                HudStaticText lblSound3 = new HudStaticText();
                lblSound3.FontHeight = nmenuFontHeight;
                lblSound3.Text = "Players";
                ChiefGearHudSounds.AddControl(lblSound3, new Rectangle(135, 105, 250, 16));

                HudStaticText lblCorpseHud = new HudStaticText();
                lblCorpseHud.FontHeight = nmenuFontHeight;
                lblCorpseHud.Text = "GearVisection Sounds:";
                ChiefGearHudSounds.AddControl(lblCorpseHud, new Rectangle(8, 140, 200, 16));

                ControlGroup cboCorpseRareChoices = new ControlGroup();
                cboCorpseRare = new HudCombo(cboCorpseRareChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboCorpseRare.AddItem(s.name, i);
                    i++;
                }
                cboCorpseRare.Current = 0;
                ChiefGearHudSounds.AddControl(cboCorpseRare, new Rectangle(5, 165, 125, 20));

                HudStaticText lblSound4 = new HudStaticText();
                lblSound4.FontHeight = nmenuFontHeight;
                lblSound4.Text = "Corpse with Rare";
                ChiefGearHudSounds.AddControl(lblSound4, new Rectangle(135, 165, 250, 16));

                ControlGroup cboCorpseSelfKillChoices = new ControlGroup();
                cboCorpseSelfKill = new HudCombo(cboCorpseSelfKillChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboCorpseSelfKill.AddItem(s.name, i);
                    i++;
                }
                cboCorpseSelfKill.Current = 0;
                ChiefGearHudSounds.AddControl(cboCorpseSelfKill, new Rectangle(5, 190, 125, 20));

                HudStaticText lblSound5 = new HudStaticText();
                lblSound5.FontHeight = nmenuFontHeight;
                lblSound5.Text = "Lootable Corpse";
                ChiefGearHudSounds.AddControl(lblSound5, new Rectangle(130, 190, 250, 16));

                ControlGroup cboCorpseFellowKillChoices = new ControlGroup();
                cboCorpseFellowKill = new HudCombo(cboCorpseFellowKillChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboCorpseFellowKill.AddItem(s.name, i);
                    i++;
                }
                cboCorpseFellowKill.Current = 0;
                ChiefGearHudSounds.AddControl(cboCorpseFellowKill, new Rectangle(5, 215, 125, 20));

                HudStaticText lblSound6 = new HudStaticText();
                lblSound6.FontHeight = nmenuFontHeight;
                lblSound6.Text = "Lootable Corpse by Fellow";
                ChiefGearHudSounds.AddControl(lblSound6, new Rectangle(130, 215, 250, 16));

               ControlGroup cboDeadMeChoices = new ControlGroup();
                cboDeadMe = new    HudCombo(cboDeadMeChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboDeadMe.AddItem(s.name, i);
                    i++;
                }
                cboDeadMe.Current = 0;
                ChiefGearHudSounds.AddControl(cboDeadMe, new Rectangle(5, 240, 125, 20));

                HudStaticText lblSound7 = new HudStaticText();
                lblSound7.FontHeight = nmenuFontHeight;
                lblSound7.Text = "Dead Me";
                ChiefGearHudSounds.AddControl(lblSound7, new Rectangle(130, 240, 250, 16));

               ControlGroup cboDeadPermittedChoices = new ControlGroup();
                cboDeadPermitted = new    HudCombo(cboDeadPermittedChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboDeadPermitted.AddItem(s.name, i);
                    i++;
                }
                cboDeadPermitted.Current = 0;
                ChiefGearHudSounds.AddControl(cboDeadPermitted, new Rectangle(5, 265, 125, 20));

                HudStaticText lblSound8 = new HudStaticText();
                lblSound8.FontHeight = nmenuFontHeight;
                lblSound8.Text = "Recovery Corpse";
                ChiefGearHudSounds.AddControl(lblSound8, new Rectangle(130, 265, 250, 16));

                HudStaticText lblInspectorHud = new HudStaticText();
                lblInspectorHud.FontHeight = nmenuFontHeight;
                lblInspectorHud.Text = "GearInspector Sounds:";
                ChiefGearHudSounds.AddControl(lblInspectorHud, new Rectangle(8, 295, 200, 16));

                ControlGroup cboTrophyCorpseChoices = new ControlGroup();
                cboTrophyCorpse = new HudCombo(cboTrophyCorpseChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboTrophyCorpse.AddItem(s.name, i);
                    i++;
                }
                cboTrophyCorpse.Current = 0;
                ChiefGearHudSounds.AddControl(cboTrophyCorpse, new Rectangle(5, 320, 125, 20));

                HudStaticText lblSound9 = new HudStaticText();
                lblSound9.FontHeight = nmenuFontHeight;
                lblSound9.Text = "Trophies";
                ChiefGearHudSounds.AddControl(lblSound9, new Rectangle(130, 320, 250, 16));

                ControlGroup cboRuleCorpseChoices = new ControlGroup();
                cboRuleCorpse = new    HudCombo(cboRuleCorpseChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboRuleCorpse.AddItem(s.name, i);
                    i++;
                }
                cboRuleCorpse.Current = 0;
                ChiefGearHudSounds.AddControl(cboRuleCorpse, new Rectangle(5, 345, 125, 20));

                HudStaticText lblSound10 = new HudStaticText();
                lblSound10.FontHeight = nmenuFontHeight;
                lblSound10.Text = "Rule";
                ChiefGearHudSounds.AddControl(lblSound10, new Rectangle(130, 345, 250, 16));

                ControlGroup cboSalvageCorpseChoices = new ControlGroup();
                cboSalvageCorpse = new    HudCombo(cboSalvageCorpseChoices);
                i = 0;
                foreach (Sounds s in SoundList)
                {
                    cboSalvageCorpse.AddItem(s.name, i);
                    i++;
                }
                cboSalvageCorpse.Current = 0;
                ChiefGearHudSounds.AddControl(cboSalvageCorpse, new Rectangle(5, 370, 125, 20));

                HudStaticText lblSound11 = new HudStaticText();
                lblSound11.FontHeight = nmenuFontHeight;
                lblSound11.Text = "Salvage";
                ChiefGearHudSounds.AddControl(lblSound11, new Rectangle(130, 370, 250, 16));

                SubscribeChiefGearHudSounds();

            }
            catch (Exception ex) { LogError(ex); }
        }
Esempio n. 5
0
        public void RenderButlerHud()
        {
            try
            {
                if(ButlerHudView != null)
                {
                    DisposeButlerHud();
                }

                ButlerHudView = new HudView("GearButler", GearButlerSettings.ButlerHudWidth, GearButlerSettings.ButlerHudHeight, new ACImage(0x6AA3));
                ButlerHudView.UserAlphaChangeable = false;
                ButlerHudView.ShowInBar = false;
                ButlerHudView.Visible = true;
                ButlerHudView.UserClickThroughable = false;
                ButlerHudView.UserMinimizable = true;
                ButlerHudView.UserResizeable = true;
                ButlerHudView.LoadUserSettings();

                ButlerHudTabView = new HudTabView();
                ButlerHudView.Controls.HeadControl = ButlerHudTabView;

                //ButlerTab
                ButlerHudTabLayout = new HudFixedLayout();
                ButlerHudTabView.AddTab(ButlerHudTabLayout, "Butler");

                ButlerHudCurrentSelectionLabel = new HudStaticText();
                ButlerHudCurrentSelectionLabel.FontHeight = nmenuFontHeight;
                ButlerHudCurrentSelectionLabel.Text = "Current Selection";
                ButlerHudCurrentSelectionLabel.TextAlignment = VirindiViewService.WriteTextFormats.Center;
                ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionLabel, new Rectangle(75, 0, 150, 16));

                ButlerHudUseCurrentSelection = new HudButton();
                ButlerHudUseCurrentSelection.Text = "Use";
                ButlerHudTabLayout.AddControl(ButlerHudUseCurrentSelection, new Rectangle(5,5,50,20));

                ButlerHudDestoryCurrentSelection = new HudButton();
                ButlerHudDestoryCurrentSelection.Text = "Destroy";
                ButlerHudTabLayout.AddControl(ButlerHudDestoryCurrentSelection, new Rectangle(245,5,50,20));

                ButlerHudSalvageCurrentSelection = new HudButton();
                ButlerHudSalvageCurrentSelection.Text = "Salvage";
                ButlerHudTabLayout.AddControl(ButlerHudSalvageCurrentSelection, new Rectangle(245,30,50,20));

                try
                {
                    Decal.Interop.Filters.SkillInfo lockpickinfo = Core.CharacterFilter.Underlying.get_Skill((Decal.Interop.Filters.eSkillID)0x17);

                    if(lockpickinfo.Training.ToString() == "eTrainSpecialized" || lockpickinfo.Training.ToString() == "eTrainTrained")
                    {
                        ButlerHudPickCurrentSelection = new HudButton();
                        ButlerHudPickCurrentSelection.Text = "Pick";
                        ButlerHudTabLayout.AddControl(ButlerHudPickCurrentSelection, new Rectangle(5,30,50,20));
                    }
                }catch(Exception ex){LogError(ex);}

                ButlerHudCurrentSelectionIcon = new HudImageStack();
                ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionIcon, new Rectangle(135,20,30,30));

                ButlerHudCurrentSelectionText = new HudStaticText();
                ButlerHudCurrentSelectionText.FontHeight = nmenuFontHeight;
                ButlerHudCurrentSelectionText.Text = null;
                ButlerHudCurrentSelectionText.TextAlignment = VirindiViewService.WriteTextFormats.Center;
                ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionText, new Rectangle(0,50,300,16));

                ButlerHudSearchBox = new HudTextBox();
                ButlerHudSearchBox.Text = String.Empty;
                ButlerHudTabLayout.AddControl(ButlerHudSearchBox, new Rectangle(0,80,200,20));

                ButlerHudSearchButton = new HudButton();
                ButlerHudSearchButton.Text = "Search";
                ButlerHudTabLayout.AddControl(ButlerHudSearchButton, new Rectangle(205,80,40,20));

                ButlerHudClearSearchButton = new HudButton();
                ButlerHudClearSearchButton.Text = "Reset";
                ButlerHudTabLayout.AddControl(ButlerHudClearSearchButton, new Rectangle(250,80,40,20));

                ButlerQuickSortLabel = new HudStaticText();
                ButlerQuickSortLabel.FontHeight = 8;
                ButlerQuickSortLabel.Text = "QSort:";
                ButlerHudTabLayout.AddControl(ButlerQuickSortLabel, new Rectangle(0,110,30,16));

                ButlerQuickSortEquipped = new HudImageButton();
                ButlerQuickSortEquipped.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortEquipped.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortEquipped.Image_Up = GearGraphics.GB_EQUIPPED_ICON;
                ButlerQuickSortEquipped.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortEquipped, new Rectangle(40,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortEquipped, "Equipped");

                ButlerQuickSortUnequipped = new HudImageButton();
                ButlerQuickSortUnequipped.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortUnequipped.Image_Up = GearGraphics.GB_UNEQUIPPED_ICON;
                ButlerQuickSortUnequipped.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortUnequipped.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortUnequipped, new Rectangle(60,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortUnequipped, "Unequipped");

                ButlerQuickSortMelee = new HudImageButton();
                ButlerQuickSortMelee.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortMelee.Image_Up = GearGraphics.GB_MELEE_ICON;
                ButlerQuickSortMelee.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortMelee.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortMelee, new Rectangle(100,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortMelee, "Melee Weapons");

                ButlerQuickSortMissile = new HudImageButton();
                ButlerQuickSortMissile.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortMissile.Image_Up = GearGraphics.GB_MISSILE_ICON;
                ButlerQuickSortMissile.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortMissile.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortMissile, new Rectangle(120,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortMissile, "Missile Weapons");

                ButlerQuickSortCaster = new HudImageButton();
                ButlerQuickSortCaster.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortCaster.Image_Up = GearGraphics.GB_CASTER_ICON;
                ButlerQuickSortCaster.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortCaster.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortCaster, new Rectangle(140,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortCaster, "Magical Casters");

                ButlerQuickSortArmor = new HudImageButton();
                ButlerQuickSortArmor.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortArmor.Image_Up = GearGraphics.GB_ARMOR_ICON;
                ButlerQuickSortArmor.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortArmor.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortArmor, new Rectangle(160,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortArmor, "Armor");

                ButlerQuickSortKeys = new HudImageButton();
                ButlerQuickSortKeys.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortKeys.Image_Up = GearGraphics.GB_KEY_ICON;
                ButlerQuickSortKeys.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortKeys.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortKeys, new Rectangle(180,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortKeys, "Keys");

                ButlerQuickSortKeyrings = new HudImageButton();
                ButlerQuickSortKeyrings.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortKeyrings.Image_Up = GearGraphics.GB_KEYRING_ICON;
                ButlerQuickSortKeyrings.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortKeyrings.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortKeyrings, new Rectangle(200,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortKeyrings, "Keyrings");

                ButlerQuickSortLockpicks = new HudImageButton();
                ButlerQuickSortLockpicks.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortLockpicks.Image_Up = GearGraphics.GB_LOCKPICK_ICON;
                ButlerQuickSortLockpicks.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortLockpicks.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortLockpicks, new Rectangle(220,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortLockpicks, "Lockpicks");

                ButlerQuickSortManastones = new HudImageButton();
                ButlerQuickSortManastones.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortManastones.Image_Up = GearGraphics.GB_MANASTONE_ICON;
                ButlerQuickSortManastones.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortManastones.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortManastones, new Rectangle(240,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortManastones, "Mana Stones");

                ButlerQuickSortHealKit = new HudImageButton();
                ButlerQuickSortHealKit.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortHealKit.Image_Up = GearGraphics.GB_HEALKIT_ICON;
                ButlerQuickSortHealKit.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortHealKit.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortHealKit, new Rectangle(260,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortHealKit, "Healing Kits");

                ButlerQuickSortPotion = new HudImageButton();
                ButlerQuickSortPotion.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortPotion.Image_Up = GearGraphics.GB_POTION_ICON;
                ButlerQuickSortPotion.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortPotion.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortPotion, new Rectangle(280,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortPotion, "Potions");

                ButlerHudList = new HudList();
                ButlerHudList.ControlHeight = 16;
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudStaticText), 175, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudStaticText), 1, null);
                ButlerHudTabLayout.AddControl(ButlerHudList, new Rectangle(0, 150, 300, 375));

                ButlerHudSelectedLabel = new HudStaticText();
                ButlerHudSelectedLabel.FontHeight = nmenuFontHeight;
                ButlerHudSelectedLabel.Text = "Items Selected: ";
                ButlerHudSelectedCount = new HudStaticText();
                ButlerHudSelectedCount.FontHeight = nmenuFontHeight;
                ButlerHudTabLayout.AddControl(ButlerHudSelectedLabel, new Rectangle(0,520,100,16));
                ButlerHudTabLayout.AddControl(ButlerHudSelectedCount, new Rectangle(110,520,150,16));

                ButlerPackSpacesAvailable = new HudStaticText();
                ButlerPackSpacesAvailable.FontHeight = nmenuFontHeight;
                ButlerPackSpaceAvailableLabel = new HudStaticText();
                ButlerPackSpaceAvailableLabel.FontHeight = nmenuFontHeight;
                ButlerPackSpaceAvailableLabel.Text = "Inventory status: ";
                ButlerHudTabLayout.AddControl(ButlerPackSpaceAvailableLabel, new Rectangle(0,540,100,16));
                ButlerHudTabLayout.AddControl(ButlerPackSpacesAvailable, new Rectangle(110,540,150,16));

                ButlerBurdenLabel = new HudStaticText();
                ButlerBurdenLabel.FontHeight = nmenuFontHeight;
                ButlerBurdenLabel.Text = "Current Burden: ";
                ButlerBurden = new HudStaticText();
                ButlerBurden.FontHeight = nmenuFontHeight;
                ButlerHudTabLayout.AddControl(ButlerBurdenLabel, new Rectangle(0, 560, 100, 16));
                ButlerHudTabLayout.AddControl(ButlerBurden, new Rectangle(110,560, 150, 16));

                if(ButlerHudPickCurrentSelection != null) {ButlerHudPickCurrentSelection.Hit += ButlerHudPickCurrentSelection_Hit;}
                ButlerHudUseCurrentSelection.Hit += ButlerHudUseCurrentSelection_Hit;
                ButlerHudDestoryCurrentSelection.Hit += ButlerHudDestoryCurrenSelection_Hit;
                ButlerHudSalvageCurrentSelection.Hit += ButlerHudSalvageCurrentSelection_Hit;

                ButlerQuickSortEquipped.StickyDownStateChanged += ButlerQuickSortEquipped_Hit;
                ButlerQuickSortUnequipped.StickyDownStateChanged += ButlerQuickSortUnequipped_Hit;
                ButlerQuickSortMelee.StickyDownStateChanged += ButlerQuickSortMelee_Hit;
                ButlerQuickSortMissile.StickyDownStateChanged += ButlerQuickSortMissile_Hit;
                ButlerQuickSortCaster.StickyDownStateChanged += ButlerQuickSortCaster_Hit;
                ButlerQuickSortArmor.StickyDownStateChanged += ButlerQuickSortArmor_Hit;
                ButlerQuickSortKeys.StickyDownStateChanged += ButlerQuickSortKeys_Hit;
                ButlerQuickSortKeyrings.StickyDownStateChanged += ButlerQuickSortKeyrings_Hit;
                ButlerQuickSortLockpicks.StickyDownStateChanged += ButlerQuickSortLockpicks_Hit;
                ButlerQuickSortManastones.StickyDownStateChanged += ButlerQuickSortManastones_Hit;
                ButlerQuickSortHealKit.StickyDownStateChanged += ButlerQuickSortHealKit_Hit;
                ButlerQuickSortPotion.StickyDownStateChanged += ButlerQuickSortPotion_Hit;

                ButlerHudList.Click += (sender, row, col) => ButlerHudList_Click(sender, row, col);
                ButlerHudSearchButton.Hit += ButlerHudSearchButton_Click;
                ButlerHudClearSearchButton.Hit += ButlerHudClearSearchButton_Click;

                //MaidTab
                MaidTabLayout = new HudFixedLayout();
                ButlerHudTabView.AddTab(MaidTabLayout, "Maid");

                MaidStackInventory = new HudButton();
                MaidStackInventory.Text = "Stack Inventory";
                MaidTabLayout.AddControl(MaidStackInventory, new Rectangle(0,0,150,20));

                MaidRingKeys = new HudButton();
                MaidRingKeys.Text = "Ring Keys";
                MaidTabLayout.AddControl(MaidRingKeys, new Rectangle(0,30,150,20));

                MaidTradeAllSalvage = new HudButton();
                MaidTradeAllSalvage.Text = "Window All Salvage";
                MaidTabLayout.AddControl(MaidTradeAllSalvage, new Rectangle(0,60,150,20));

                MaidTradeFilledSalvage = new HudButton();
                MaidTradeFilledSalvage.Text = "Window Filled Salvage";
                MaidTabLayout.AddControl(MaidTradeFilledSalvage, new Rectangle(0,90,150,20));

                MaidTradeParialSalvage = new HudButton();
                MaidTradeParialSalvage.Text = "Window Partial Salvage";
                MaidTabLayout.AddControl(MaidTradeParialSalvage, new Rectangle(0,120,150,20));

                MaidSalvageCombine = new HudButton();
                MaidSalvageCombine.Text = "Combine Salvage Bags";
                MaidTabLayout.AddControl(MaidSalvageCombine, new Rectangle(0,150,150,20));

                MaidTradeAllEightComps = new HudButton();
                MaidTradeAllEightComps.Text = "Window L8 Components";
                MaidTabLayout.AddControl(MaidTradeAllEightComps, new Rectangle(0, 180, 150,20));

                MaidCannibalizeEnable = new HudCheckBox();
                MaidCannibalizeEnable.Text = "Enable Cannibalize Button";
                MaidTabLayout.AddControl(MaidCannibalizeEnable, new Rectangle(0,210,150,20));

                MaidStackInventory.Hit += MaidStackInventory_Hit;
                MaidRingKeys.Hit += MaidRingKeys_Hit;
                MaidTradeAllSalvage.Hit += MaidTradeAllSalvage_Hit;
                MaidTradeFilledSalvage.Hit += MaidTradeFilledSalvage_Hit;
                MaidTradeParialSalvage.Hit += MaidTradeParialSalvage_Hit;
                MaidSalvageCombine.Hit += MaidSalvageCombine_Hit;
                MaidCannibalizeEnable.Hit += MaidCannibalizeEnable_Hit;
                MaidTradeAllEightComps.Hit += MaidTradeAllEightComps_Hit;

                //ValetTab
                ValetTabLayout = new HudFixedLayout();
                ButlerHudTabView.AddTab(ValetTabLayout, "Valet");

                                int split3horizontal = Convert.ToInt32((double)GearButlerSettings.ButlerHudWidth /(double)3);
                int splithalf = Convert.ToInt32((double)GearButlerSettings.ButlerHudWidth/(double)2);
                int halfsplit3horizontal = Convert.ToInt32((double)split3horizontal/(double)2);
                int splitbottomvertical = Convert.ToInt32(((double)100 - GearButlerSettings.ButlerHudHeight) /2);

                ValetDisrobe = new HudButton();
                ValetDisrobe.Text = "Disrobe";
                ValetTabLayout.AddControl(ValetDisrobe, new Rectangle(10,5,split3horizontal-20,20));

                ValetEquipSuit = new HudButton();
                ValetEquipSuit.Text = "Equip";
                ValetTabLayout.AddControl(ValetEquipSuit, new Rectangle(splithalf - halfsplit3horizontal ,5,split3horizontal-20,20));

                ValetCreateSuit = new HudButton();
                ValetCreateSuit.Text = "Create";
                ValetTabLayout.AddControl(ValetCreateSuit, new Rectangle(splithalf + halfsplit3horizontal,5,split3horizontal-20,20));

                ValetTextBoxLabel = new HudStaticText();
                ValetTextBoxLabel.Text = "Suit Label:";
                ValetTabLayout.AddControl(ValetTextBoxLabel, new Rectangle(0,30,50,16));

                ValetNameBox = new HudTextBox();
                ValetNameBox.Text = String.Empty;
                ValetTabLayout.AddControl(ValetNameBox, new Rectangle(10,55,GearButlerSettings.ButlerHudWidth -20, 20));

                ValetSuitListLabel = new HudStaticText();
                ValetSuitListLabel.Text = "Suits:";
                ValetTabLayout.AddControl(ValetSuitListLabel, new Rectangle(0,80,50,16));

                ValetSuitList = new HudList();
                ValetSuitList.AddColumn(typeof(HudPictureBox), 16, null);
                ValetSuitList.AddColumn(typeof(HudStaticText), GearButlerSettings.ButlerHudWidth - 80, null);
                ValetSuitList.AddColumn(typeof(HudPictureBox), 16, null);
                ValetSuitList.AddColumn(typeof(HudStaticText), 1, null);
                ValetTabLayout.AddControl(ValetSuitList, new Rectangle(0,100,GearButlerSettings.ButlerHudWidth - 20,100));

                ValetSuitPiecesListLabel = new HudStaticText();
                ValetSuitPiecesListLabel.Text = "Pieces:";
                ValetTabLayout.AddControl(ValetSuitPiecesListLabel, new Rectangle(0,210,50,16));

                ValetSuitPiecesList = new HudList();
                ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 16, null);
                ValetSuitPiecesList.AddColumn(typeof(HudStaticText), GearButlerSettings.ButlerHudWidth - 80, null);
                ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 16, null);
                ValetSuitPiecesList.AddColumn(typeof(HudStaticText), 1, null);
                ValetTabLayout.AddControl(ValetSuitPiecesList, new Rectangle(0, 230 ,GearButlerSettings.ButlerHudWidth - 20,100));

                ValetDisrobe.Hit += ValetDisrobe_Hit;
                ValetEquipSuit.Hit += ValetEquipSuit_Hit;
                ValetCreateSuit.Hit += ValetCreateSuit_Hit;
                ValetSuitList.Click += ValetSuitList_Click;
                ValetSuitPiecesList.Click += ValetSuitPiecesList_Click;

                ButlerHudView.Resize += ButlerHudView_Resize;
                ButlerHudView.VisibleChanged += ButlerHudView_VisibleChanged;

                UpdateButlerHudList();
                UpdateValetHud();

            }catch(Exception ex) {LogError(ex);}
            return;
        }
Esempio n. 6
0
        private void RenderChiefGearHudSettings()
        {
            try
            {
                //RemoteGear
                HudStaticText lblRemoteGearEnabled = new HudStaticText();
                lblRemoteGearEnabled.FontHeight = nmenuFontHeight;
                lblRemoteGearEnabled.Text = "Remote Gear:";
                ChiefGearHudSettings.AddControl(lblRemoteGearEnabled, new Rectangle(5, 5, 150, 20));

                chkRemoteGearEnabled = new HudCheckBox();
                chkRemoteGearEnabled.Text = "Enable Remote Gear";
                ChiefGearHudSettings.AddControl(chkRemoteGearEnabled, new Rectangle(10, 25, 150, 20));
                chkRemoteGearEnabled.Checked = mMainSettings.bRemoteGearEnabled;

               //SwitchGear
                HudStaticText lblChiefGearSwitch = new HudStaticText();
                lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblChiefGearSwitch.Text = "SwitchGears";
                ChiefGearHudSettings.AddControl(lblChiefGearSwitch, new Rectangle(5, 55, 150, 20));

                chkQuickSlotsv = new HudCheckBox();
                chkQuickSlotsv.Text = "Enable Vertical";
                ChiefGearHudSettings.AddControl(chkQuickSlotsv, new Rectangle(10, 75, 150, 20));
                chkQuickSlotsv.Checked = mMainSettings.bquickSlotsvEnabled;

                chkQuickSlotsh = new HudCheckBox();
                chkQuickSlotsh.Text = "Enable Horizontal";
                ChiefGearHudSettings.AddControl(chkQuickSlotsh, new Rectangle(10, 95, 150, 20));
                chkQuickSlotsh.Checked = mMainSettings.bquickSlotsvEnabled;

                //Gear
                HudStaticText lblInventorySetup = new HudStaticText();
                lblInventorySetup.FontHeight = nmenuFontHeight;
                lblInventorySetup.Text = "Gear";
                ChiefGearHudSettings.AddControl(lblInventorySetup, new Rectangle(5, 125, 150, 20));

                chkInventoryHudEnabled = new HudCheckBox();
                chkInventoryHudEnabled.Text = "Enable Inventory";
                ChiefGearHudSettings.AddControl(chkInventoryHudEnabled, new Rectangle(10, 145, 180, 20));
                chkInventoryHudEnabled.Checked = mMainSettings.binventoryHudEnabled;

                chkInventory = new HudCheckBox();
                chkInventory.Text = "Inventory on Startup";
                ChiefGearHudSettings.AddControl(chkInventory, new Rectangle(10, 165, 180, 20));
                chkInventory.Checked = mMainSettings.binventoryEnabled;

                chkInventoryBurden = new HudCheckBox();
                chkInventoryBurden.Text = "Update Stacks on Startup";
                ChiefGearHudSettings.AddControl(chkInventoryBurden, new Rectangle(10, 185, 180, 20));
                chkInventoryBurden.Checked = mMainSettings.binventoryBurdenEnabled;

                chkInventoryComplete = new HudCheckBox();
                chkInventoryComplete.Text = "Complete Inventory on Startup";
                ChiefGearHudSettings.AddControl(chkInventoryComplete, new Rectangle(10, 205, 180, 20));
                chkInventoryComplete.Checked = mMainSettings.binventoryCompleteEnabled;

                HudStaticText lblGearVisection = new HudStaticText();

                lblGearVisection.FontHeight = nmenuFontHeight;
                lblGearVisection.Text = "Gear Visection:";
                ChiefGearHudSettings.AddControl(lblGearVisection, new Rectangle(200, 5, 150, 20));

                chkGearVisectionEnabled = new HudCheckBox();
                chkGearVisectionEnabled.Text = "Enable Visection Gear";
                ChiefGearHudSettings.AddControl(chkGearVisectionEnabled, new Rectangle(205, 30, 150, 20));
                chkGearVisectionEnabled.Checked = mMainSettings.bRemoteGearEnabled;

                HudStaticText lblGearSense = new HudStaticText();
                lblGearSense.FontHeight = nmenuFontHeight;
                lblGearSense.Text = "GearSense:";
                ChiefGearHudSettings.AddControl(lblGearSense, new Rectangle(200, 60, 150, 20));

                chkGearSenseEnabled = new HudCheckBox();
                chkGearSenseEnabled.Text = "Enable Gear Sense";
                ChiefGearHudSettings.AddControl(chkGearSenseEnabled, new Rectangle(205, 80, 150, 20));
                chkGearSenseEnabled.Checked = mMainSettings.bGearSenseHudEnabled;

                HudStaticText lblGearButler = new HudStaticText();
                lblGearButler.FontHeight = nmenuFontHeight;
                lblGearButler.Text = "GearButler:";
                ChiefGearHudSettings.AddControl(lblGearButler, new Rectangle(200, 110, 150, 20));

                chkGearButlerEnabled = new HudCheckBox();
                chkGearButlerEnabled.Text = "Enable Gear Butler";
                ChiefGearHudSettings.AddControl(chkGearButlerEnabled, new Rectangle(205, 130, 150, 20));
                chkGearButlerEnabled.Checked = mMainSettings.bGearButlerEnabled;

                HudStaticText lblPortalGear = new HudStaticText();
                lblPortalGear.FontHeight = nmenuFontHeight;
                lblPortalGear.Text = "Portal Gear:";
                ChiefGearHudSettings.AddControl(lblPortalGear, new Rectangle(200, 160, 150, 20));

                chkPortalGearEnabled = new HudCheckBox();
                chkPortalGearEnabled.Text = "Use Portal Gear";
                ChiefGearHudSettings.AddControl(chkPortalGearEnabled, new Rectangle(205, 180, 150, 20));
                chkPortalGearEnabled.Checked = mMainSettings.bPortalGearEnabled;

                HudStaticText lblGearTactician = new HudStaticText();
                lblGearTactician.FontHeight = nmenuFontHeight;
                lblGearTactician.Text = "Gear Tactician:";
                ChiefGearHudSettings.AddControl(lblGearTactician, new Rectangle(350, 5, 150, 20));

                chkCombatHudEnabled = new HudCheckBox();
                chkCombatHudEnabled.Text = "Enable Gear Tactician";
                ChiefGearHudSettings.AddControl(chkCombatHudEnabled, new Rectangle(355, 25, 150, 20));
                chkCombatHudEnabled.Checked = mMainSettings.bGearTacticianEnabled;

                HudStaticText lblGearInspector = new HudStaticText();
                lblGearInspector.FontHeight = nmenuFontHeight;
                lblGearInspector.Text = "Gear Inspector:";
                ChiefGearHudSettings.AddControl(lblGearInspector, new Rectangle(350, 55, 150, 20));

                chkGearInspectorEnabled = new HudCheckBox();
                chkGearInspectorEnabled.Text = "Enable Gear Inspector";
                ChiefGearHudSettings.AddControl(chkGearInspectorEnabled, new Rectangle(355, 75, 150, 20));
                chkGearInspectorEnabled.Checked = mMainSettings.bGearInspectorEnabled;

                HudStaticText lblKillTaskGear = new HudStaticText();
                lblKillTaskGear.FontHeight = nmenuFontHeight;
                lblKillTaskGear.Text = "KillTask Gear:";
                ChiefGearHudSettings.AddControl(lblKillTaskGear, new Rectangle(350, 105, 150, 20));

                chkKillTaskGearEnabled = new HudCheckBox();
                chkKillTaskGearEnabled.Text = "Use KillTask Gear";
                ChiefGearHudSettings.AddControl(chkKillTaskGearEnabled, new Rectangle(355, 125, 150, 20));
                chkKillTaskGearEnabled.Checked = mMainSettings.bGearTaskerEnabled;

                HudStaticText lblGearFilters = new HudStaticText();
                lblGearFilters.FontHeight = nmenuFontHeight;
                lblGearFilters.Text = "Gear Filters:";
                ChiefGearHudSettings.AddControl(lblGearFilters, new Rectangle(350, 155, 145, 20));

                chkEnableTextFiltering = new HudCheckBox();
                chkEnableTextFiltering.Text = "Filter All Non-Chat Text";
                ChiefGearHudSettings.AddControl(chkEnableTextFiltering, new Rectangle(355, 175, 150, 20));
                chkEnableTextFiltering.Checked = bEnableTextFiltering;

                chkTextFilterAllStatus = new HudCheckBox();
                chkTextFilterAllStatus.Text = "Filter All Non-Chat Text";
                ChiefGearHudSettings.AddControl(chkTextFilterAllStatus, new Rectangle(355, 195, 150, 20));
                chkTextFilterAllStatus.Checked = bTextFilterAllStatus;

                HudStaticText lblMisc = new HudStaticText();
                lblMisc.FontHeight = nmenuFontHeight;
                lblMisc.Text = "Misc Gears:";
                ChiefGearHudSettings.AddControl(lblMisc, new Rectangle(5, 235, 150, 20));

                chkToonStats = new HudCheckBox();
                chkToonStats.Text = "Gather Toon Stats on Startup";
                ChiefGearHudSettings.AddControl(chkToonStats, new Rectangle(10, 255, 150, 20));
                chkToonStats.Checked = mMainSettings.btoonStatsEnabled;

                chkArmorHud = new HudCheckBox();
                chkArmorHud.Text = "Inventory Armor";
                ChiefGearHudSettings.AddControl(chkArmorHud, new Rectangle(10, 275, 150, 20));
                chkArmorHud.Checked = mMainSettings.bArmorHudEnabled;

                //HudStaticText lblItemFontHeight = new HudStaticText();
                // lblItemFontHeight.Text = "Item Font Height:";
                //ChiefGearHudSettings.AddControl(lblItemFontHeight, new Rectangle(225, 200, 100, 20));

                //txtItemFontHeight = new HudTextBox();
                //ChiefGearHudSettings.AddControl(txtItemFontHeight, new Rectangle(335, 200, 40, 20));

                //HudStaticText lblMenuFontHeight = new HudStaticText();
                //lblMenuFontHeight.Text = "Menu Font Height:";
                //ChiefGearHudSettings.AddControl(lblMenuFontHeight, new Rectangle(225, 215, 100, 20));

                //txtMenuFontHeight = new HudTextBox();
                //ChiefGearHudSettings.AddControl(txtMenuFontHeight, new Rectangle(335, 215, 40, 20));

                SubscribeChiefGearSettingsEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
Esempio n. 7
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);
        }
        private void RenderInspectMainTab()
        {
            try
            {
                HudStaticText lblRuleName = new HudStaticText();
                lblRuleName.Text = "Rule Name";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleName, new Rectangle(70, 5, 90, 16));

                txtRuleName = new HudTextBox();
                txtRuleName.Text = "";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleName, new Rectangle(70, 25, 210, 16));

                lblRulePriority = new HudStaticText();
                lblRulePriority.Text = "Priority (1 - 999)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRulePriority, new Rectangle(290, 5, 90, 16));

                txtRulePriority = new HudTextBox();
                txtRulePriority.Text = "1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRulePriority, new Rectangle(290, 25, 30, 16));

                chkRuleEnabled = new HudCheckBox();
                chkRuleEnabled.Text = "Enabled";
                ChiefGearInspectPageMenuTabMain.AddControl(chkRuleEnabled, new Rectangle(5, 25, 60, 16));

                lblRuleApplies = new HudStaticText();
                lblRuleApplies.Text = "Item type (required):";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleApplies, new Rectangle(5, 55, 200, 16));

                lstRuleApplies = new HudList();
                lstRuleApplies.ControlHeight = 16;
                lstRuleApplies.AddColumn(typeof(HudCheckBox), 16, null);
                lstRuleApplies.AddColumn(typeof(HudStaticText), 110, null);
                lstRuleApplies.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageMenuTabMain.AddControl(lstRuleApplies, new Rectangle(5, 75, 130, 200));

                txtGearScore = new HudTextBox();
                txtGearScore.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtGearScore, new Rectangle(160, 75, 50, 16));

                lblGearScore = new HudStaticText();
                lblGearScore.Text = "GearScore(Min)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblGearScore, new Rectangle(215, 75, 100, 16));

                txtRuleArcaneLore = new HudTextBox();
                txtRuleArcaneLore.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleArcaneLore, new Rectangle(160, 95, 50, 16));

                lblRuleArcaneLore = new HudStaticText();
                lblRuleArcaneLore.Text = "Arcane Lore (Max)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleArcaneLore, new Rectangle(215, 95, 100, 16));

                txtRuleMaxCraft = new HudTextBox();
                txtRuleMaxCraft.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleMaxCraft, new Rectangle(160, 115, 50, 16));

                lblRuleWork = new HudStaticText();
                lblRuleWork.Text = "Work (Max)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleWork, new Rectangle(215, 115, 115, 16));

                txtRuleWieldLevel = new HudTextBox();
                txtRuleWieldLevel.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleWieldLevel, new Rectangle(160, 135, 50, 16));

                lblRuleWieldLevel = new HudStaticText();
                lblRuleWieldLevel.Text = "Char Level (Max)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleWieldLevel, new Rectangle(215, 135, 100, 16));

                txtRuleNumSpells = new HudTextBox();
                txtRuleNumSpells.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleNumSpells, new Rectangle(160, 155, 50, 16));

                lblnumSpells = new HudStaticText();
                lblnumSpells.Text = "Num Spells (Min)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblnumSpells, new Rectangle(215, 155, 100, 16));

                lblSlots = new HudStaticText();
                lblSlots.Text = "Slots";
                ChiefGearInspectPageMenuTabMain.AddControl(lblSlots, new Rectangle(330, 55, 88, 16));

                lstRuleSlots = new HudList();
                lstRuleSlots.ControlHeight = 16;
                lstRuleSlots.AddColumn(typeof(HudCheckBox), 16, null);
                lstRuleSlots.AddColumn(typeof(HudStaticText), 110, null);
                lstRuleSlots.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageMenuTabMain.AddControl(lstRuleSlots, new Rectangle(350, 75, 135, 200));

                lstRuleApplies.Click += lstRuleApplies_Click;
                lstRuleSlots.Click += lstRuleSlots_Click;
                chkRuleEnabled.Change += chkRuleEnabled_Change;
                txtRuleName.LostFocus += txtRuleName_LostFocus;
                txtRulePriority.LostFocus += txtRulePriority_LostFocus;
                txtGearScore.LostFocus += txtGearScore_LostFocus;
                txtRuleArcaneLore.LostFocus += txtRuleArcaneLore_LostFocus;
                txtRuleMaxCraft.LostFocus += txtRuleMaxCraft_LostFocus;
                txtRuleWieldLevel.LostFocus += txtRuleWieldLevel_LostFocus;
                txtRuleNumSpells.LostFocus += txtRuleNumSpells_LostFocus;

            }catch(Exception ex){LogError(ex);}
        }
Esempio n. 9
0
        private void RenderChiefGearInspectPageMenuTabProperties()
        {
            try
            {
                if (ChiefGearInspectPageMenuTabProperties != null) { DisposeChiefGearInspectPageMenuTabProperties(); }
                int i = 0;

                //Controls for Wield Skill
                HudStaticText lblWeapCat = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblWeapCat.Text = "Wield Skill";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblWeapCat, new Rectangle(5, 5, 80, 16));

                ControlGroup WeaponAppliesToChoices = new ControlGroup();
                cboWeaponAppliesTo = new HudCombo(WeaponAppliesToChoices);
                i = 0;
                foreach (IDNameLoadable info in WeaponTypeList)
                {
                    cboWeaponAppliesTo.AddItem(info.name, i);
                    i++;
                }
                cboWeaponAppliesTo.Current = 0;
                ChiefGearInspectPageMenuTabProperties.AddControl(cboWeaponAppliesTo, new Rectangle(5, 20, 125, 20));

                //Controls for mastery
                HudStaticText lblMastCat = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblMastCat.Text = "Mastery";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblMastCat, new Rectangle(5, 45, 80, 20));

                ControlGroup MastCatChoices = new ControlGroup();
                cboMasteryType = new HudCombo(MastCatChoices);
                i = 0;
                foreach (IDNameLoadable info in MasteryIndex)
                {
                    cboMasteryType.AddItem(info.name, i);
                    i++;
                }
                cboMasteryType.Current = 0;
                ChiefGearInspectPageMenuTabProperties.AddControl(cboMasteryType, new Rectangle(5, 65, 125, 20));

                //Controls for Damage Type
                HudStaticText lblDamageTypes = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblDamageTypes.Text = "Damage Type:}";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblDamageTypes, new Rectangle(5, 90, 125, 16));

                lstDamageTypes = new HudList();
                lstDamageTypesListRow = new HudList.HudListRowAccessor();

                ChiefGearInspectPageMenuTabProperties.AddControl(lstDamageTypes, new Rectangle(5, 110, 125, 90));
                lstDamageTypes.AddColumn(typeof(HudCheckBox), 5, null);
                lstDamageTypes.AddColumn(typeof(HudStaticText), 110, null);
                lstDamageTypes.AddColumn(typeof(HudStaticText), 1, null);

                HudStaticText lblEnabled10025 = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblEnabled10025.Text = "Enabled";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblEnabled10025, new Rectangle(5, 205, 40, 16));

                HudStaticText lblRuleReqSkilla = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleReqSkilla.Text = "SkillLevel";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblRuleReqSkilla, new Rectangle(55, 205, 75, 16));

                chkRuleWeaponsa = new HudCheckBox();
                chkRuleWeaponsa.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsa, new Rectangle(15, 225, 40, 16));
                chkRuleWeaponsa.Checked = true;

                txtRuleReqSkilla = new HudTextBox();
                txtRuleReqSkilla.Text = "355";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkilla, new Rectangle(55, 225, 75, 16));

                chkRuleWeaponsb = new HudCheckBox();
                chkRuleWeaponsb.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsb, new Rectangle(15, 245, 40, 16));
                chkRuleWeaponsb.Checked = true;

                txtRuleReqSkillb = new HudTextBox();
                txtRuleReqSkillb.Text = "375";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkillb, new Rectangle(55, 245, 75, 16));

                chkRuleWeaponsc = new HudCheckBox();
                chkRuleWeaponsc.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsc, new Rectangle(15, 265, 40, 16));
                chkRuleWeaponsc.Checked = true;

                txtRuleReqSkillc = new HudTextBox();
                txtRuleReqSkillc.Text = "385";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkillc, new Rectangle(55, 265, 75, 16));

                chkRuleWeaponsd = new HudCheckBox();
                chkRuleWeaponsd.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsd, new Rectangle(15, 285, 40, 16));
                chkRuleWeaponsd.Checked = false;

                txtRuleReqSkilld = new HudTextBox();
                txtRuleReqSkilld.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkilld, new Rectangle(55, 285, 75, 16));

                //Sets
                HudStaticText lblSets = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblSets.Text = "Sets";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblSets, new Rectangle(150, 5, 110, 16));

                lstRuleSets = new HudList();
                lstRuleSetsListRow = new HudList.HudListRowAccessor();

                ChiefGearInspectPageMenuTabProperties.AddControl(lstRuleSets, new Rectangle(150, 25, 200, 255));
                lstRuleSets.AddColumn(typeof(HudCheckBox), 5, null);
                lstRuleSets.AddColumn(typeof(HudStaticText), 195, null);
                lstRuleSets.AddColumn(typeof(HudStaticText), 1, null);

                SubscribeChiefGearInspectPageMenuTabViewPageSearchRulePropertiesEvents();
            }
            catch (Exception ex) { LogError(ex); }
        }
Esempio n. 10
0
        private void RenderChiefGearSettingsTab()
        {
            try
            {

                //SwitchGear
                lblChiefGearSwitch = new HudStaticText();
                lblChiefGearSwitch.Text = "SwitchGears";
                ChiefGearHudSettings.AddControl(lblChiefGearSwitch, new Rectangle(5, 55, 150, 20));
                chkQuickSlotsv = new HudCheckBox();
                chkQuickSlotsv.Text = "Enable Vertical";
                ChiefGearHudSettings.AddControl(chkQuickSlotsv, new Rectangle(10, 75, 150, 20));
                chkQuickSlotsv.Checked = mGeneralSettings.EnabledHudSettings.bquickSlotsvEnabled;
                chkQuickSlotsh = new HudCheckBox();
                chkQuickSlotsh.Text = "Enable Horizontal";
                ChiefGearHudSettings.AddControl(chkQuickSlotsh, new Rectangle(10, 95, 150, 20));
                chkQuickSlotsh.Checked = mGeneralSettings.EnabledHudSettings.bquickSlotshEnabled;

                //Gear
                lblInventorySetup = new HudStaticText();
                lblInventorySetup.Text = "Gear";
                ChiefGearHudSettings.AddControl(lblInventorySetup, new Rectangle(5, 125, 150, 20));
                chkInventoryHudEnabled = new HudCheckBox();
                chkInventoryHudEnabled.Text = "Enable Inventory Tracking";
                ChiefGearHudSettings.AddControl(chkInventoryHudEnabled, new Rectangle(10, 145, 180, 20));
                chkInventoryHudEnabled.Checked = mGeneralSettings.EnabledHudSettings.binventoryHudEnabled;
                txtInventoryHudEnabled = new HudStaticText();
                txtInventoryHudEnabled.Text = "and Character Statistics";
               	ChiefGearHudSettings.AddControl(txtInventoryHudEnabled, new Rectangle(10, 165, 180, 20));

                //GearVisection
                lblGearVisection = new HudStaticText();
                lblGearVisection.Text = "Gear Visection:";
                ChiefGearHudSettings.AddControl(lblGearVisection, new Rectangle(200, 55, 150, 20));
                chkGearVisectionEnabled = new HudCheckBox();
                chkGearVisectionEnabled.Text = "Enable Gear Visection";
                ChiefGearHudSettings.AddControl(chkGearVisectionEnabled, new Rectangle(205, 75, 150, 20));
                chkGearVisectionEnabled.Checked = mGeneralSettings.EnabledHudSettings.bGearVisection;

                //GearSense
                lblGearSense = new HudStaticText();
                lblGearSense.Text = "GearSense:";
                ChiefGearHudSettings.AddControl(lblGearSense, new Rectangle(200, 105, 150, 20));
                chkGearSenseEnabled = new HudCheckBox();
                chkGearSenseEnabled.Text = "Enable Gear Sense";
                ChiefGearHudSettings.AddControl(chkGearSenseEnabled, new Rectangle(205, 125, 150, 20));
                chkGearSenseEnabled.Checked = mGeneralSettings.EnabledHudSettings.bGearSenseHudEnabled;

                //GearButler
                lblGearButler = new HudStaticText();
                lblGearButler.Text = "GearButler:";
                ChiefGearHudSettings.AddControl(lblGearButler, new Rectangle(200, 155, 150, 20));
                chkGearButlerEnabled = new HudCheckBox();
                chkGearButlerEnabled.Text = "Enable Gear Butler";
                ChiefGearHudSettings.AddControl(chkGearButlerEnabled, new Rectangle(205, 175, 150, 20));
                chkGearButlerEnabled.Checked = mGeneralSettings.EnabledHudSettings.bGearButlerEnabled;

                //PortalGear
                lblPortalGear = new HudStaticText();
                lblPortalGear.Text = "Portal Gear:";
                ChiefGearHudSettings.AddControl(lblPortalGear, new Rectangle(200, 205, 150, 20));
                chkPortalGearEnabled = new HudCheckBox();
                chkPortalGearEnabled.Text = "Use Portal Gear";
                ChiefGearHudSettings.AddControl(chkPortalGearEnabled, new Rectangle(205, 225, 150, 20));
                chkPortalGearEnabled.Checked = mGeneralSettings.EnabledHudSettings.bPortalGearEnabled;

                //GearTactician
                lblGearTactician = new HudStaticText();
                lblGearTactician.Text = "Gear Tactician:";
                ChiefGearHudSettings.AddControl(lblGearTactician, new Rectangle(350, 55, 150, 20));
                chkCombatHudEnabled = new HudCheckBox();
                chkCombatHudEnabled.Text = "Enable Gear Tactician";
                ChiefGearHudSettings.AddControl(chkCombatHudEnabled, new Rectangle(355, 75, 150, 20));
                chkCombatHudEnabled.Checked = mGeneralSettings.EnabledHudSettings.bGearTacticianEnabled;

                //GearInspector
                lblGearInspector = new HudStaticText();
                lblGearInspector.Text = "Gear Inspector:";
                ChiefGearHudSettings.AddControl(lblGearInspector, new Rectangle(350, 105, 105, 20));
                chkGearInspectorEnabled = new HudCheckBox();
                chkGearInspectorEnabled.Text = "Enable Gear Inspector";
                ChiefGearHudSettings.AddControl(chkGearInspectorEnabled, new Rectangle(355, 125, 150, 20));
                chkGearInspectorEnabled.Checked = mGeneralSettings.EnabledHudSettings.bGearInspectorEnabled;

                //GearTasker
                lblGearTasker = new HudStaticText();
                lblGearTasker.Text = "Gear Tasker:";
                ChiefGearHudSettings.AddControl(lblGearTasker, new Rectangle(350, 155, 150, 20));
                chkGearTaskerEnabled = new HudCheckBox();
                chkGearTaskerEnabled.Text = "Use Gear Tasker";
                ChiefGearHudSettings.AddControl(chkGearTaskerEnabled, new Rectangle(355, 175, 150, 20));
                chkGearTaskerEnabled.Checked = mGeneralSettings.EnabledHudSettings.bGearTaskerEnabled;

                //WormGear
                lblWormGear = new HudStaticText();
                lblWormGear.Text = "Worm Gear:";
              	ChiefGearHudSettings.AddControl(lblWormGear, new Rectangle(350, 205, 145, 20));
              	chkWormGearEnabled = new HudCheckBox();
              	chkWormGearEnabled.Text = "Enabled Worm Gear";
              	ChiefGearHudSettings.AddControl(chkWormGearEnabled, new Rectangle(355, 225, 150, 20));
              	chkWormGearEnabled.Checked = mGeneralSettings.EnabledHudSettings.bWormGearEnabled;

                //GearFilters
                lblGearFilters = new HudStaticText();
                lblGearFilters.Text = "Gear Filters:";
                ChiefGearHudSettings.AddControl(lblGearFilters, new Rectangle(350, 255, 145, 20));
                chkEnableTextFiltering = new HudCheckBox();
                chkEnableTextFiltering.Text = "Filter All Non-Chat Text";
                ChiefGearHudSettings.AddControl(chkEnableTextFiltering, new Rectangle(355, 275, 150, 20));
                chkEnableTextFiltering.Checked = mGeneralSettings.EnableTextFiltering;
                chkTextFilterAllStatus = new HudCheckBox();
                chkTextFilterAllStatus.Text = "Filter All Errors";
                ChiefGearHudSettings.AddControl(chkTextFilterAllStatus, new Rectangle(355, 295, 150, 20));
                chkTextFilterAllStatus.Checked = mGeneralSettings.EnableStatusFiltering;

                //Misc Settings
                lblMisc = new HudStaticText();
                lblMisc.Text = "Misc Gears:";
                ChiefGearHudSettings.AddControl(lblMisc, new Rectangle(5, 235, 150, 20));

                //Armor Hud
                chkArmorHud = new HudCheckBox();
                chkArmorHud.Text = "Use Armor Inventory Hud";
                ChiefGearHudSettings.AddControl(chkArmorHud, new Rectangle(10, 275, 150, 20));
                chkArmorHud.Checked = mGeneralSettings.EnabledHudSettings.bArmorHudEnabled;

            //                //GearStats Hud
                chkWorkersHud = new HudCheckBox();
                chkWorkersHud.Text = "Use Gear Workers Hud";
                ChiefGearHudSettings.AddControl(chkWorkersHud, new Rectangle(10, 295, 150, 20));
                chkWorkersHud.Checked = mGeneralSettings.EnabledHudSettings.btoonStatsEnabled;

                chkQuickSlotsv.Change += chkQuickSlotsv_Change;
                chkQuickSlotsh.Change += chkQuickSlotsh_Change;
                chkGearVisectionEnabled.Change += chkGearVisectionEnabled_Change;
                chkGearSenseEnabled.Change += chkGearSenseEnabled_Change;
                chkGearButlerEnabled.Change += chkGearButlerEnabled_Change;
                chkCombatHudEnabled.Change += chkCombatHudEnabled_Change;
                chkGearInspectorEnabled.Change += chkGearInspectorEnabled_Change;
                chkGearTaskerEnabled.Change += chkGearTaskerEnabled_Change;
                chkPortalGearEnabled.Change += chkPortalGearEnabled_Change;
                chkInventoryHudEnabled.Change += chkInventoryHudEnabled_Change;
                chkArmorHud.Change += chkArmorHud_Change;
                chkWorkersHud.Change += chkWorkersHud_Change;
                chkEnableTextFiltering.Change += chkEnableTextFiltering_Change;
                chkTextFilterAllStatus.Change += chkTextFilterAllStatus_Change;
                chkWormGearEnabled.Change += chkWormGearEnabled_Change;

            }catch(Exception ex){LogError(ex);}
        }
Esempio n. 11
0
        private void RenderChiefGearInspectPageMobs()
        {
            try
            {
                WriteToChat("I am in hud to render mobs");

                lstmyMobs = new HudList();
                lstmyMobsListRow = new HudList.HudListRowAccessor();
                ChiefGearInspectPageMobs.AddControl(lstmyMobs, new Rectangle(5, 5, 260, 300));
                lstmyMobs.AddColumn(typeof(HudCheckBox), 5, null);
                lstmyMobs.AddColumn(typeof(HudStaticText), 230, null);
                lstmyMobs.AddColumn(typeof(HudPictureBox), 10, null);

                txtmyMobName = new HudTextBox();
                txtmyMobName.Text = "";
                ChiefGearInspectPageMobs.AddControl(txtmyMobName, new Rectangle(8, 320, 150, 20));

                btnUpdateMobItem = new HudButton();
                btnUpdateMobItem.Text = "Update";
                ChiefGearInspectPageMobs.AddControl(btnUpdateMobItem, new Rectangle(190, 320, 90, 18));

                btnAddMobItem = new HudButton();
                btnAddMobItem.Text = "Add New Mob";
                ChiefGearInspectPageMobs.AddControl(btnAddMobItem, new Rectangle(190, 360, 90, 18));

                chkmyMobExact = new HudCheckBox();
                chkmyMobExact.Text = "Exact Match";
                ChiefGearInspectPageMobs.AddControl(chkmyMobExact, new Rectangle(8, 370, 80, 16));
                chkmyMobExact.Checked = false;

                SubscribeChiefGearInspectPageMobs();

            }
            catch (Exception ex) { LogError(ex); }
        }
Esempio n. 12
0
        private void RenderChiefGearInspectPageMenuTabAdvanced()
        {
            try
            {
                int i = 0;

                chkAdvEnabled = new HudCheckBox();
                chkAdvEnabled.Text = "Enabled";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(chkAdvEnabled, new Rectangle(5, 5, 50, 16));
                chkAdvEnabled.Checked = false;

                HudStaticText lblAdvKey = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblAdvKey.Text = "Key Type";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKey, new Rectangle(5, 25, 100, 16));

                HudStaticText lblAdvKeyName = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblAdvKeyName.Text = "Key Name";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKeyName, new Rectangle(75, 25, 100, 16));

                HudStaticText lblAdvKeyComparison = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblAdvKeyComparison.Text = "Comparison";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKeyComparison, new Rectangle(275, 25, 100, 16));

                HudStaticText lblAdvKeyValue = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblAdvKeyValue.Text = "Key Value";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKeyValue, new Rectangle(380, 25, 100, 16));

                ControlGroup cboAdv1KeyTypeChoices = new ControlGroup();
                cboAdv1KeyType = new HudCombo(cboAdv1KeyTypeChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv1KeyType.AddItem(info.name, i);
                    i++;
                }
                cboAdv1KeyType.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1KeyType, new Rectangle(5, 45, 60, 20));

                ControlGroup cboAdv1KeyChoices = new ControlGroup();
                cboAdv1Key = new HudCombo(cboAdv1KeyChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv1Key.AddItem(info.name, i);
                    i++;
                }
                cboAdv1Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1Key, new Rectangle(75, 45, 175, 20));

                ControlGroup cboAdv1KeyCompareChoices = new ControlGroup();
                cboAdv1KeyCompare = new HudCombo(cboAdv1KeyCompareChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv1KeyCompare.AddItem(info.name, i);
                    i++;
                }
                cboAdv1Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1KeyCompare, new Rectangle(275, 45, 75, 20));

                txtAdv1KeyValue = new HudTextBox();
                txtAdv1KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv1KeyValue, new Rectangle(380, 45, 75, 16));

                ControlGroup cboAdv1LinkChoices = new ControlGroup();
                cboAdv1Link = new HudCombo(cboAdv1LinkChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv1Link.AddItem(info.name, i);
                    i++;
                }
                cboAdv1Link.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1Link, new Rectangle(5, 65, 60, 20));

                //Second group of new advanced rule controls
                ControlGroup cboAdv2KeyTypeChoices = new ControlGroup();
                cboAdv2KeyType = new HudCombo(cboAdv2KeyTypeChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv2KeyType.AddItem(info.name, i);
                    i++;
                }
                cboAdv2KeyType.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2KeyType, new Rectangle(5, 85, 60, 20));

                ControlGroup cboAdv2KeyChoices = new ControlGroup();
                cboAdv2Key = new HudCombo(cboAdv2KeyChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv2Key.AddItem(info.name, i);
                    i++;
                }
                cboAdv2Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2Key, new Rectangle(75, 85, 175, 20));

                ControlGroup cboAdv2KeyCompareChoices = new ControlGroup();
                cboAdv2KeyCompare = new HudCombo(cboAdv2KeyCompareChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv2KeyCompare.AddItem(info.name, i);
                    i++;
                }
                cboAdv2Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2KeyCompare, new Rectangle(275, 85, 75, 20));

                txtAdv2KeyValue = new HudTextBox();
                txtAdv2KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv2KeyValue, new Rectangle(380, 85, 75, 16));

                ControlGroup cboAdv2LinkChoices = new ControlGroup();
                cboAdv2Link = new HudCombo(cboAdv2LinkChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv1Link.AddItem(info.name, i);
                    i++;
                }
                cboAdv2Link.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2Link, new Rectangle(5, 105, 60, 20));

                //Third group of new advanced rule controls
                ControlGroup cboAdv3KeyTypeChoices = new ControlGroup();
                cboAdv3KeyType = new HudCombo(cboAdv3KeyTypeChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv3KeyType.AddItem(info.name, i);
                    i++;
                }
                cboAdv3KeyType.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3KeyType, new Rectangle(5, 125, 60, 20));

                ControlGroup cboAdv3KeyChoices = new ControlGroup();
                cboAdv3Key = new HudCombo(cboAdv3KeyChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv3Key.AddItem(info.name, i);
                    i++;
                }
                cboAdv3Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3Key, new Rectangle(75, 125, 175, 20));

                ControlGroup cboAdv3KeyCompareChoices = new ControlGroup();
                cboAdv3KeyCompare = new HudCombo(cboAdv3KeyCompareChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv3KeyCompare.AddItem(info.name, i);
                    i++;
                }
                cboAdv3Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3KeyCompare, new Rectangle(275, 125, 75, 20));

                txtAdv3KeyValue = new HudTextBox();
                txtAdv3KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv3KeyValue, new Rectangle(380, 125, 75, 16));

                ControlGroup cboAdv3LinkChoices = new ControlGroup();
                cboAdv3Link = new HudCombo(cboAdv3LinkChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv1Link.AddItem(info.name, i);
                    i++;
                }
                cboAdv3Link.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3Link, new Rectangle(5, 145, 60, 20));

                //Fourth group of new advanced rule controls
                ControlGroup cboAdv4KeyTypeChoices = new ControlGroup();
                cboAdv4KeyType = new HudCombo(cboAdv4KeyTypeChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv4KeyType.AddItem(info.name, i);
                    i++;
                }
                cboAdv4KeyType.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4KeyType, new Rectangle(5, 165, 60, 20));

                ControlGroup cboAdv4KeyChoices = new ControlGroup();
                cboAdv4Key = new HudCombo(cboAdv4KeyChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv4Key.AddItem(info.name, i);
                    i++;
                }
                cboAdv4Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4Key, new Rectangle(75, 165, 175, 20));

                ControlGroup cboAdv4KeyCompareChoices = new ControlGroup();
                cboAdv4KeyCompare = new HudCombo(cboAdv4KeyCompareChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv4KeyCompare.AddItem(info.name, i);
                    i++;
                }
                cboAdv4Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4KeyCompare, new Rectangle(275, 165, 75, 20));

                txtAdv4KeyValue = new HudTextBox();
                txtAdv4KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv4KeyValue, new Rectangle(380, 165, 75, 16));

                ControlGroup cboAdv4LinkChoices = new ControlGroup();
                cboAdv4Link = new HudCombo(cboAdv4LinkChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv1Link.AddItem(info.name, i);
                    i++;
                }
                cboAdv4Link.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4Link, new Rectangle(5, 185, 60, 20));

                //Fifth group of new advanced rule controls
                ControlGroup cboAdv5KeyTypeChoices = new ControlGroup();
                cboAdv5KeyType = new HudCombo(cboAdv5KeyTypeChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv5KeyType.AddItem(info.name, i);
                    i++;
                }
                cboAdv5KeyType.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv5KeyType, new Rectangle(5, 205, 60, 20));

                ControlGroup cboAdv5KeyChoices = new ControlGroup();
                cboAdv5Key = new HudCombo(cboAdv5KeyChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv5Key.AddItem(info.name, i);
                    i++;
                }
                cboAdv5Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv5Key, new Rectangle(75, 205, 175, 20));

                ControlGroup cboAdv5KeyCompareChoices = new ControlGroup();
                cboAdv5KeyCompare = new HudCombo(cboAdv5KeyCompareChoices);
                i = 0;
                cboList = new List<IDNameLoadable>();
                foreach (IDNameLoadable info in cboList)
                {
                    cboAdv5KeyCompare.AddItem(info.name, i);
                    i++;
                }
                cboAdv5Key.Current = 0;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv5KeyCompare, new Rectangle(275, 205, 75, 20));

                txtAdv5KeyValue = new HudTextBox();
                txtAdv5KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv5KeyValue, new Rectangle(380, 165, 75, 16));

             }
            catch (Exception ex) { LogError(ex); }
        }
        private void RenderTrophyTab()
        {
            try
            {
                lstmyTrophies = new HudList();
                lstmyTrophies.AddColumn(typeof(HudCheckBox), 16, null);
                lstmyTrophies.AddColumn(typeof(HudStaticText), 210, null);
                lstmyTrophies.AddColumn(typeof(HudPictureBox), 16, null);
                ChiefGearInspectPageTrophies.AddControl(lstmyTrophies, new Rectangle(5, 5, 280, 300));

                btnAddTrophyItem = new HudButton();
                btnAddTrophyItem.Text = "Add New Item";
                ChiefGearInspectPageTrophies.AddControl(btnAddTrophyItem, new Rectangle(5, 320, 120, 20));

                btnTrophyAddSelected = new HudButton();
                btnTrophyAddSelected.Text = "Add Selected Item";
                ChiefGearInspectPageTrophies.AddControl(btnTrophyAddSelected, new Rectangle(135, 320, 120, 20));

                btnTrophyUncheckAll = new HudButton();
                btnTrophyUncheckAll.Text = "Disable All";
                ChiefGearInspectPageTrophies.AddControl(btnTrophyUncheckAll, new Rectangle(310, 5, 120, 20));

                chkTrophyEnabled = new HudCheckBox();
                chkTrophyEnabled.Text = "Enabled";
                ChiefGearInspectPageTrophies.AddControl(chkTrophyEnabled, new Rectangle(5, 350, 90, 16));

                chkTrophyStartsWith = new HudCheckBox();
                chkTrophyStartsWith.Text = "Starts With";
                ChiefGearInspectPageTrophies.AddControl(chkTrophyStartsWith, new Rectangle(110, 350, 90, 16));

                txtTrophyName = new HudTextBox();
                txtTrophyName.Text = "";
                ChiefGearInspectPageTrophies.AddControl(txtTrophyName, new Rectangle(5, 380, 280, 20));

                txtTrophyMax = new HudTextBox();
                txtTrophyMax.Text = "";
                ChiefGearInspectPageTrophies.AddControl(txtTrophyMax, new Rectangle(110, 410, 50, 20));

                lblMyItemsCountMax = new HudStaticText();
                lblMyItemsCountMax.Text = "Loot Max:";
                ChiefGearInspectPageTrophies.AddControl(lblMyItemsCountMax, new Rectangle(5, 410, 100, 16));

                lstmyTrophies.Click += lstmyTrophies_Click;
                chkTrophyEnabled.Hit += chkTrophyEnabled_Hit;
                txtTrophyName.LostFocus += txtTrophyName_LostFocus;
                btnAddTrophyItem.Hit += btnAddTrophyItem_Hit;
                txtTrophyMax.LostFocus += txtTrophyMax_LostFocus;
                chkTrophyStartsWith.Change += chkTrophyStartsWith_Change;
                btnTrophyAddSelected.Hit += btnTrophyAddSelected_Hit;
                btnTrophyUncheckAll.Hit +=  btnTrophyUncheckAll_Hit;
                _UpdateTrophyTab();

            }catch(Exception ex){LogError(ex);}
        }
Esempio n. 14
0
        private void RenderCorpseHud()
        {
            try
            {

                if(CorpseHudView != null)
                {
                    DisposeCorpseHud();
                }

                CorpseHudView = new HudView("GearVisection", mGeneralSettings.GearWindowSettings.CorpseHudWidth, mGeneralSettings.GearWindowSettings.CorpseHudHeight, new ACImage(0x6AA4));
                CorpseHudView.UserAlphaChangeable = false;
                CorpseHudView.ShowInBar = false;
                if(mGeneralSettings.GearVisectionSettings.RenderMini){CorpseHudView.UserResizeable = false;}
                else{CorpseHudView.UserResizeable = true;}
                CorpseHudView.Visible = true;
                CorpseHudView.Ghosted = false;
                CorpseHudView.UserClickThroughable = false;
                CorpseHudView.UserMinimizable = true;
                CorpseHudView.LoadUserSettings();

                CorpseHudTabView = new HudTabView();
                CorpseHudView.Controls.HeadControl = CorpseHudTabView;

                CorpseHudTabLayout = new HudFixedLayout();
                CorpseHudTabView.AddTab(CorpseHudTabLayout, "Corpses");

                CorpseHudList = new HudList();
                CorpseHudTabLayout.AddControl(CorpseHudList, new Rectangle(0,0, mGeneralSettings.GearWindowSettings.CorpseHudWidth,mGeneralSettings.GearWindowSettings.CorpseHudHeight));
                CorpseHudList.ControlHeight = 16;
                CorpseHudList.AddColumn(typeof(HudPictureBox), 16, null);
                CorpseHudList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.CorpseHudWidth - 60, null);
                CorpseHudList.AddColumn(typeof(HudPictureBox), 16, null);
                CorpseHudList.AddColumn(typeof(HudStaticText), 1, null);

                CorpseHudSettingsTab = new HudFixedLayout();
                CorpseHudTabView.AddTab(CorpseHudSettingsTab, "Set");

                AllCorpses = new HudCheckBox();
                AllCorpses.Text = "Trk All";
                CorpseHudSettingsTab.AddControl(AllCorpses, new Rectangle(0,0,150,16));
                AllCorpses.Checked = mGeneralSettings.GearVisectionSettings.bAllCorpses;

                KillsBySelf = new HudCheckBox();
                KillsBySelf.Text = "Trk Self";
                CorpseHudSettingsTab.AddControl(KillsBySelf, new Rectangle(0,18,150,16));
                KillsBySelf.Checked = mGeneralSettings.GearVisectionSettings.bKillsBySelf;

                KillsByFellows = new HudCheckBox();
                KillsByFellows.Text = "Trk Fellows";
                CorpseHudSettingsTab.AddControl(KillsByFellows, new Rectangle(0,36,150,16));
                KillsByFellows.Checked = mGeneralSettings.GearVisectionSettings.bKillsByFellows;

                DeadMes = new HudCheckBox();
                DeadMes.Text = "Trk DeadMe";
                CorpseHudSettingsTab.AddControl(DeadMes, new Rectangle(0,54,150,16));
                DeadMes.Checked = mGeneralSettings.GearVisectionSettings.bDeadMes;

                Permitteds = new HudCheckBox();
                Permitteds.Text = "Trk Permit";
                CorpseHudSettingsTab.AddControl(Permitteds, new Rectangle(0,72,150,16));
                Permitteds.Checked = mGeneralSettings.GearVisectionSettings.Permitteds;

                GVisRenderMini = new HudCheckBox();
                GVisRenderMini.Text = "R. Mini";
                CorpseHudSettingsTab.AddControl(GVisRenderMini, new Rectangle(0,90,150,16));
                GVisRenderMini.Checked = mGeneralSettings.GearVisectionSettings.RenderMini;

                CorpseHudList.Click += CorpseHudList_Click;
                GVisRenderMini.Change += GVisRenderMini_Change;
                AllCorpses.Change += AllCorpses_Change;
                KillsBySelf.Change += KillsBySelf_Change;
                KillsByFellows.Change += KillsByFellows_Change;
                DeadMes.Change += DeadMes_Change;
                Permitteds.Change += Permitteds_Change;

                CorpseHudView.Resize += CorpseHudView_Resize;
               	CorpseHudView.VisibleChanged += CorpseHudView_VisibleChanged;

            }catch(Exception ex){LogError(ex);}
        }
        private void RenderSalvageTab()
        {
            try
            {
                lstNotifySalvage = new HudList();
                lstNotifySalvage.AddColumn(typeof(HudCheckBox), 16, null);
                lstNotifySalvage.AddColumn(typeof(HudPictureBox), 16, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 100, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 100, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageSalvage.AddControl(lstNotifySalvage, new Rectangle(5, 5, 260, 300));

                lblSalvagelblName = new HudStaticText();
                lblSalvagelblName.Text = "Salvage Material: ";
                ChiefGearInspectPageSalvage.AddControl(lblSalvagelblName, new Rectangle(5,310, 250, 16));

                lblSalvageName = new HudStaticText();
                lblSalvageName.Text = "";
                ChiefGearInspectPageSalvage.AddControl(lblSalvageName, new Rectangle(5, 330, 250, 16));

                lblSalvageString = new HudStaticText();
                lblSalvageString.Text= "Salvage Combine String: ";
                ChiefGearInspectPageSalvage.AddControl(lblSalvageString, new Rectangle(5, 360, 150, 16));

                txtSalvageString = new HudTextBox();
                txtSalvageString.Text = "";
                ChiefGearInspectPageSalvage.AddControl(txtSalvageString, new Rectangle(5, 380, 150, 20));

                btnUpdateSalvage = new HudButton();
                btnUpdateSalvage.Text = "Update";
                ChiefGearInspectPageSalvage.AddControl(btnUpdateSalvage, new Rectangle(5, 410, 90, 16));

                chkSalvageEnabled = new HudCheckBox();
                chkSalvageEnabled.Text = "Enabled";
                ChiefGearInspectPageSalvage.AddControl(chkSalvageEnabled, new Rectangle(250, 410, 90, 16));

                imgSalvageAuto = new HudPictureBox();
                ChiefGearInspectPageSalvage.AddControl(imgSalvageAuto, new Rectangle(250, 360, 25, 25));

                lstNotifySalvage.Click += lstNotifySalvage_Click;
               	txtSalvageString.LostFocus += txtSalvageString_LostFocus;
                btnUpdateSalvage.Hit += btnUpdateSalvage_Hit;
                chkSalvageEnabled.Hit += chkSalvageEnabled_Hit;
                imgSalvageAuto.Hit += imgSalvageAuto_Hit;

                _UpdateSalvagePanel();

            }catch(Exception ex){LogError(ex);}
        }
        private void RenderMobTab()
        {
            try
            {

                lstmyMobs = new HudList();
                lstmyMobs.AddColumn(typeof(HudCheckBox), 16, null);
                lstmyMobs.AddColumn(typeof(HudStaticText), 210, null);
                lstmyMobs.AddColumn(typeof(HudPictureBox), 16, null);
                ChiefGearInspectPageMobs.AddControl(lstmyMobs, new Rectangle(5, 5, 280, 300));

                btnUncheckAllMob = new HudButton();
                btnUncheckAllMob.Text = "Disable All";
                ChiefGearInspectPageMobs.AddControl(btnUncheckAllMob, new Rectangle(310, 5, 120, 20));

                txtmyMobName = new HudTextBox();
                txtmyMobName.Text = "";
                ChiefGearInspectPageMobs.AddControl(txtmyMobName, new Rectangle(8, 320, 150, 20));

                chkmyMobEnabled = new HudCheckBox();
                chkmyMobEnabled.Text = "Enabled";
                ChiefGearInspectPageMobs.AddControl(chkmyMobEnabled, new Rectangle(360, 320, 90, 18));

                btnAddSelectedMob = new HudButton();
                btnAddSelectedMob.Text = "Add Selected Mob";
                ChiefGearInspectPageMobs.AddControl(btnAddSelectedMob, new Rectangle(190, 320, 90, 18));

                btnAddMob = new HudButton();
                btnAddMob.Text = "Add New Mob";
                ChiefGearInspectPageMobs.AddControl(btnAddMob, new Rectangle(190, 360, 90, 18));

                lstmyMobs.Click += lstmyMobs_Click;
                chkmyMobEnabled.Change += chkmyMobEnabled_Change;
                txtmyMobName.LostFocus += txtmyMobName_LostFocus;
                btnAddSelectedMob.Hit += btnAddSelectedMob_Hit;
                btnAddMob.Hit += btnAddMob_Hit;
                btnUncheckAllMob.Hit += btnUncheckAllMob_Hit;

                _UpdateMobsTab();

            }catch(Exception ex){LogError(ex);}
        }
        private void RenderInspectSpellsTab()
        {
            try
            {
                lblCurrentSpells = new HudStaticText();
                lblCurrentSpells.Text = "Current Spells";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lblCurrentSpells, new Rectangle(5, 0, 130, 16));

                lstRuleSpellsEnabled = new HudList();
                lstRuleSpellsEnabled.ControlHeight = 16;
                lstRuleSpellsEnabled.AddColumn(typeof(HudStaticText), 195, null);
                lstRuleSpellsEnabled.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lstRuleSpellsEnabled, new Rectangle(5, 20, 220, 200));

                lblRuleMoreSpells = new HudStaticText();
                lblRuleMoreSpells.Text = "Available Spells";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lblRuleMoreSpells, new Rectangle(250, 0, 180, 16));

                lstRuleSpells = new HudList();
                lstRuleSpells.ControlHeight = 16;
                lstRuleSpells.AddColumn(typeof(HudStaticText), 195, null);
                lstRuleSpells.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lstRuleSpells, new Rectangle(250, 20, 250, 200));

                lblRuleFilterSpells = new HudStaticText();
                lblRuleFilterSpells.Text = "Filter Spells by:";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lblRuleFilterSpells, new Rectangle(5, 230, 130, 16));

                chkRuleFilterlvl8 = new HudCheckBox();
                chkRuleFilterlvl8.Text = "lvl 8";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterlvl8, new Rectangle(5, 250, 70, 16));
                chkRuleFilterlvl8.Checked = false;

                chkRuleFilterLegend = new HudCheckBox();
                chkRuleFilterLegend.Text = "Legendary";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterLegend, new Rectangle(80, 250, 70, 16));
                chkRuleFilterLegend.Checked = false;

                chkRuleFilterEpic = new HudCheckBox();
                chkRuleFilterEpic.Text = "Epic";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterEpic, new Rectangle(160, 250, 70, 16));
                chkRuleFilterEpic.Checked = false;

                chkRuleFilterMajor = new HudCheckBox();
                chkRuleFilterMajor.Text = "Major";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterMajor, new Rectangle(240, 250, 70, 16));
                chkRuleFilterMajor.Checked = false;

                chkRuleFilterCloak = new HudCheckBox();
                chkRuleFilterCloak.Text = "Cloak";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterCloak, new Rectangle(320, 250, 70, 16));
                chkRuleFilterCloak.Checked = false;

                lstRuleSpellsEnabled.Click += lstRuleSpellsEnabled_Click;
                lstRuleSpells.Click += lstRuleSpells_Click;
                chkRuleFilterlvl8.Change += chkRuleFilterlvl8_Change;
                chkRuleFilterLegend.Change += chkRuleFilterLegend_Change;
                chkRuleFilterEpic.Change += chkRuleFilterEpic_Change;
                chkRuleFilterMajor.Change += chkRuleFilterMajor_Change;
                chkRuleFilterCloak.Change += chkRuleFilterCloak_Change;
            }
            catch (Exception ex) { LogError(ex); }
        }
        private void RenderInspectorPropertiesTab()
        {
            try
            {
                HudStaticText lblWeapCat = new HudStaticText();
                lblWeapCat.Text = "Wield Skill";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblWeapCat, new Rectangle(5, 5, 80, 16));

                ControlGroup WeaponAppliesToChoices = new ControlGroup();
                cboWeaponAppliesTo = new HudCombo(WeaponAppliesToChoices);
                for(int i = 0; i < tDataTable.WeaponTypeList.Count; i++)
                {
                    cboWeaponAppliesTo.AddItem(tDataTable.WeaponTypeList[i].name, tDataTable.WeaponTypeList[i].ID);
                }
                ChiefGearInspectPageMenuTabProperties.AddControl(cboWeaponAppliesTo, new Rectangle(5, 20, 125, 20));

                lblMastCat = new HudStaticText();
                lblMastCat.Text = "Mastery";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblMastCat, new Rectangle(5, 45, 80, 20));

                ControlGroup MastCatChoices = new ControlGroup();
                cboMasteryType = new HudCombo(MastCatChoices);
                for(int i = 0; i < tDataTable.MasteryIndex.Count; i++)
                {
                    cboMasteryType.AddItem(tDataTable.MasteryIndex[i].name, tDataTable.MasteryIndex[i].ID);
                }
                ChiefGearInspectPageMenuTabProperties.AddControl(cboMasteryType, new Rectangle(5, 65, 125, 20));

                lblDamageTypes = new HudStaticText();
                lblDamageTypes.Text = "Damage Type:";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblDamageTypes, new Rectangle(5, 90, 125, 16));

              	lstDamageTypes = new HudList();
              	lstDamageTypes.ControlHeight = 16;
                lstDamageTypes.AddColumn(typeof(HudCheckBox), 16, null);
                lstDamageTypes.AddColumn(typeof(HudStaticText), 110, null);
                lstDamageTypes.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageMenuTabProperties.AddControl(lstDamageTypes, new Rectangle(5, 110, 125, 90));

                lblEnabled10025 = new HudStaticText();
                lblEnabled10025.Text = "Enabled";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblEnabled10025, new Rectangle(5, 205, 40, 16));

                lblRuleReqSkill = new HudStaticText();
                lblRuleReqSkill.Text = "Skill Level";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblRuleReqSkill, new Rectangle(55, 205, 75, 16));

                chkRuleWeaponsa = new HudCheckBox();
                chkRuleWeaponsa.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsa, new Rectangle(15, 225, 40, 16));
                chkRuleWeaponsa.Checked = true;

                txtRuleReqSkilla = new HudTextBox();
                txtRuleReqSkilla.Text = "355";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkilla, new Rectangle(55, 225, 75, 16));

                chkRuleWeaponsb = new HudCheckBox();
                chkRuleWeaponsb.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsb, new Rectangle(15, 245, 40, 16));
                chkRuleWeaponsb.Checked = true;

                txtRuleReqSkillb = new HudTextBox();
                txtRuleReqSkillb.Text = "375";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkillb, new Rectangle(55, 245, 75, 16));

                chkRuleWeaponsc = new HudCheckBox();
                chkRuleWeaponsc.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsc, new Rectangle(15, 265, 40, 16));
                chkRuleWeaponsc.Checked = true;

                txtRuleReqSkillc = new HudTextBox();
                txtRuleReqSkillc.Text = "385";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkillc, new Rectangle(55, 265, 75, 16));

                chkRuleWeaponsd = new HudCheckBox();
                chkRuleWeaponsd.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(chkRuleWeaponsd, new Rectangle(15, 285, 40, 16));
                chkRuleWeaponsd.Checked = false;

                txtRuleReqSkilld = new HudTextBox();
                txtRuleReqSkilld.Text = "";
                ChiefGearInspectPageMenuTabProperties.AddControl(txtRuleReqSkilld, new Rectangle(55, 285, 75, 16));

                lblSets = new HudStaticText();
                lblSets.Text = "Sets";
                ChiefGearInspectPageMenuTabProperties.AddControl(lblSets, new Rectangle(150, 5, 110, 16));

                lstRuleSets = new HudList();
                lstRuleSets.ControlHeight = 16;
                lstRuleSets.AddColumn(typeof(HudCheckBox), 16, null);
                lstRuleSets.AddColumn(typeof(HudStaticText), 195, null);
                lstRuleSets.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageMenuTabProperties.AddControl(lstRuleSets, new Rectangle(150, 25, 200, 255));

                cboWeaponAppliesTo.Change += cboWeaponAppliesTo_Change;
                cboMasteryType.Change += cboMasteryType_Change;
                lstDamageTypes.Click += lstDamageTypes_Click;
                chkRuleWeaponsa.Change += chkRuleWeaponsa_Change;
                chkRuleWeaponsb.Change += chkRuleWeaponsb_Change;
                chkRuleWeaponsc.Change += chkRuleWeaponsc_Change;
                chkRuleWeaponsd.Change += chkRuleWeaponsd_Change;
                txtRuleReqSkilla.LostFocus += txtRuleReqSkilla_LostFocus;
                txtRuleReqSkillb.LostFocus += txtRuleReqSkillb_LostFocus;
                txtRuleReqSkillc.LostFocus += txtRuleReqSkillc_LostFocus;
                txtRuleReqSkilld.LostFocus += txtRuleReqSkilld_LostFocus;
                lstRuleSets.Click += lstRuleSets_Click;
            }catch(Exception ex){LogError(ex);}
        }
        private void RenderInspectorAdvancedTab()
        {
            try
            {
                chkAdvEnabled = new HudCheckBox();
                chkAdvEnabled.Text = "Enabled";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(chkAdvEnabled, new Rectangle(5, 5, 50, 16));

                lblAdvKey = new HudStaticText();
                lblAdvKey.Text = "Key Type";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKey, new Rectangle(5, 25, 100, 16));

                lblAdvKeyName = new HudStaticText();
                lblAdvKeyName.Text = "Key Name";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKeyName, new Rectangle(75, 25, 100, 16));

                lblAdvKeyComparison = new HudStaticText();
                lblAdvKeyComparison.Text = "Comparison";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKeyComparison, new Rectangle(235, 25, 100, 16));

                lblAdvKeyValue = new HudStaticText();
                lblAdvKeyValue.Text = "Key Value";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(lblAdvKeyValue, new Rectangle(380, 25, 100, 16));

                ControlGroup cboAdv1KeyTypeChoices = new ControlGroup();
                cboAdv1KeyType = new HudCombo(cboAdv1KeyTypeChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1KeyType, new Rectangle(5, 45, 60, 20));

                ControlGroup cboAdv1KeyChoices = new ControlGroup();
                cboAdv1Key = new HudCombo(cboAdv1KeyChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1Key, new Rectangle(75, 45, 150, 20));

                ControlGroup cboAdv1KeyCompareChoices = new ControlGroup();
                cboAdv1KeyCompare = new HudCombo(cboAdv1KeyCompareChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1KeyCompare, new Rectangle(235, 45, 125, 20));

                txtAdv1KeyValue = new HudTextBox();
                txtAdv1KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv1KeyValue, new Rectangle(380, 45, 75, 16));

                ControlGroup cboAdv1LinkChoices = new ControlGroup();
                cboAdv1Link = new HudCombo(cboAdv1LinkChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv1Link, new Rectangle(5, 65, 60, 20));

                ControlGroup cboAdv2KeyTypeChoices = new ControlGroup();
                cboAdv2KeyType = new HudCombo(cboAdv2KeyTypeChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2KeyType, new Rectangle(5, 85, 60, 20));

                ControlGroup cboAdv2KeyChoices = new ControlGroup();
                cboAdv2Key = new HudCombo(cboAdv2KeyChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2Key, new Rectangle(75, 85, 150, 20));

                ControlGroup cboAdv2KeyCompareChoices = new ControlGroup();
                cboAdv2KeyCompare = new HudCombo(cboAdv2KeyCompareChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2KeyCompare, new Rectangle(235, 85, 125, 20));

                txtAdv2KeyValue = new HudTextBox();
                txtAdv2KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv2KeyValue, new Rectangle(380, 85, 75, 16));

                ControlGroup cboAdv2LinkChoices = new ControlGroup();
                cboAdv2Link = new HudCombo(cboAdv2LinkChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv2Link, new Rectangle(5, 105, 60, 20));

                ControlGroup cboAdv3KeyTypeChoices = new ControlGroup();
                cboAdv3KeyType = new HudCombo(cboAdv3KeyTypeChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3KeyType, new Rectangle(5, 125, 60, 20));

                ControlGroup cboAdv3KeyChoices = new ControlGroup();
                cboAdv3Key = new HudCombo(cboAdv3KeyChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3Key, new Rectangle(75, 125, 150, 20));

                ControlGroup cboAdv3KeyCompareChoices = new ControlGroup();
                cboAdv3KeyCompare = new HudCombo(cboAdv3KeyCompareChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3KeyCompare, new Rectangle(235, 125, 125, 20));

                txtAdv3KeyValue = new HudTextBox();
                txtAdv3KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv3KeyValue, new Rectangle(380, 125, 75, 16));

                ControlGroup cboAdv3LinkChoices = new ControlGroup();
                cboAdv3Link = new HudCombo(cboAdv3LinkChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv3Link, new Rectangle(5, 145, 60, 20));

                ControlGroup cboAdv4KeyTypeChoices = new ControlGroup();
                cboAdv4KeyType = new HudCombo(cboAdv4KeyTypeChoices);;
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4KeyType, new Rectangle(5, 165, 60, 20));

                ControlGroup cboAdv4KeyChoices = new ControlGroup();
                cboAdv4Key = new HudCombo(cboAdv4KeyChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4Key, new Rectangle(75, 165, 150, 20));

                ControlGroup cboAdv4KeyCompareChoices = new ControlGroup();
                cboAdv4KeyCompare = new HudCombo(cboAdv4KeyCompareChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4KeyCompare, new Rectangle(235, 165, 125, 20));

                txtAdv4KeyValue = new HudTextBox();
                txtAdv4KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv4KeyValue, new Rectangle(380, 165, 75, 16));

                ControlGroup cboAdv4LinkChoices = new ControlGroup();
                cboAdv4Link = new HudCombo(cboAdv4LinkChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv4Link, new Rectangle(5, 185, 60, 20));

                ControlGroup cboAdv5KeyTypeChoices = new ControlGroup();
                cboAdv5KeyType = new HudCombo(cboAdv5KeyTypeChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv5KeyType, new Rectangle(5, 205, 60, 20));

                ControlGroup cboAdv5KeyChoices = new ControlGroup();
                cboAdv5Key = new HudCombo(cboAdv5KeyChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv5Key, new Rectangle(75, 205, 150, 20));

                ControlGroup cboAdv5KeyCompareChoices = new ControlGroup();
                cboAdv5KeyCompare = new HudCombo(cboAdv5KeyCompareChoices);
                ChiefGearInspectPageMenuTabAdvanced.AddControl(cboAdv5KeyCompare, new Rectangle(235, 205, 125, 20));

                txtAdv5KeyValue = new HudTextBox();
                txtAdv5KeyValue.Text = "";
                ChiefGearInspectPageMenuTabAdvanced.AddControl(txtAdv5KeyValue, new Rectangle(380, 205, 75, 16));

                chkAdvEnabled.Change += chkAdvEnabled_Change;

                cboAdv1KeyType.Change += cboAdv1KeyType_Change;
                cboAdv1Key.Change += cboAdv1Key_Change;
                cboAdv1KeyCompare.Change += cboAdv1KeyCompare_Change;
                txtAdv1KeyValue.LostFocus += txtAdv1KeyValue_LostFocus;
                cboAdv1Link.Change += cboAdv1Link_Change;

                cboAdv2KeyType.Change += cboAdv2KeyType_Change;
                cboAdv2Key.Change += cboAdv2Key_Change;
                cboAdv2KeyCompare.Change += cboAdv2KeyCompare_Change;
                txtAdv2KeyValue.LostFocus += txtAdv2KeyValue_LostFocus;
                cboAdv2Link.Change += cboAdv2Link_Change;

                cboAdv3KeyType.Change += cboAdv3KeyType_Change;
                cboAdv3Key.Change += cboAdv3Key_Change;
                cboAdv3KeyCompare.Change += cboAdv3KeyCompare_Change;
                txtAdv3KeyValue.LostFocus += txtAdv3KeyValue_LostFocus;
                cboAdv3Link.Change += cboAdv3Link_Change;

                cboAdv4KeyType.Change += cboAdv4KeyType_Change;
                cboAdv4Key.Change += cboAdv4Key_Change;
                cboAdv4KeyCompare.Change += cboAdv4KeyCompare_Change;
                txtAdv4KeyValue.LostFocus += txtAdv4KeyValue_LostFocus;
                cboAdv4Link.Change += cboAdv4Link_Change;

                cboAdv5KeyType.Change += cboAdv5KeyType_Change;
                cboAdv5Key.Change += cboAdv5Key_Change;
                cboAdv5KeyCompare.Change += cboAdv5KeyCompare_Change;
                txtAdv5KeyValue.LostFocus += txtAdv5KeyValue_LostFocus;

            }catch(Exception ex){LogError(ex);}
        }
Esempio n. 20
0
 public void setCheckBox(HudCheckBox checkbox)
 {
     popoutview.VisibleChanged += Popoutview_VisibleChanged;
     this.thisCheckBox          = checkbox;
 }
Esempio n. 21
0
        private void RenderItemHud()
        {
            try{

                if(ItemHudView != null)
                {
                    DisposeItemHud();
                }

                ItemHudView = new HudView("Inspector", mGeneralSettings.GearWindowSettings.ItemHudWidth, mGeneralSettings.GearWindowSettings.ItemHudHeight, new ACImage(0x6AA8));
                ItemHudView.UserAlphaChangeable = false;
                ItemHudView.UserMinimizable = true;
                ItemHudView.ShowInBar = false;
                ItemHudView.Visible = true;
                ItemHudView.UserAlphaChangeable = false;
                if(mGeneralSettings.GearInspectorSettings.RenderMini){ItemHudView.UserResizeable = false;}
                else{ItemHudView.UserResizeable = true;}
                ItemHudView.LoadUserSettings();

                ItemHudTabView = new HudTabView();
                ItemHudView.Controls.HeadControl = ItemHudTabView;

                ItemHudInspectorLayout = new HudFixedLayout();
                ItemHudTabView.AddTab(ItemHudInspectorLayout, "Inspect");

                ItemHudUstLayout = new HudFixedLayout();
                ItemHudTabView.AddTab(ItemHudUstLayout, "Process");

                ItemHudSettingsLayout = new HudFixedLayout();
                ItemHudTabView.AddTab(ItemHudSettingsLayout, "Set");

                ItemHudPendingText = new HudStaticText();
                ItemHudPendingText.Text = LOListenHash.Count.ToString() + " IDs pending.";
                ItemHudInspectorLayout.AddControl(ItemHudPendingText, new Rectangle(0,0,120,16));

                ItemHudInspectorList = new HudList();
                ItemHudInspectorLayout.AddControl(ItemHudInspectorList, new Rectangle(0,20,mGeneralSettings.GearWindowSettings.ItemHudWidth,mGeneralSettings.GearWindowSettings.ItemHudHeight-20));
                ItemHudInspectorList.ControlHeight = 16;
                ItemHudInspectorList.AddColumn(typeof(HudPictureBox), 16, null);
                ItemHudInspectorList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ItemHudWidth - 60, null);
                ItemHudInspectorList.AddColumn(typeof(HudPictureBox), 16, null);
                ItemHudInspectorList.AddColumn(typeof(HudStaticText), 1, null);

                ItemHudUstButton = new HudButton();
                ItemHudUstButton.Text = "Proc. List";
                ItemHudUstLayout.AddControl(ItemHudUstButton, new Rectangle(Convert.ToInt32((mGeneralSettings.GearWindowSettings.ItemHudWidth - 100) /2),0,100,20));

                ItemHudUstList = new HudList();
                ItemHudUstList.AddColumn(typeof(HudPictureBox), 16, null);
                ItemHudUstList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ItemHudWidth - 60, null);
                ItemHudUstList.AddColumn(typeof(HudPictureBox), 16, null);
                ItemHudUstList.AddColumn(typeof(HudStaticText), 1, null);
                ItemHudUstLayout.AddControl(ItemHudUstList, new Rectangle(0,30,mGeneralSettings.GearWindowSettings.ItemHudWidth,mGeneralSettings.GearWindowSettings.ItemHudHeight - 30));

                InspectorIdentifySalvage = new HudCheckBox();
                InspectorIdentifySalvage.Text = "Ident. Salv.";
                ItemHudSettingsLayout.AddControl(InspectorIdentifySalvage, new Rectangle(0, 17, 100, 16));
                InspectorIdentifySalvage.Checked = mGeneralSettings.GearInspectorSettings.IdentifySalvage;

                InspectorCheckForL7Scrolls = new HudCheckBox();
                InspectorCheckForL7Scrolls.Text = "Unk. L7 Spl.";
                ItemHudSettingsLayout.AddControl(InspectorCheckForL7Scrolls, new Rectangle(0, 85, 100, 16));
                InspectorCheckForL7Scrolls.Checked = mGeneralSettings.GearInspectorSettings.CheckForL7Scrolls;

                InspectorLootByValue = new HudTextBox();
                ItemHudSettingsLayout.AddControl(InspectorLootByValue, new Rectangle(0,102,45,16));
                InspectorLootByValue.Text = mGeneralSettings.GearInspectorSettings.LootByValue.ToString();

                InspectorHudValueLabel = new HudStaticText();
                InspectorHudValueLabel.Text = "Value";
                ItemHudSettingsLayout.AddControl(InspectorHudValueLabel, new Rectangle(50,102,100,16));

                InspectorSalvageHighValue = new HudCheckBox();
                InspectorSalvageHighValue.Text = "Salv. Value";
                ItemHudSettingsLayout.AddControl(InspectorSalvageHighValue, new Rectangle(0,119,100,16));
                InspectorSalvageHighValue.Checked = mGeneralSettings.GearInspectorSettings.SalvageHighValue;

                InspectorHudManaLabel = new HudStaticText();

                InspectorHudManaLabel.Text = "ManaTanks";
                ItemHudSettingsLayout.AddControl(InspectorHudManaLabel, new Rectangle(50,136,100,16));

                InspectorLootByMana = new HudTextBox();
                ItemHudSettingsLayout.AddControl(InspectorLootByMana, new Rectangle(0,136,45,16));
                InspectorLootByMana.Text = mGeneralSettings.GearInspectorSettings.LootByMana.ToString();

                InspectorRenderMini = new HudCheckBox();
                InspectorRenderMini.Text = "R. Mini.";
                ItemHudSettingsLayout.AddControl(InspectorRenderMini, new Rectangle(0,153,100,16));
                InspectorRenderMini.Checked = mGeneralSettings.GearInspectorSettings.RenderMini;

                InspectorGSStrings = new HudCheckBox();
                InspectorGSStrings.Text = "GS Str.";
                ItemHudSettingsLayout.AddControl(InspectorGSStrings, new Rectangle(0,170,100,16));
                InspectorGSStrings.Checked = mGeneralSettings.GearInspectorSettings.GSStrings;

                InspectorAlincoStrings = new HudCheckBox();
                InspectorAlincoStrings.Text = "Alinco Str.";
                ItemHudSettingsLayout.AddControl(InspectorAlincoStrings, new Rectangle(0,187,100,16));
                InspectorAlincoStrings.Checked = mGeneralSettings.GearInspectorSettings.AlincoStrings;

                ItemHudView.Resize += ItemHudView_Resize;
                ItemHudView.VisibleChanged += ItemHudView_VisisbleChanged;

                ItemHudInspectorList.Click += ItemHudInspectorList_Click;

                ItemHudUstList.Click += ItemHudUstList_Click;
                ItemHudUstButton.Hit += ItemHudUstButton_Hit;

                InspectorIdentifySalvage.Change += InspectorIdentifySalvage_Change;
                InspectorCheckForL7Scrolls.Change += InspectorCheckForL7Scrolls_Change;
                InspectorLootByValue.LostFocus += InspectorLootByValue_LostFocus;
                InspectorSalvageHighValue.Change += InspectorSalvageHighValue_Change;
                InspectorLootByMana.LostFocus += InspectorLootByMana_LostFocus;
                InspectorRenderMini.Change += InspectorRenderMini_Change;
                InspectorGSStrings.Change += InspectorGSStrings_Change;
                InspectorAlincoStrings.Change += InspectorAlincoStrings_Change;

                UpdateItemHud();
            }catch(Exception ex) {LogError(ex);}
        }
Esempio n. 22
0
        private void RenderChiefGearInspectPageTrophies()
        {
            try
            {
                WriteToChat("I am in function to render trophy hud.");

                lstmyTrophies = new HudList();
                lstmyTrophiesListRow = new HudList.HudListRowAccessor();
                ChiefGearInspectPageTrophies.AddControl(lstmyTrophies, new Rectangle(5, 5, 260, 300));
                lstmyTrophies.AddColumn(typeof(HudCheckBox), 5, null);
                lstmyTrophies.AddColumn(typeof(HudStaticText), 230, null);
                lstmyTrophies.AddColumn(typeof(HudPictureBox), 10, null);

                txtTrophyName = new HudTextBox();
                txtTrophyName.Text = "";
                ChiefGearInspectPageTrophies.AddControl(txtTrophyName, new Rectangle(8, 320, 150, 20));

                btnUpdateTrophyItem = new HudButton();
                btnUpdateTrophyItem.Text = "Update";
                ChiefGearInspectPageTrophies.AddControl(btnUpdateTrophyItem, new Rectangle(190, 320, 90, 18));

                btnAddTrophyItem = new HudButton();
                btnAddTrophyItem.Text = "Add New Item";
                ChiefGearInspectPageTrophies.AddControl(btnAddTrophyItem, new Rectangle(190, 360, 90, 18));

                chkTrophyExact = new HudCheckBox();
                chkTrophyExact.Text = "Exact Match";
                ChiefGearInspectPageTrophies.AddControl(chkTrophyExact, new Rectangle(8, 370, 80, 16));
                chkTrophyExact.Checked = false;

                txtTrophyMax = new HudTextBox();
                txtTrophyMax.Text = "";
                ChiefGearInspectPageTrophies.AddControl(txtTrophyMax, new Rectangle(5, 390, 100, 20));

                HudStaticText lblMyItemsCountMax = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblMyItemsCountMax.Text = "Max # to Loot:";
                ChiefGearInspectPageTrophies.AddControl(lblMyItemsCountMax, new Rectangle(110, 390, 100, 16));

                SubscribeChiefGearInspectPageTrophies();

            }
            catch (Exception ex) { LogError(ex); }
        }
Esempio n. 23
0
        private void RenderLandscapeHud()
        {
            try
            {
               			if(LandscapeHudView != null)
                {
                    DisposeLandscapeHud();
                }

                LandscapeHudView = new HudView("GearSense", gsSettings.LandscapeHudWidth, gsSettings.LandscapeHudHeight, new ACImage(0x6AA5));
                LandscapeHudView.UserAlphaChangeable = false;
                LandscapeHudView.ShowInBar = false;
                LandscapeHudView.Visible = true;
                LandscapeHudView.Ghosted = false;
                LandscapeHudView.UserMinimizable = true;
                LandscapeHudView.UserClickThroughable = false;
                if(gsSettings.bRenderMini) {LandscapeHudView.UserResizeable = false;}
                else{LandscapeHudView.UserResizeable = true;}
                LandscapeHudView.LoadUserSettings();

                LandscapeHudTabView = new HudTabView();
                LandscapeHudView.Controls.HeadControl = LandscapeHudTabView;

                LandscapeHudTabLayout = new HudFixedLayout();
                LandscapeHudTabView.AddTab(LandscapeHudTabLayout, "Sense");

                LandscapeHudSettings = new HudFixedLayout();
                LandscapeHudTabView.AddTab(LandscapeHudSettings, "Set");

                LandscapeHudList = new HudList();
                LandscapeHudTabLayout.AddControl(LandscapeHudList, new Rectangle(0,0, gsSettings.LandscapeHudWidth,gsSettings.LandscapeHudHeight));
                LandscapeHudList.ControlHeight = 16;
                LandscapeHudList.AddColumn(typeof(HudPictureBox), 14, null);
                LandscapeHudList.AddColumn(typeof(HudStaticText), gsSettings.LandscapeHudWidth - 60, null);
                LandscapeHudList.AddColumn(typeof(HudPictureBox), 14, null);
                LandscapeHudList.AddColumn(typeof(HudStaticText), 1, null);

                ShowAllMobs = new HudCheckBox();
                ShowAllMobs.Text = "Trk All Mobs";
                LandscapeHudSettings.AddControl(ShowAllMobs, new Rectangle(0,0,150,16));
                ShowAllMobs.Checked = gsSettings.bShowAllMobs;

                ShowSelectedMobs = new HudCheckBox();
                ShowSelectedMobs.Text = "Trk Mob List";
                LandscapeHudSettings.AddControl(ShowSelectedMobs, new Rectangle(0,18,150,16));
                ShowSelectedMobs.Checked = gsSettings.bShowSelectedMobs;

                ShowAllPlayers = new HudCheckBox();
                ShowAllPlayers.Text = "Trk All Players";
                LandscapeHudSettings.AddControl(ShowAllPlayers, new Rectangle(0,36,150,16));
                ShowAllPlayers.Checked = gsSettings.bShowAllPlayers;

                ShowAllegancePlayers = new HudCheckBox();
                ShowAllegancePlayers.Text = "Trk Allegiance";
                LandscapeHudSettings.AddControl(ShowAllegancePlayers, new Rectangle(0,54,150,16));
                ShowAllegancePlayers.Checked = gsSettings.bShowAllegancePlayers;

                ShowFellowPlayers = new HudCheckBox();
                ShowFellowPlayers.Text = "Trk Fellows";
                LandscapeHudSettings.AddControl(ShowFellowPlayers, new Rectangle(0,72,150,16));
                ShowFellowPlayers.Checked = gsSettings.bShowFellowPlayers;

                ShowAllNPCs= new HudCheckBox();
                ShowAllNPCs.Text = "Trk All NPCs";
                LandscapeHudSettings.AddControl(ShowAllNPCs, new Rectangle(0,90,150,16));
                ShowAllNPCs.Checked = gsSettings.bShowAllNPCs;

                ShowTrophies = new HudCheckBox();
                ShowTrophies.Text = "Trk Trophy/NPC";
                LandscapeHudSettings.AddControl(ShowTrophies, new Rectangle(0,108,150,16));
                ShowTrophies.Checked = gsSettings.bShowTrophies;

                ShowLifeStones = new HudCheckBox();
                ShowLifeStones.Text = "Trk LifeStones";
                LandscapeHudSettings.AddControl(ShowLifeStones, new Rectangle(0,126,150,16));
                ShowLifeStones.Checked = gsSettings.bShowLifeStones;

                ShowAllPortals= new HudCheckBox();
                ShowAllPortals.Text = "Trk Portals";
                LandscapeHudSettings.AddControl(ShowAllPortals, new Rectangle(0,144,150,16));
                ShowAllPortals.Checked = gsSettings.bShowAllPortals;

                LandscapeForgetDistance = new HudTextBox();
                ForgetLabel = new HudStaticText();
                ForgetLabel.Text = "Forget Dist.";
                LandscapeForgetDistance.Text = gsSettings.LandscapeForgetDistance.ToString();
                LandscapeHudSettings.AddControl(LandscapeForgetDistance, new Rectangle(0,162,45,16));
                LandscapeHudSettings.AddControl(ForgetLabel, new Rectangle(50,162,150,16));

                LandscapeRenderMini = new HudCheckBox();
                LandscapeRenderMini.Text = "R. Mini.";
                LandscapeHudSettings.AddControl(LandscapeRenderMini, new Rectangle(0,180,150,16));
                LandscapeRenderMini.Checked = gsSettings.bRenderMini;

                ShowAllMobs.Change += ShowAllMobs_Change;
                ShowSelectedMobs.Change += ShowSelectedMobs_Change;
                ShowAllPlayers.Change += ShowAllPlayers_Change;
                ShowFellowPlayers.Change += ShowFellowPlayers_Change;
                ShowAllegancePlayers.Change += ShowAllegancePlayers_Change;
                ShowAllNPCs.Change += ShowAllNPCs_Change;
                ShowTrophies.Change += ShowTrophies_Change;
                ShowLifeStones.Change += ShowLifeStones_Change;
                ShowAllPortals.Change += ShowAllPortals_Change;
                LandscapeForgetDistance.LostFocus += LandscapeForgetDistance_LostFocus;
                LandscapeRenderMini.Change += LandscapeRenderMini_Change;

                LandscapeHudList.Click += LandscapeHudList_Click;

                LandscapeHudView.Resize += LandscapeHudView_Resize;
                LandscapeHudView.VisibleChanged += LandscapeHudView_VisibleChanged;

                UpdateLandscapeHud();

            }catch(Exception ex) {LogError(ex);}
        }
Esempio n. 24
0
        private void RenderChiefGearInspectPageMenuTabMain()
        {
            try
            {
                if (ChiefGearInspectPageMenuTabMain != null) { DisposeChiefGearInspectPageMenuTabMain(); }

                HudStaticText lblRuleName = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleName.Text = "Rule Name";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleName, new Rectangle(70, 5, 90, 16));

                txtRuleName = new HudTextBox();
                txtRuleName.Text = "";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleName, new Rectangle(70, 25, 210, 16));

                HudStaticText lblRulePriority = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRulePriority.Text = "Priority (1 - 999)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRulePriority, new Rectangle(290, 5, 90, 16));

                txtRulePriority = new HudTextBox();
                txtRulePriority.Text = "1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRulePriority, new Rectangle(290, 25, 30, 16));

                chkRuleEnabled = new HudCheckBox();
                chkRuleEnabled.Text = "Enabled";
                ChiefGearInspectPageMenuTabMain.AddControl(chkRuleEnabled, new Rectangle(5, 25, 60, 16));
              //  chkRuleEnabled.Checked = Convert.ToBoolean(mSelectedRule.Element("Enabled").Value);

                HudStaticText lblRuleApplies = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleApplies.Text = "Item type {required:}";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleApplies, new Rectangle(5, 55, 200, 16));

                lstRuleApplies = new HudList();
                lstRuleAppliesListRow = new HudList.HudListRowAccessor();

                ChiefGearInspectPageMenuTabMain.AddControl(lstRuleApplies, new Rectangle(5, 75, 130, 200));
                lstRules.AddColumn(typeof(HudCheckBox), 5, null);
                lstRules.AddColumn(typeof(HudStaticText), 110, null);
                lstRules.AddColumn(typeof(HudStaticText), 1, null);

                txtGearScore = new HudTextBox();
                txtGearScore.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtGearScore, new Rectangle(160, 75, 50, 16));

                HudStaticText lblGearScore = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblGearScore.Text = "GearScore(Min)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblGearScore, new Rectangle(215, 75, 100, 16));

                txtRuleArcaneLore = new HudTextBox();
                txtRuleArcaneLore.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleArcaneLore, new Rectangle(160, 95, 50, 16));

                HudStaticText lblRuleArcaneLore = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleArcaneLore.Text = "Arcane Lore (Max)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleArcaneLore, new Rectangle(215, 95, 100, 16));

                txtRuleMaxCraft = new HudTextBox();
                txtRuleMaxCraft.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleMaxCraft, new Rectangle(160, 115, 50, 16));

                HudStaticText lblRuleWork = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleWork.Text = "Work (Max)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleWork, new Rectangle(215, 115, 115, 16));

                txtRuleWieldLevel = new HudTextBox();
                txtRuleWieldLevel.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleWieldLevel, new Rectangle(160, 135, 50, 16));

                HudStaticText lblRuleWieldLevel = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleWieldLevel.Text = "Char Level (Max)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblRuleWieldLevel, new Rectangle(215, 135, 100, 16));

                txtRuleNumSpells = new HudTextBox();
                txtRuleNumSpells.Text = "-1";
                ChiefGearInspectPageMenuTabMain.AddControl(txtRuleNumSpells, new Rectangle(160, 155, 50, 16));

                HudStaticText lblnumSpells = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblnumSpells.Text = "Num Spells (Min)";
                ChiefGearInspectPageMenuTabMain.AddControl(lblnumSpells, new Rectangle(215, 155, 100, 16));

                HudStaticText lblSlots = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblSlots.Text = "Slots";
                ChiefGearInspectPageMenuTabMain.AddControl(lblSlots, new Rectangle(330, 55, 88, 16));

                lstRuleSlots = new HudList();
                ChiefGearInspectPageMenuTabMain.AddControl(lstRuleSlots, new Rectangle(350, 75, 135, 200));
                lstRuleSlots.AddColumn(typeof(HudCheckBox), 5, null);
                lstRuleSlots.AddColumn(typeof(HudStaticText), 110, null);
                lstRuleSlots.AddColumn(typeof(HudStaticText), 1, null);

                bChiefGearInspectPageTabViewMain = true;
                SubscribeChiefGearInspectPageMenuTabViewPageSearchRuleMainEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
Esempio n. 25
0
        private void createQuickies(VirindiViewService.HudView hudview)
        {
            try
            {

                if (hudview == quickiesvHud)
                {
                    quickiesvHud = new VirindiViewService.HudView("VQuickie", 25, 300, new ACImage(Color.Transparent), false);
                    //quickiesvHud.Width = 25;
                    //quickiesvHud.Height = 300;
                    //quickiesvHud.Title = "VQuickie";
                    quickiesvHud_Head = new HudFixedLayout();

                    btnQuickiesvAdd = new HudButton();
                    btnQuickiesvRemove = new HudButton();
                    if (vpt.X == 0) { vpt.X = 200; }
                    if (vpt.Y == 0) { vpt.Y = 200; }

                    doCreateHud(quickiesvHud, vpt, quickiesvHud_Head, btnQuickiesvAdd, btnQuickiesvRemove);

                    try
                    {
                        vst.Add(mQuickStackv0);
                        vst.Add(mQuickStackv1);
                        vst.Add(mQuickStackv2);
                        vst.Add(mQuickStackv3);
                        vst.Add(mQuickStackv4);
                        vst.Add(mQuickStackv5);
                        vst.Add(mQuickStackv6);
                        vst.Add(mQuickStackv7);
                        vst.Add(mQuickStackv8);
                        vst.Add(mQuickStackv9);
                        vst.Add(mQuickStackv10);
                        vst.Add(mQuickStackv11);

                        vID.Add(nQuickieIDv0);
                        vID.Add(nQuickieIDv1);
                        vID.Add(nQuickieIDv2);
                        vID.Add(nQuickieIDv3);
                        vID.Add(nQuickieIDv4);
                        vID.Add(nQuickieIDv5);
                        vID.Add(nQuickieIDv6);
                        vID.Add(nQuickieIDv7);
                        vID.Add(nQuickieIDv8);
                        vID.Add(nQuickieIDv9);
                        vID.Add(nQuickieIDv10);
                        vID.Add(nQuickieIDv11);

                        chkQuickiev0 = new HudCheckBox(); vchk.Add(chkQuickiev0);
                        chkQuickiev1 = new HudCheckBox(); vchk.Add(chkQuickiev1);
                        chkQuickiev2 = new HudCheckBox(); vchk.Add(chkQuickiev2);
                        chkQuickiev3 = new HudCheckBox(); vchk.Add(chkQuickiev3);
                        chkQuickiev4 = new HudCheckBox(); vchk.Add(chkQuickiev4);
                        chkQuickiev5 = new HudCheckBox(); vchk.Add(chkQuickiev5);
                        chkQuickiev6 = new HudCheckBox(); vchk.Add(chkQuickiev6);
                        chkQuickiev7 = new HudCheckBox(); vchk.Add(chkQuickiev7);
                        chkQuickiev8 = new HudCheckBox(); vchk.Add(chkQuickiev8);
                        chkQuickiev9 = new HudCheckBox(); vchk.Add(chkQuickiev9);
                        chkQuickiev10 = new HudCheckBox(); vchk.Add(chkQuickiev10);
                        chkQuickiev11 = new HudCheckBox(); vchk.Add(chkQuickiev11);

                        quickiesvHud_Head.AddControl(chkQuickiev0, new Rectangle(0, 15, 10, 10));
                        quickiesvHud_Head.AddControl(chkQuickiev1, new Rectangle(0, 30, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev2, new Rectangle(0, 45, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev3, new Rectangle(0, 60, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev4, new Rectangle(0, 75, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev5, new Rectangle(0, 90, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev6, new Rectangle(0, 105, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev7, new Rectangle(0, 120, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev8, new Rectangle(0, 135, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev9, new Rectangle(0, 150, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev10, new Rectangle(0, 165, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev11, new Rectangle(0, 180, 12, 12));

                        quickiesvHud.Moved += (sender, obj) => quickiesvHud_Moved(sender, obj);
                        btnQuickiesvAdd.Hit += (sender, obj) => btnQuickiesvAdd_Hit(sender, obj);
                        btnQuickiesvRemove.Hit += (sender, obj) => btnQuickiesvRemove_Hit(sender, obj);
                        chkQuickiev0.Change += (sender, obj) => chkQuickiev0_Change(sender, obj);
                        chkQuickiev1.Change += (sender, obj) => chkQuickiev1_Change(sender, obj);
                        chkQuickiev2.Change += (sender, obj) => chkQuickiev2_Change(sender, obj);
                        chkQuickiev3.Change += (sender, obj) => chkQuickiev3_Change(sender, obj);
                        chkQuickiev4.Change += (sender, obj) => chkQuickiev4_Change(sender, obj);
                        chkQuickiev5.Change += (sender, obj) => chkQuickiev5_Change(sender, obj);
                        chkQuickiev6.Change += (sender, obj) => chkQuickiev6_Change(sender, obj);
                        chkQuickiev7.Change += (sender, obj) => chkQuickiev7_Change(sender, obj);
                        chkQuickiev8.Change += (sender, obj) => chkQuickiev8_Change(sender, obj);
                        chkQuickiev9.Change += (sender, obj) => chkQuickiev9_Change(sender, obj);
                        chkQuickiev10.Change += (sender, obj) => chkQuickiev10_Change(sender, obj);
                        chkQuickiev11.Change += (sender, obj) => chkQuickiev11_Change(sender, obj);

                        if (xdocQuickSlotsv.Root.HasElements)
                        {
                            doGetData(xdocQuickSlotsv, quickSlotsvFilename);
                        }
                    }
                    catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }

                }
                else if (hudview == quickieshHud)
                {
                   quickieshHud = new VirindiViewService.HudView("HQuickie", 300, 30, new ACImage(Color.Transparent), false);
                    //quickieshHud.Width = 300;
                    //quickieshHud.Height = 25;
                    //quickieshHud.Title = "HQuickie";
                    quickieshHud_Head = new HudFixedLayout();
                     btnQuickieshAdd = new HudButton();
                    btnQuickieshRemove = new HudButton();
                    if (hpt.X == 0) { hpt.X = 240; }
                    if (hpt.Y == 0) { hpt.Y = 300; }

                    doCreateHud(quickieshHud, hpt, quickieshHud_Head, btnQuickieshAdd, btnQuickieshRemove);

                    hst.Add(mQuickStackh0);
                    hst.Add(mQuickStackh1);
                    hst.Add(mQuickStackh2);
                    hst.Add(mQuickStackh3);
                    hst.Add(mQuickStackh4);
                    hst.Add(mQuickStackh5);
                    hst.Add(mQuickStackh6);
                    hst.Add(mQuickStackh7);
                    hst.Add(mQuickStackh8);
                    hst.Add(mQuickStackh9);
                    hst.Add(mQuickStackh10);
                    hst.Add(mQuickStackh11);

                    hID.Add(nQuickieIDh0);
                    hID.Add(nQuickieIDh1);
                    hID.Add(nQuickieIDh2);
                    hID.Add(nQuickieIDh3);
                    hID.Add(nQuickieIDh4);
                    hID.Add(nQuickieIDh5);
                    hID.Add(nQuickieIDh6);
                    hID.Add(nQuickieIDh7);
                    hID.Add(nQuickieIDh8);
                    hID.Add(nQuickieIDh9);
                    hID.Add(nQuickieIDh10);
                    hID.Add(nQuickieIDh11);

                    chkQuickieh0 = new HudCheckBox(); hchk.Add(chkQuickieh0);
                    chkQuickieh1 = new HudCheckBox(); hchk.Add(chkQuickieh1);
                    chkQuickieh2 = new HudCheckBox(); hchk.Add(chkQuickieh2);
                    chkQuickieh3 = new HudCheckBox(); hchk.Add(chkQuickieh3);
                    chkQuickieh4 = new HudCheckBox(); hchk.Add(chkQuickieh4);
                    chkQuickieh5 = new HudCheckBox(); hchk.Add(chkQuickieh5);
                    chkQuickieh6 = new HudCheckBox(); hchk.Add(chkQuickieh6);
                    chkQuickieh7 = new HudCheckBox(); hchk.Add(chkQuickieh7);
                    chkQuickieh8 = new HudCheckBox(); hchk.Add(chkQuickieh8);
                    chkQuickieh9 = new HudCheckBox(); hchk.Add(chkQuickieh9);
                    chkQuickieh10 = new HudCheckBox(); hchk.Add(chkQuickieh10);
                    chkQuickieh11 = new HudCheckBox(); hchk.Add(chkQuickieh11);

                    quickieshHud_Head.AddControl(chkQuickieh0, new Rectangle(30, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh1, new Rectangle(45, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh2, new Rectangle(60, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh3, new Rectangle(75, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh5, new Rectangle(95, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh6, new Rectangle(110, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh7, new Rectangle(125, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh8, new Rectangle(140, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh9, new Rectangle(155, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh10, new Rectangle(170, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh11, new Rectangle(185, 15, 12, 12));

                    quickieshHud.Moved += (sender, obj) => quickieshHud_Moved(sender, obj);
                    btnQuickieshAdd.Hit += (sender, obj) => btnQuickieshAdd_Hit(sender, obj);
                    btnQuickieshRemove.Hit += (sender, obj) => btnQuickieshRemove_Hit(sender, obj);
                    chkQuickieh0.Change += (sender, obj) => chkQuickieh0_Change(sender, obj);
                    chkQuickieh1.Change += (sender, obj) => chkQuickieh1_Change(sender, obj);
                    chkQuickieh2.Change += (sender, obj) => chkQuickieh2_Change(sender, obj);
                    chkQuickieh3.Change += (sender, obj) => chkQuickieh3_Change(sender, obj);
                    chkQuickieh4.Change += (sender, obj) => chkQuickieh4_Change(sender, obj);
                    chkQuickieh5.Change += (sender, obj) => chkQuickieh5_Change(sender, obj);
                    chkQuickieh6.Change += (sender, obj) => chkQuickieh6_Change(sender, obj);
                    chkQuickieh7.Change += (sender, obj) => chkQuickieh7_Change(sender, obj);
                    chkQuickieh8.Change += (sender, obj) => chkQuickieh8_Change(sender, obj);
                    chkQuickieh9.Change += (sender, obj) => chkQuickieh9_Change(sender, obj);
                    chkQuickieh10.Change += (sender, obj) => chkQuickieh10_Change(sender, obj);
                    chkQuickieh11.Change += (sender, obj) => chkQuickieh11_Change(sender, obj);

                    if (xdocQuickSlotsh.Root.HasElements)
                    {
                        doGetData(xdocQuickSlotsh, quickSlotshFilename);
                    }

                }

                Decal.Adapter.CoreManager.Current.ItemSelected += new EventHandler<ItemSelectedEventArgs>(Current_ItemSelected);
                CoreManager.Current.RenderFrame += new EventHandler<EventArgs>(Current_RenderFrame);

            }
            catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }
        }
Esempio n. 26
0
        private void RenderChiefGearInspectPageMenuTabReqSpells()
        {
            try
            {
                HudStaticText lblCurrentSpells = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblCurrentSpells.Text = "Current Spells";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lblCurrentSpells, new Rectangle(5, 0, 130, 16));

                lstRuleSpellsEnabled = new HudList();
                lstRuleSpellsEnabledListRow = new HudList.HudListRowAccessor();

                ChiefGearInspectPageMenuTabReqSpells.AddControl(lstRuleSpellsEnabled, new Rectangle(5, 20, 220, 200));
                lstRuleSpellsEnabled.AddColumn(typeof(HudCheckBox), 5, null);
                lstRuleSpellsEnabled.AddColumn(typeof(HudStaticText), 195, null);
                lstRuleSpellsEnabled.AddColumn(typeof(HudStaticText), 1, null);

                HudStaticText lblRuleMoreSpells = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleMoreSpells.Text = "Available Spells";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lblRuleMoreSpells, new Rectangle(250, 0, 180, 16));

                lstRuleSpells = new HudList();
                lstRuleSpellsListRow = new HudList.HudListRowAccessor();

                ChiefGearInspectPageMenuTabReqSpells.AddControl(lstRuleSpells, new Rectangle(250, 20, 250, 200));
                lstRuleSpells.AddColumn(typeof(HudCheckBox), 5, null);
                lstRuleSpells.AddColumn(typeof(HudStaticText), 195, null);
                lstRuleSpells.AddColumn(typeof(HudStaticText), 1, null);

                HudStaticText lblRuleFilterSpells = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleFilterSpells.Text = "Filter Spells by:";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lblRuleFilterSpells, new Rectangle(5, 230, 130, 16));

                chkRuleFilterlvl8 = new HudCheckBox();
                chkRuleFilterlvl8.Text = "lvl 8";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterlvl8, new Rectangle(5, 250, 70, 16));
                chkRuleFilterlvl8.Checked = false;

                chkRuleFilterLegend = new HudCheckBox();
                chkRuleFilterLegend.Text = "Legendary";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterLegend, new Rectangle(80, 250, 70, 16));
                chkRuleFilterLegend.Checked = false;

                chkRuleFilterEpic = new HudCheckBox();
                chkRuleFilterEpic.Text = "Epic";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterEpic, new Rectangle(160, 250, 70, 16));
                chkRuleFilterEpic.Checked = false;

                chkRuleFilterMajor = new HudCheckBox();
                chkRuleFilterMajor.Text = "Major";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterMajor, new Rectangle(240, 250, 70, 16));
                chkRuleFilterMajor.Checked = false;

                chkRuleFilterCloak = new HudCheckBox();
                chkRuleFilterCloak.Text = "Cloak";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(chkRuleFilterCloak, new Rectangle(320, 250, 70, 16));
                chkRuleFilterCloak.Checked = false;

                SubscribeChiefGearInspectPageMenuTabViewPageSearchRuleReqSpellsEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
        private void RenderHorizontalQuickSlots()
        {
            WriteToChat("I am in the function to render horizontal quickslots");

            if (quickieshHud != null)
            {
                DisposeHorizontalQuickSlots();
            }

             if (!File.Exists(quickSlotshFilename))
                {
                    XDocument tempDoc = new XDocument(new XElement("Objs"));
                    tempDoc.Save(quickSlotshFilename);
                    tempDoc = null;
                }

                xdocQuickSlotsh = XDocument.Load(quickSlotshFilename);

                if (hpt.X == 0) { hpt.X = 200; }
                if (hpt.Y == 0) { hpt.Y = 200; }

            quickieshHud = new VirindiViewService.HudView("", 340, 30, new ACImage(Color.Transparent));
            quickieshHud.ShowInBar = false;
            quickieshHud.UserAlphaChangeable = false;
            quickieshHud.Visible = true;
            quickieshHud.UserGhostable = true;
            quickieshHud.UserMinimizable = false;
            quickieshHud.UserResizeable = false;
            quickieshHud.Location = hpt;
            //if (mhtheme == null)
            //    mhtheme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");
            //quickieshHud.Theme = mhtheme;

            //  quickieshHud.Theme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");

            quickieshHud_Head = new HudFixedLayout();
            quickieshHud.Controls.HeadControl = quickieshHud_Head;

            btnQuickieshAdd = new VirindiViewService.Controls.HudButton();
            btnQuickieshAdd.Text = "+";
            btnQuickieshAdd.Visible = true;

            btnQuickieshRemove = new VirindiViewService.Controls.HudButton();
            btnQuickieshRemove.Text = "-";
            btnQuickieshRemove.Visible = true;

            quickieshHud_Head.AddControl(btnQuickieshAdd, new Rectangle(0, 0, 12, 12));
            quickieshHud_Head.AddControl(btnQuickieshRemove, new Rectangle(15, 0, 12, 12));

            mQuickStackh0 = new HudImageStack();
            mQuickStackh1 = new HudImageStack();
            mQuickStackh2 = new HudImageStack();
            mQuickStackh3 = new HudImageStack();
            mQuickStackh4 = new HudImageStack();
            mQuickStackh5 = new HudImageStack();
            mQuickStackh6 = new HudImageStack();
            mQuickStackh7 = new HudImageStack();
            mQuickStackh8 = new HudImageStack();
            mQuickStackh9 = new HudImageStack();
            mQuickStackh10 = new HudImageStack();
            mQuickStackh11 = new HudImageStack();
            mQuickStackh12 = new HudImageStack();
            mQuickStackh13 = new HudImageStack();
            mQuickStackh14 = new HudImageStack();

            chkQuickieh0 = new HudCheckBox();
            chkQuickieh1 = new HudCheckBox();
            chkQuickieh2 = new HudCheckBox();
            chkQuickieh3 = new HudCheckBox();
            chkQuickieh4 = new HudCheckBox();
            chkQuickieh5 = new HudCheckBox();
            chkQuickieh6 = new HudCheckBox();
            chkQuickieh7 = new HudCheckBox();
            chkQuickieh8 = new HudCheckBox();
            chkQuickieh9 = new HudCheckBox();
            chkQuickieh10 = new HudCheckBox();
            chkQuickieh11 = new HudCheckBox();
            chkQuickieh12 = new HudCheckBox();
            chkQuickieh13 = new HudCheckBox();
            chkQuickieh14 = new HudCheckBox();

            hst.Add(mQuickStackh0);
            hst.Add(mQuickStackh1);
            hst.Add(mQuickStackh2);
            hst.Add(mQuickStackh3);
            hst.Add(mQuickStackh4);
            hst.Add(mQuickStackh5);
            hst.Add(mQuickStackh6);
            hst.Add(mQuickStackh7);
            hst.Add(mQuickStackh8);
            hst.Add(mQuickStackh9);
            hst.Add(mQuickStackh10);
            hst.Add(mQuickStackh11);
            hst.Add(mQuickStackh12);
            hst.Add(mQuickStackh13);
            hst.Add(mQuickStackh14);

            hID.Add(nQuickieIDh0);
            hID.Add(nQuickieIDh1);
            hID.Add(nQuickieIDh2);
            hID.Add(nQuickieIDh3);
            hID.Add(nQuickieIDh4);
            hID.Add(nQuickieIDh5);
            hID.Add(nQuickieIDh6);
            hID.Add(nQuickieIDh7);
            hID.Add(nQuickieIDh8);
            hID.Add(nQuickieIDh9);
            hID.Add(nQuickieIDh10);
            hID.Add(nQuickieIDh11);
            hID.Add(nQuickieIDh12);
            hID.Add(nQuickieIDh13);
            hID.Add(nQuickieIDh14);

            chkQuickieh0 = new HudCheckBox(); hchk.Add(chkQuickieh0);
            chkQuickieh1 = new HudCheckBox(); hchk.Add(chkQuickieh1);
            chkQuickieh2 = new HudCheckBox(); hchk.Add(chkQuickieh2);
            chkQuickieh3 = new HudCheckBox(); hchk.Add(chkQuickieh3);
            chkQuickieh4 = new HudCheckBox(); hchk.Add(chkQuickieh4);
            chkQuickieh5 = new HudCheckBox(); hchk.Add(chkQuickieh5);
            chkQuickieh6 = new HudCheckBox(); hchk.Add(chkQuickieh6);
            chkQuickieh7 = new HudCheckBox(); hchk.Add(chkQuickieh7);
            chkQuickieh8 = new HudCheckBox(); hchk.Add(chkQuickieh8);
            chkQuickieh9 = new HudCheckBox(); hchk.Add(chkQuickieh9);
            chkQuickieh10 = new HudCheckBox(); hchk.Add(chkQuickieh10);
            chkQuickieh11 = new HudCheckBox(); hchk.Add(chkQuickieh11);
            chkQuickieh12= new HudCheckBox(); hchk.Add(chkQuickieh12);
            chkQuickieh13 = new HudCheckBox(); hchk.Add(chkQuickieh13);
            chkQuickieh14 = new HudCheckBox(); hchk.Add(chkQuickieh14);

            quickieshHud_Head.AddControl(chkQuickieh0, new Rectangle(30, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh1, new Rectangle(50, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh2, new Rectangle(70, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh3, new Rectangle(90, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh4, new Rectangle(110, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh5, new Rectangle(130, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh6, new Rectangle(150, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh7, new Rectangle(170, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh8, new Rectangle(190, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh9, new Rectangle(210, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh10, new Rectangle(230, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh11, new Rectangle(250, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh12, new Rectangle(270, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh13, new Rectangle(290, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh14, new Rectangle(310, 20, 20, 10));

            quickieshHud.ThemeChanged += (sender, obj) => quickieshHud_ThemeChanged(sender, obj);
            quickieshHud.Moved += (sender, obj) => quickieshHud_Moved(sender, obj);
            btnQuickieshAdd.Hit += (sender, obj) => btnQuickieshAdd_Hit(sender, obj);
            btnQuickieshRemove.Hit += (sender, obj) => btnQuickieshRemove_Hit(sender, obj);
            chkQuickieh0.Change += (sender, obj) => chkQuickieh0_Change(sender, obj);
            chkQuickieh1.Change += (sender, obj) => chkQuickieh1_Change(sender, obj);
            chkQuickieh2.Change += (sender, obj) => chkQuickieh2_Change(sender, obj);
            chkQuickieh3.Change += (sender, obj) => chkQuickieh3_Change(sender, obj);
            chkQuickieh4.Change += (sender, obj) => chkQuickieh4_Change(sender, obj);
            chkQuickieh5.Change += (sender, obj) => chkQuickieh5_Change(sender, obj);
            chkQuickieh6.Change += (sender, obj) => chkQuickieh6_Change(sender, obj);
            chkQuickieh7.Change += (sender, obj) => chkQuickieh7_Change(sender, obj);
            chkQuickieh8.Change += (sender, obj) => chkQuickieh8_Change(sender, obj);
            chkQuickieh9.Change += (sender, obj) => chkQuickieh9_Change(sender, obj);
            chkQuickieh10.Change += (sender, obj) => chkQuickieh10_Change(sender, obj);
            chkQuickieh11.Change += (sender, obj) => chkQuickieh11_Change(sender, obj);
            chkQuickieh12.Change += (sender, obj) => chkQuickieh12_Change(sender, obj);
            chkQuickieh13.Change += (sender, obj) => chkQuickieh13_Change(sender, obj);
            chkQuickieh14.Change += (sender, obj) => chkQuickieh14_Change(sender, obj);

            if (xdocQuickSlotsh.Root.HasElements)
            {
                doGetData(xdocQuickSlotsh, quickSlotshFilename);
            }
        }
Esempio n. 28
0
        private void RenderChiefGearSoundsTab()
        {
            try
            {
                chkMuteSounds = new HudCheckBox();
                chkMuteSounds.Text = "Mute Sound Effects";
                ChiefGearHudSounds.AddControl(chkMuteSounds, new Rectangle(8, 5, 115, 20));

                lblLandscapeHud = new HudStaticText();
                lblLandscapeHud.Text = "Gear Sense Sounds:";
                ChiefGearHudSounds.AddControl(lblLandscapeHud, new Rectangle(8, 30, 200, 16));

                ControlGroup cboTrophyLandscapeChoices = new ControlGroup();
                cboTrophyLandscape = new HudCombo(cboTrophyLandscapeChoices);
                ChiefGearHudSounds.AddControl(cboTrophyLandscape, new Rectangle(5, 55, 125, 20));
                lblSound1 = new HudStaticText();
                lblSound1.Text = "Trophies";
                ChiefGearHudSounds.AddControl(lblSound1, new Rectangle(135, 55, 250, 16));
                ControlGroup cboMobLandscapeChoices = new ControlGroup();

                cboMobLandscape = new HudCombo(cboMobLandscapeChoices);
                ChiefGearHudSounds.AddControl(cboMobLandscape, new Rectangle(5, 80, 125, 20));
                lblSound2 = new HudStaticText();
                lblSound2.Text = "Mobs";
                ChiefGearHudSounds.AddControl(lblSound2, new Rectangle(135, 80, 250, 16));

                ControlGroup cboPlayerLandscapeChoices = new ControlGroup();
                cboPlayerLandscape = new HudCombo(cboPlayerLandscapeChoices);
                ChiefGearHudSounds.AddControl(cboPlayerLandscape, new Rectangle(5, 105, 125, 20));
                lblSound3 = new HudStaticText();
                lblSound3.Text = "Players";
                ChiefGearHudSounds.AddControl(lblSound3, new Rectangle(135, 105, 250, 16));

                lblCorpseHud = new HudStaticText();
                lblCorpseHud.Text = "GearVisection Sounds:";
                ChiefGearHudSounds.AddControl(lblCorpseHud, new Rectangle(8, 140, 200, 16));

                ControlGroup cboCorpseRareChoices = new ControlGroup();
                cboCorpseRare = new HudCombo(cboCorpseRareChoices);
                ChiefGearHudSounds.AddControl(cboCorpseRare, new Rectangle(5, 165, 125, 20));
                lblSound4 = new HudStaticText();
                lblSound4.Text = "Corpse with Rare";
                ChiefGearHudSounds.AddControl(lblSound4, new Rectangle(135, 165, 250, 16));

                ControlGroup cboCorpseSelfKillChoices = new ControlGroup();
                cboCorpseSelfKill = new HudCombo(cboCorpseSelfKillChoices);
                ChiefGearHudSounds.AddControl(cboCorpseSelfKill, new Rectangle(5, 190, 125, 20));

                lblSound5 = new HudStaticText();
                lblSound5.Text = "Lootable Corpse";
                ChiefGearHudSounds.AddControl(lblSound5, new Rectangle(130, 190, 250, 16));

                ControlGroup cboCorpseFellowKillChoices = new ControlGroup();
                cboCorpseFellowKill = new HudCombo(cboCorpseFellowKillChoices);
                ChiefGearHudSounds.AddControl(cboCorpseFellowKill, new Rectangle(5, 215, 125, 20));

                lblSound6 = new HudStaticText();
                lblSound6.Text = "Lootable Corpse by Fellow";
                ChiefGearHudSounds.AddControl(lblSound6, new Rectangle(130, 215, 250, 16));

                ControlGroup cboDeadMeChoices = new ControlGroup();
                cboDeadMe = new    HudCombo(cboDeadMeChoices);
                ChiefGearHudSounds.AddControl(cboDeadMe, new Rectangle(5, 240, 125, 20));

                lblSound7 = new HudStaticText();
                lblSound7.Text = "Dead Me";
                ChiefGearHudSounds.AddControl(lblSound7, new Rectangle(130, 240, 250, 16));

                ControlGroup cboDeadPermittedChoices = new ControlGroup();
                cboDeadPermitted = new HudCombo(cboDeadPermittedChoices);
                ChiefGearHudSounds.AddControl(cboDeadPermitted, new Rectangle(5, 265, 125, 20));

                lblSound8 = new HudStaticText();
                lblSound8.Text = "Recovery Corpse";
                ChiefGearHudSounds.AddControl(lblSound8, new Rectangle(130, 265, 250, 16));

                lblInspectorHud = new HudStaticText();
                lblInspectorHud.Text = "GearInspector Sounds:";
                ChiefGearHudSounds.AddControl(lblInspectorHud, new Rectangle(8, 295, 200, 16));

                ControlGroup cboTrophyCorpseChoices = new ControlGroup();
                cboTrophyCorpse = new HudCombo(cboTrophyCorpseChoices);
                ChiefGearHudSounds.AddControl(cboTrophyCorpse, new Rectangle(5, 320, 125, 20));

                lblSound9 = new HudStaticText();
                lblSound9.Text = "Trophies";
                ChiefGearHudSounds.AddControl(lblSound9, new Rectangle(130, 320, 250, 16));

                ControlGroup cboRuleCorpseChoices = new ControlGroup();
                cboRuleCorpse = new    HudCombo(cboRuleCorpseChoices);
                ChiefGearHudSounds.AddControl(cboRuleCorpse, new Rectangle(5, 345, 125, 20));

                lblSound10 = new HudStaticText();
                lblSound10.Text = "Rule";
                ChiefGearHudSounds.AddControl(lblSound10, new Rectangle(130, 345, 250, 16));

                ControlGroup cboSalvageCorpseChoices = new ControlGroup();
                cboSalvageCorpse = new    HudCombo(cboSalvageCorpseChoices);
                ChiefGearHudSounds.AddControl(cboSalvageCorpse, new Rectangle(5, 370, 125, 20));

                lblSound11 = new HudStaticText();
                lblSound11.Text = "Salvage";
                ChiefGearHudSounds.AddControl(lblSound11, new Rectangle(130, 370, 250, 16));

                for(int i = 0; i < SoundList.Count; i++)
                {
                    cboMobLandscape.AddItem(SoundList[i].name, i);
                    cboPlayerLandscape.AddItem(SoundList[i].name, i);
                    cboCorpseRare.AddItem(SoundList[i].name, i);
                    cboCorpseSelfKill.AddItem(SoundList[i].name, i);
                    cboCorpseFellowKill.AddItem(SoundList[i].name, i);
                    cboDeadMe.AddItem(SoundList[i].name, i);
                    cboDeadPermitted.AddItem(SoundList[i].name, i);
                    cboTrophyCorpse.AddItem(SoundList[i].name, i);
                    cboRuleCorpse.AddItem(SoundList[i].name, i);
                    cboSalvageCorpse.AddItem(SoundList[i].name, i);
                    cboTrophyLandscape.AddItem(SoundList[i].name, i);
                }

                chkMuteSounds.Change += chkMuteSounds_Change;
                cboTrophyLandscape.Change += cboTrophyLandscape_Change;
                cboMobLandscape.Change += cboMobLandscape_Change;
                cboPlayerLandscape.Change += cboPlayerLandscape_Change;
                cboCorpseRare.Change += cboCorpseRare_Change;
                cboCorpseSelfKill.Change += cboCorpseSelfKill_Change;
                cboCorpseFellowKill.Change += cboCorpseFellowKill_Change;
                cboDeadMe.Change += cboDeadMe_Change;
                cboDeadPermitted.Change += cboDeadPermitted_Change;
                cboTrophyCorpse.Change += cboTrophyCorpse_Change;
                cboRuleCorpse.Change += cboRuleCorpse_Change;
                cboSalvageCorpse.Change += cboSalvageCorpse_Change;

                UpdateSoundPanel();

            }catch(Exception ex){LogError(ex);}
        }
        private void RenderVerticalQuickSlots()
        {
            WriteToChat("I am in the function to render vertical quickslots");

            if (quickiesvHud != null)
            {
                DisposeVerticalQuickSlots();
            }
            if (!File.Exists(quickSlotsvFilename))
            {
                XDocument tempDoc = new XDocument(new XElement("Objs"));
                tempDoc.Save(quickSlotsvFilename);
                tempDoc = null;
            }

            xdocQuickSlotsv = XDocument.Load(quickSlotsvFilename);

            if (vpt.X == 0) { vpt.X = 200; }
            if (vpt.Y == 0) { vpt.Y = 200; }

            quickiesvHud = new VirindiViewService.HudView("", 30, 340, new ACImage(Color.Transparent));
            quickiesvHud.ShowInBar = false;
            quickiesvHud.UserAlphaChangeable = false;
            quickiesvHud.Visible = true;
            quickiesvHud.UserGhostable = true;
            quickiesvHud.UserMinimizable = false;
            quickiesvHud.UserResizeable = false;
            quickiesvHud.Location = vpt;
            if (mvtheme == null)
                {mvtheme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");}
            quickiesvHud.Theme = mvtheme;
            quickiesvHud_Head = new HudFixedLayout();
            quickiesvHud.Controls.HeadControl = quickiesvHud_Head;

            quickiesvTabView = new HudTabView();
            quickiesvTabFixedLayout = new HudFixedLayout();

            quickiesvHud_Head.AddControl(quickiesvTabView, new Rectangle(0,0,30,300));
            quickiesvTabView.AddTab(quickiesvTabFixedLayout,null);

            btnQuickiesvAdd = new VirindiViewService.Controls.HudButton();
            btnQuickiesvAdd.Text = "+";
            btnQuickiesvAdd.Visible = true;

            btnQuickiesvRemove = new VirindiViewService.Controls.HudButton();
            btnQuickiesvRemove.Text = "-";
            btnQuickiesvRemove.Visible = true;

            quickiesvTabFixedLayout.AddControl(btnQuickiesvAdd, new Rectangle(0, 0, 12, 12));
            quickiesvTabFixedLayout.AddControl(btnQuickiesvRemove, new Rectangle(15, 0, 12, 12));

            mQuickStackv0 = new HudImageStack();
            mQuickStackv1 = new HudImageStack();
            mQuickStackv2 = new HudImageStack();
            mQuickStackv3 = new HudImageStack();
            mQuickStackv4 = new HudImageStack();
            mQuickStackv5 = new HudImageStack();
            mQuickStackv6 = new HudImageStack();
            mQuickStackv7 = new HudImageStack();
            mQuickStackv8 = new HudImageStack();
            mQuickStackv9 = new HudImageStack();
            mQuickStackv10 = new HudImageStack();
            mQuickStackv11 = new HudImageStack();
            mQuickStackv12 = new HudImageStack();
            mQuickStackv13 = new HudImageStack();
            mQuickStackv14 = new HudImageStack();

            chkQuickiev0 = new HudCheckBox();
            chkQuickiev1 = new HudCheckBox();
            chkQuickiev2 = new HudCheckBox();
            chkQuickiev3 = new HudCheckBox();
            chkQuickiev4 = new HudCheckBox();
            chkQuickiev5 = new HudCheckBox();
            chkQuickiev6 = new HudCheckBox();
            chkQuickiev7 = new HudCheckBox();
            chkQuickiev8 = new HudCheckBox();
            chkQuickiev9 = new HudCheckBox();
            chkQuickiev10 = new HudCheckBox();
            chkQuickiev11 = new HudCheckBox();
            chkQuickiev12 = new HudCheckBox();
            chkQuickiev13 = new HudCheckBox();
            chkQuickiev14 = new HudCheckBox();

            vst.Add(mQuickStackv0);
            vst.Add(mQuickStackv1);
            vst.Add(mQuickStackv2);
            vst.Add(mQuickStackv3);
            vst.Add(mQuickStackv4);
            vst.Add(mQuickStackv5);
            vst.Add(mQuickStackv6);
            vst.Add(mQuickStackv7);
            vst.Add(mQuickStackv8);
            vst.Add(mQuickStackv9);
            vst.Add(mQuickStackv10);
            vst.Add(mQuickStackv11);
            vst.Add(mQuickStackv12);
            vst.Add(mQuickStackv13);
            vst.Add(mQuickStackv14);

            vID.Add(nQuickieIDv0);
            vID.Add(nQuickieIDv1);
            vID.Add(nQuickieIDv2);
            vID.Add(nQuickieIDv3);
            vID.Add(nQuickieIDv4);
            vID.Add(nQuickieIDv5);
            vID.Add(nQuickieIDv6);
            vID.Add(nQuickieIDv7);
            vID.Add(nQuickieIDv8);
            vID.Add(nQuickieIDv9);
            vID.Add(nQuickieIDv10);
            vID.Add(nQuickieIDv11);
            vID.Add(nQuickieIDv12);
            vID.Add(nQuickieIDv13);
            vID.Add(nQuickieIDv14);

            chkQuickiev0 = new HudCheckBox(); vchk.Add(chkQuickiev0);
            chkQuickiev1 = new HudCheckBox(); vchk.Add(chkQuickiev1);
            chkQuickiev2 = new HudCheckBox(); vchk.Add(chkQuickiev2);
            chkQuickiev3 = new HudCheckBox(); vchk.Add(chkQuickiev3);
            chkQuickiev4 = new HudCheckBox(); vchk.Add(chkQuickiev4);
            chkQuickiev5 = new HudCheckBox(); vchk.Add(chkQuickiev5);
            chkQuickiev6 = new HudCheckBox(); vchk.Add(chkQuickiev6);
            chkQuickiev7 = new HudCheckBox(); vchk.Add(chkQuickiev7);
            chkQuickiev8 = new HudCheckBox(); vchk.Add(chkQuickiev8);
            chkQuickiev9 = new HudCheckBox(); vchk.Add(chkQuickiev9);
            chkQuickiev10 = new HudCheckBox(); vchk.Add(chkQuickiev10);
            chkQuickiev11 = new HudCheckBox(); vchk.Add(chkQuickiev11);
            chkQuickiev12= new HudCheckBox(); vchk.Add(chkQuickiev12);
            chkQuickiev13 = new HudCheckBox(); vchk.Add(chkQuickiev13);
            chkQuickiev14 = new HudCheckBox(); vchk.Add(chkQuickiev14);

            quickiesvHud_Head.AddControl(chkQuickiev0, new Rectangle(0, 15, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev1, new Rectangle(0, 35, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev2, new Rectangle(0, 55, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev3, new Rectangle(0, 75, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev4, new Rectangle(0, 95, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev5, new Rectangle(0, 115, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev6, new Rectangle(0, 135, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev7, new Rectangle(0, 150, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev8, new Rectangle(0, 175, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev9, new Rectangle(0, 195, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev10, new Rectangle(0, 215, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev11, new Rectangle(0, 235, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev12, new Rectangle(0, 255, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev13, new Rectangle(0, 275, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev14, new Rectangle(0, 295, 10, 20));

            mQuickStackv0.Hit += (sender,obj) => mQuickStackv0_Hit(sender,obj);
            quickiesvHud.ThemeChanged += (sender, obj) => quickiesvHud_ThemeChanged(sender, obj);
            quickiesvHud.Moved += (sender, obj) => quickiesvHud_Moved(sender, obj);
            btnQuickiesvAdd.Hit += (sender, obj) => btnQuickiesvAdd_Hit(sender, obj);
            btnQuickiesvRemove.Hit += (sender, obj) => btnQuickiesvRemove_Hit(sender, obj);
               chkQuickiev0.Change += (sender, obj) => chkQuickiev0_Change(sender, obj);
            chkQuickiev1.Change += (sender, obj) => chkQuickiev1_Change(sender, obj);
            chkQuickiev2.Change += (sender, obj) => chkQuickiev2_Change(sender, obj);
            chkQuickiev3.Change += (sender, obj) => chkQuickiev3_Change(sender, obj);
            chkQuickiev4.Change += (sender, obj) => chkQuickiev4_Change(sender, obj);
            chkQuickiev5.Change += (sender, obj) => chkQuickiev5_Change(sender, obj);
            chkQuickiev6.Change += (sender, obj) => chkQuickiev6_Change(sender, obj);
            chkQuickiev7.Change += (sender, obj) => chkQuickiev7_Change(sender, obj);
            chkQuickiev8.Change += (sender, obj) => chkQuickiev8_Change(sender, obj);
            chkQuickiev9.Change += (sender, obj) => chkQuickiev9_Change(sender, obj);
            chkQuickiev10.Change += (sender, obj) => chkQuickiev10_Change(sender, obj);
            chkQuickiev11.Change += (sender, obj) => chkQuickiev11_Change(sender, obj);
            chkQuickiev12.Change += (sender, obj) => chkQuickiev12_Change(sender, obj);
            chkQuickiev13.Change += (sender, obj) => chkQuickiev13_Change(sender, obj);
            chkQuickiev14.Change += (sender, obj) => chkQuickiev14_Change(sender, obj);
            mQuickStackv0.Hit += (sender, obj) => mQuickStackv0_Hit(sender, obj);

            if (xdocQuickSlotsv.Root.HasElements)
            {
                doGetData(xdocQuickSlotsv, quickSlotsvFilename);
            }
        }
Esempio n. 30
0
        private void RenderTacticianHud()
        {
            try
            {

                if(TacticianHudView != null)
                {
                    DisposeTacticianHud();
                }

                TacticianHudView = new HudView("GearTactician", mGeneralSettings.GearWindowSettings.CombatHudWidth, mGeneralSettings.GearWindowSettings.CombatHudHeight, new ACImage(0x6AA8));
                TacticianHudView.Visible = true;
                TacticianHudView.UserAlphaChangeable = false;
                TacticianHudView.ShowInBar = false;
                TacticianHudView.UserClickThroughable = false;
                TacticianHudView.UserMinimizable = true;
                TacticianHudView.UserResizeable = true;
                TacticianHudView.LoadUserSettings();

                TacticianHudTabView = new HudTabView();
                TacticianHudView.Controls.HeadControl = TacticianHudTabView;

                TacticianTabLayout = new HudFixedLayout();
                TacticianHudTabView.AddTab(TacticianTabLayout, "GearTactician");

                TacticianLabel1 = new HudStaticText();
                TacticianTabLayout.AddControl(TacticianLabel1, new Rectangle(0,0,75,16));
                TacticianLabel1.Text = "Health";

                TacticianLabel2 = new HudStaticText();
                TacticianTabLayout.AddControl(TacticianLabel2, new Rectangle(110,0,40,16));
                TacticianLabel2.Text = "F";

                TacticianLabel3 = new HudStaticText();
                TacticianTabLayout.AddControl(TacticianLabel3, new Rectangle(TacticianHudView.Width - 100, 0,75,16));
                TacticianLabel3.Text = "Active Debuffs";

                TacticianDiplayList = new HudList();
                TacticianTabLayout.AddControl(TacticianDiplayList, new Rectangle(0,20,TacticianHudView.Width, TacticianHudView.Height));
                TacticianDiplayList.ControlHeight = 16;
                TacticianDiplayList.AddColumn(typeof(HudProgressBar), 100, null);
                TacticianDiplayList.AddColumn(typeof(HudButton), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null);
                TacticianDiplayList.AddColumn(typeof(HudStaticText), 1, null);

                TacticianSettingsLayout = new HudFixedLayout();
                TacticianHudTabView.AddTab(TacticianSettingsLayout, "Settings");

                TacticianTrackCreature = new HudCheckBox();
                TacticianTrackCreature.Text = "Creature Debuffs";
                TacticianTrackCreature.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackCreatureDebuffs;
                TacticianSettingsLayout.AddControl(TacticianTrackCreature, new Rectangle(0,0,100,16));

                TacticianTrackItem = new HudCheckBox();
                TacticianTrackItem.Text = "Item Debuffs";
                TacticianTrackItem.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackItemDebuffs;
                TacticianSettingsLayout.AddControl(TacticianTrackItem, new Rectangle(0,20,100,16));

                TacticianTrackLife = new HudCheckBox();
                TacticianTrackLife.Text = "Life Debuffs";
                TacticianTrackLife.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackLifeDebuffs;
                TacticianSettingsLayout.AddControl(TacticianTrackLife, new Rectangle(0,40,100,16));

                TacticianTrackVoid = new HudCheckBox();
                TacticianTrackVoid.Text = "Void Debuffs";
                TacticianTrackVoid.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackVoidDebuffs;
                TacticianSettingsLayout.AddControl(TacticianTrackVoid, new Rectangle(0,60,100,16));

                TacticianShowAll = new HudCheckBox();
                TacticianShowAll.Text = "Show All Mobs";
                TacticianShowAll.Checked = mGeneralSettings.GearTacticianSettings.bShowAll;
                TacticianSettingsLayout.AddControl(TacticianShowAll, new Rectangle(0,80,100,16));

                TacticianCurrentTargetBar = new HudCheckBox();
                TacticianCurrentTargetBar.Text =  "Show Current Target Bar";
                TacticianCurrentTargetBar.Checked = mGeneralSettings.GearTacticianSettings.RenderCurrentTargetDebuffView;
                TacticianSettingsLayout.AddControl(TacticianCurrentTargetBar, new Rectangle(0,100,200,16));

                TacticianDiplayList.Click += TacticianDiplayList_Click;
                TacticianHudView.VisibleChanged += TacticianHudView_VisibleChanged;
                TacticianHudView.Resize += TacticianHudView_Resize;

                TacticianTrackCreature.Change += TacticianTrackCreature_Change;
                TacticianTrackItem.Change += TacticianTrackItem_Change;
                TacticianTrackLife.Change += TacticianTrackLife_Change;
                TacticianTrackVoid.Change += TacticianTrackVoid_Change;
                TacticianShowAll.Change += TacticianShowAll_Change;
                TacticianCurrentTargetBar.Change += TacticianCurrentTargetBar_Chanage;

                UpdateTactician();

            }catch(Exception ex){LogError(ex);}
        }
Esempio n. 31
0
        public static void ViewInit()
        {
            VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
            parser.ParseFromResource("mudsort.mainView.xml", out properties, out controls);
            View = new VirindiViewService.HudView(properties, controls);

            edtSourceContainer = View != null ? (HudTextBox)View["edtSourceContainer"]    : new HudTextBox();
            edtDestContainer   = View != null ? (HudTextBox)View["edtDestContainer"]      : new HudTextBox();
            edtInsertion       = View != null ? (HudTextBox)View["edtInsertion"]          : new HudTextBox();
            cmbObjClassFilters = View != null ? (HudCombo)View["cmbObjClassFilters"]    : new HudCombo(new ControlGroup());
            edtSortString      = View != null ? (HudTextBox)View["edtSortString"]         : new HudTextBox();
            prgProgressBar     = View != null ? (HudProgressBar)View["prgProgressBar"]        : new HudProgressBar();
            btnActivate        = View != null ? (HudButton)View["btnActivate"]           : new HudButton();

            cmbSortListFilters = View != null ? (HudCombo)View["cmbSortListFilters"] : new HudCombo(new ControlGroup());
            lstSortSettings    = View != null ? (HudList)View["lstSortSettings"]     : new HudList();

            chkIdentifyOnLogin  = View != null ? (HudCheckBox)View["chkIdentifyOnLogin"] : new HudCheckBox();
            chkReverseSortList  = View != null ? (HudCheckBox)View["chkReverseSortList"] : new HudCheckBox();
            edtSavedSortString1 = View != null ? (HudTextBox)View["edtSavedSortString1"] : new HudTextBox();
            edtSavedSortString2 = View != null ? (HudTextBox)View["edtSavedSortString2"] : new HudTextBox();
            edtSavedSortString3 = View != null ? (HudTextBox)View["edtSavedSortString3"] : new HudTextBox();

            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnSourceContainer"], "Sets the source Backpack/Person/Chest for sorting to your current Selection");
            VirindiViewService.TooltipSystem.AssociateTooltip(edtSourceContainer, "The Backpack/Person/Chest the items will move from when sorted (Default = Your Character ID)");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnDestContainer"], "Sets the destination Backpack/Person/Chest for sorting to your current Selection");
            VirindiViewService.TooltipSystem.AssociateTooltip(edtDestContainer, "The Backpack/Person/Chest the items will move to when sorted (Default = Your Character ID)");
            VirindiViewService.TooltipSystem.AssociateTooltip(edtInsertion, "The slot # you wish to start inserting at when sorting (Default = 0)");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySortString"], "Copies the Sort String below to your clipboard");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSortString"], "Pastes the contents of your clipboard into the box below");
            VirindiViewService.TooltipSystem.AssociateTooltip(edtSortString, "The Sort String to use when sorting. (Use Build tab to create a new one)");
            VirindiViewService.TooltipSystem.AssociateTooltip(cmbObjClassFilters, "Limit sorting to specific types of items");
            VirindiViewService.TooltipSystem.AssociateTooltip(btnActivate, "Begins the sorting process. Press again to cancel.");

            VirindiViewService.TooltipSystem.AssociateTooltip(cmbSortListFilters, "Limit filter based on key type");

            VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderCode"], "Sort Flag Code (Used in Sort String)");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderName"], "Sort Flag Name");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderUp"], "Increase Sort Flag Priority");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderDown"], "Lower Sort Flag Priority");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderAdd"], "Add/Remove Sort Flag");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderOrder"], "Change Sort Flag Order (Trailing - in Sort String)");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderKey"], "Sort Flag Key Type");

            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPropertyDump"], "Dump ALL properties of Selected Item to chat");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["edtSavedSortString1"], "Saved Sort String #1");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySavedSortString1"], "Copy Saved Sort String #1 to clipboard");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSavedSortString1"], "Paste contents of Clipboard into Saved Sort String #1");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["edtSavedSortString2"], "Saved Sort String #2");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySavedSortString2"], "Copy Saved Sort String #2 to clipboard");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSavedSortString2"], "Paste contents of Clipboard into Saved Sort String #2");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["edtSavedSortString3"], "Saved Sort String #3");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySavedSortString3"], "Copy Saved Sort String #3 to clipboard");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSavedSortString3"], "Paste contents of Clipboard into Saved Sort String #3");
            VirindiViewService.TooltipSystem.AssociateTooltip(View["btnSaveSettings"], "Save all settings");

            if (View != null)
            {
                View.UserResizeable = true;

                chkIdentifyOnLogin.Checked = Properties.Settings.Default.IdentifyOnLogin;
                chkReverseSortList.Checked = Properties.Settings.Default.ReverseSortList;
                edtSortString.Text         = Properties.Settings.Default.DefaultSortString;
                edtSavedSortString1.Text   = Properties.Settings.Default.SavedSortString1;
                edtSavedSortString2.Text   = Properties.Settings.Default.SavedSortString2;
                edtSavedSortString3.Text   = Properties.Settings.Default.SavedSortString3;

                View["btnSourceContainer"].Hit += (s, e) =>
                {
                    PluginCore.getInstance().setSourceContainer();
                };

                View["btnDestContainer"].Hit += (s, e) =>
                {
                    PluginCore.getInstance().setDestContainer();
                };

                View["edtInsertion"].KeyEvent += (s, e) =>
                {
                    int slot = 0;
                    try
                    {
                        slot = Convert.ToInt32(((HudTextBox)View["edtInsertion"]).Text);
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                    PluginCore.getInstance().containerDestSlot = slot;
                };

                View["edtSortString"].KeyEvent += (s, e) =>
                {
                    try
                    {
                        Properties.Settings.Default.DefaultSortString = MainView.edtSortString.Text;
                        Properties.Settings.Default.Save();
                        PluginCore.getInstance().createSortFlagListFromString(((HudTextBox)View["edtSortString"]).Text);
                        PluginCore.getInstance().rebuildLstSortSettings();
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnCopySortString"].Hit += (s, e) =>
                {
                    try { System.Windows.Forms.Clipboard.SetText(edtSortString.Text); }catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnPasteSortString"].Hit += (s, e) =>
                {
                    edtSortString.Text = System.Windows.Forms.Clipboard.GetText();
                    PluginCore.getInstance().createSortFlagListFromString(edtSortString.Text);
                    PluginCore.getInstance().rebuildLstSortSettings();
                };

                View["btnActivate"].Hit += (s, e) =>
                {
                    if (((HudButton)View["btnActivate"]).Text.Equals("Cancel"))
                    {
                        ((HudButton)View["btnActivate"]).Text = "Activate";
                        PluginCore.getInstance().cancel();
                    }
                    else
                    {
                        ((HudButton)View["btnActivate"]).Text = "Cancel";
                        PluginCore.getInstance().activate();
                    }
                };

                ((HudCombo)View["cmbSortListFilters"]).Change += (s, e) =>
                {
                    PluginCore.getInstance().createSortFlagListFromString(edtSortString.Text);
                    PluginCore.getInstance().rebuildLstSortSettings();
                };


                ((HudList)View["lstSortSettings"]).Click += new HudList.delClickedControl(lstSortSettings_Selected);

                ((HudCheckBox)View["chkIdentifyOnLogin"]).Change += (s, e) =>
                {
                    Properties.Settings.Default.IdentifyOnLogin = ((HudCheckBox)View["chkIdentifyOnLogin"]).Checked;
                    Properties.Settings.Default.Save();
                };

                ((HudCheckBox)View["chkReverseSortList"]).Change += (s, e) =>
                {
                    Properties.Settings.Default.ReverseSortList = ((HudCheckBox)View["chkReverseSortList"]).Checked;
                    Properties.Settings.Default.Save();
                };

                View["btnPropertyDump"].Hit += (s, e) =>
                {
                    try
                    {
                        foreach (SortFlag sf in SortFlag.sortedFlagList.Values)
                        {
                            sf.propertyDumpSelection();
                        }
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                edtSavedSortString1.KeyEvent += (s, e) =>
                {
                    try
                    {
                        Properties.Settings.Default.SavedSortString1 = edtSavedSortString1.Text;
                        Properties.Settings.Default.Save();
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                edtSavedSortString2.KeyEvent += (s, e) =>
                {
                    try
                    {
                        Properties.Settings.Default.SavedSortString2 = edtSavedSortString2.Text;
                        Properties.Settings.Default.Save();
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                edtSavedSortString3.KeyEvent += (s, e) =>
                {
                    try
                    {
                        Properties.Settings.Default.SavedSortString3 = edtSavedSortString3.Text;
                        Properties.Settings.Default.Save();
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnCopySavedSortString1"].Hit += (s, e) =>
                {
                    try
                    {
                        System.Windows.Forms.Clipboard.SetText(edtSavedSortString1.Text);
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnPasteSavedSortString1"].Hit += (s, e) =>
                {
                    try
                    {
                        edtSavedSortString1.Text = System.Windows.Forms.Clipboard.GetText();
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnCopySavedSortString2"].Hit += (s, e) =>
                {
                    try
                    {
                        System.Windows.Forms.Clipboard.SetText(edtSavedSortString2.Text);
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnPasteSavedSortString2"].Hit += (s, e) =>
                {
                    try
                    {
                        edtSavedSortString2.Text = System.Windows.Forms.Clipboard.GetText();
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnCopySavedSortString3"].Hit += (s, e) =>
                {
                    try
                    {
                        System.Windows.Forms.Clipboard.SetText(edtSavedSortString3.Text);
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnPasteSavedSortString3"].Hit += (s, e) =>
                {
                    try
                    {
                        edtSavedSortString3.Text = System.Windows.Forms.Clipboard.GetText();
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };

                View["btnSaveSettings"].Hit += (s, e) =>
                {
                    try
                    {
                        Properties.Settings.Default.Save();
                        Util.WriteToChat("Settings Saved!");
                    }
                    catch (Exception ex) { Util.LogError(ex); }
                };
            }
        }