public AccountServerCharacterGUI(MainView mainView)
		{
			try
			{
				loginText = mainView.LoginText;
				mainView.LoginAdd.Hit += new EventHandler(LoginAdd_Hit);
				loginList = mainView.LoginList;
				loginList.Click += new HudList.delClickedControl(loginList_Click);

				loginCompleteText = mainView.LoginCompleteText;
				mainView.LoginCompleteAdd.Hit += new EventHandler(LoginCompleteAdd_Hit);
				loginCompleteList = mainView.LoginCompleteList;
				loginCompleteList.Click += new HudList.delClickedControl(loginCompleteList_Click);

				periodicCommandText = mainView.PeriodicCommandText;
				periodicCommandInterval = mainView.PeriodicCommandInterval;
				periodicCommandOffset = mainView.PeriodicCommandOffset;
				mainView.PeriodicCommandAdd.Hit += new EventHandler(PeriodicCommandAdd_Hit);
				periodicCommandList = mainView.PeriodicCommandList;
				periodicCommandList.Click += new HudList.delClickedControl(periodicCommandList_Click);

				CoreManager.Current.CharacterFilter.Login += new EventHandler<Decal.Adapter.Wrappers.LoginEventArgs>(CharacterFilter_Login);
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
Beispiel #2
0
        public ServerGUI(MainView mainView)
        {
            try
            {
                loginText = mainView.ServerLoginText;
                mainView.ServerLoginAdd.Hit += new EventHandler(LoginAdd_Hit);
                loginList        = mainView.ServerLoginList;
                loginList.Click += new HudList.delClickedControl(loginList_Click);

                loginCompleteText = mainView.ServerLoginCompleteText;
                mainView.ServerLoginCompleteAdd.Hit += new EventHandler(LoginCompleteAdd_Hit);
                loginCompleteList        = mainView.ServerLoginCompleteList;
                loginCompleteList.Click += new HudList.delClickedControl(loginCompleteList_Click);

                periodicCommandText     = mainView.ServerPeriodicCommandText;
                periodicCommandInterval = mainView.ServerPeriodicCommandInterval;
                periodicCommandOffset   = mainView.ServerPeriodicCommandOffset;
                mainView.ServerPeriodicCommandAdd.Hit += new EventHandler(PeriodicCommandAdd_Hit);
                periodicCommandList        = mainView.ServerPeriodicCommandList;
                periodicCommandList.Click += new HudList.delClickedControl(periodicCommandList_Click);

                CoreManager.Current.CharacterFilter.Login += new EventHandler <Decal.Adapter.Wrappers.LoginEventArgs>(CharacterFilter_Login);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
        public TinkeringToolsView(MainView mainView)
        {
            try
            {
                tinkeringMaterial         = mainView.TinkeringMaterial;
                tinkeringMinimumPercent   = mainView.TinkeringMinimumPercent;
                tinkeringTargetTotalTinks = mainView.TinkeringTargetTotalTinks;
                tinkeringList             = mainView.TinkeringList;

                mainView.TinkeringAddSelectedItem.Hit += new EventHandler(TinkeringAddSelectedItem_Hit);

                mainView.TinkeringMaterial.AddItem("Brass", null);
                mainView.TinkeringMaterial.AddItem("Granite", null);
                mainView.TinkeringMaterial.AddItem("Green Garnet", null);
                mainView.TinkeringMaterial.AddItem("Iron", null);
                mainView.TinkeringMaterial.AddItem("Mahogany", null);
                mainView.TinkeringMaterial.AddItem("Steel", null);
                mainView.TinkeringMaterial.AddItem("Velvet", null);

                mainView.TinkeringMinimumPercent.Text = "100";

                mainView.TinkeringStart.Hit += new EventHandler(TinkeringStart_Hit);
                mainView.TinkeringStop.Hit  += new EventHandler(TinkeringStop_Hit);

                mainView.TinkeringList.Click += new VirindiViewService.Controls.HudList.delClickedControl(TinkeringList_Click);

                CoreManager.Current.WorldFilter.ChangeObject  += new EventHandler <ChangeObjectEventArgs>(WorldFilter_ChangeObject);
                CoreManager.Current.EchoFilter.ServerDispatch += new EventHandler <NetworkMessageEventArgs>(EchoFilter_ServerDispatch);

                timer.Interval = 1000;
                timer.Tick    += new EventHandler(timer_Tick);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Beispiel #4
0
        public PortalsTab(BotManagerView parent)
        {
            Parent                 = parent;
            PrimaryKeyword         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryKeyword"] : new HudTextBox();
            PrimaryKeyword.Change += PrimaryKeyword_Change;

            SecondaryKeyword         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryKeyword"] : new HudTextBox();
            SecondaryKeyword.Change += SecondaryKeyword_Change;

            PrimaryDescription         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryDescription"] : new HudTextBox();
            PrimaryDescription.Change += PrimaryDescription_Change;

            SecondaryDescription         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryDescription"] : new HudTextBox();
            SecondaryDescription.Change += SecondaryDescription_Change;

            PrimaryHeading         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryHeading"] : new HudTextBox();
            PrimaryHeading.Change += PrimaryHeading_Change;

            SecondaryHeading         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryHeading"] : new HudTextBox();
            SecondaryHeading.Change += SecondaryHeading_Change;

            PrimaryLevel         = Parent.View != null ? (HudTextBox)Parent.View["PrimaryLevel"] : new HudTextBox();
            PrimaryLevel.Change += PrimaryLevel_Change;

            SecondaryLevel         = Parent.View != null ? (HudTextBox)Parent.View["SecondaryLevel"] : new HudTextBox();
            SecondaryLevel.Change += SecondaryLevel_Change;

            CharacterChoice         = Parent.View != null ? (HudCombo)Parent.View["CharacterChoice"] : new HudCombo(new ControlGroup());
            CharacterChoice.Change += CharacterChoice_Change;

            PopulateCharacterChoice();
        }
		public TinkeringToolsView(MainView mainView)
		{
			try
			{
				tinkeringMaterial = mainView.TinkeringMaterial;
				tinkeringMinimumPercent = mainView.TinkeringMinimumPercent;
				tinkeringTargetTotalTinks = mainView.TinkeringTargetTotalTinks;
				tinkeringList = mainView.TinkeringList;

				mainView.TinkeringAddSelectedItem.Hit += new EventHandler(TinkeringAddSelectedItem_Hit);

				mainView.TinkeringMaterial.AddItem("Brass", null);
				mainView.TinkeringMaterial.AddItem("Granite", null);
				mainView.TinkeringMaterial.AddItem("Green Garnet", null);
				mainView.TinkeringMaterial.AddItem("Iron", null);
				mainView.TinkeringMaterial.AddItem("Mahogany", null);
				mainView.TinkeringMaterial.AddItem("Steel", null);
				mainView.TinkeringMaterial.AddItem("Velvet", null);

				mainView.TinkeringMinimumPercent.Text = "100";

				mainView.TinkeringStart.Hit += new EventHandler(TinkeringStart_Hit);
				mainView.TinkeringStop.Hit += new EventHandler(TinkeringStop_Hit);

				mainView.TinkeringList.Click += new VirindiViewService.Controls.HudList.delClickedControl(TinkeringList_Click);

				CoreManager.Current.WorldFilter.ChangeObject += new EventHandler<ChangeObjectEventArgs>(WorldFilter_ChangeObject);
				CoreManager.Current.EchoFilter.ServerDispatch += new EventHandler<NetworkMessageEventArgs>(EchoFilter_ServerDispatch);

				timer.Interval = 1000;
				timer.Tick += new EventHandler(timer_Tick);
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
Beispiel #6
0
        public void RemoveHudText(TextBoxType boxType, int ID)
        {
            HudTextBox theBox = GetHudTextOfType(boxType);

            if (theBox == null)
            {
                return;
            }

            theBox.RemoveText(ID);
        }
Beispiel #7
0
        private void CreateView()
        {
            // new Decal3XMLParser().ParseFromResource("AceAdminLoaderTemplate.Views.MainView.xml", out properties, out controls);
            // new Decal3XMLParser().ParseFromResource("AceAdminTemplate.Views.MainView.xml", out properties, out controls);
            new Decal3XMLParser().ParseFromResource("AceAdminPluginTemplate.Views.MainView.xml", out properties, out controls);
            view = new VirindiViewService.HudView(properties, controls);

            EchoButton = (HudButton)view["EchoButton"];
            EchoText   = (HudTextBox)view["EchoText"];

            EchoButton.Hit += EchoButton_Hit;
        }
Beispiel #8
0
    public override void a(object A_0)
    {
        HudFixedLayout layout = A_0 as HudFixedLayout;

        if (layout != null)
        {
            this.a = new HudTextBox();
            layout.AddControl(this.a, new Rectangle(4, 0xb7, 0x124, 0x10));
            this.a.set_Text(this.a());
            this.a.add_Change(new EventHandler(this.a));
        }
    }
Beispiel #9
0
    public void a(object A_0)
    {
        HudFixedLayout layout = A_0 as HudFixedLayout;

        if (layout != null)
        {
            this.b = new HudTextBox();
            layout.AddControl(this.b, new Rectangle(4, 0xb7, 0x124, 0x10));
            this.b.set_Text(this.a.ToString());
            this.b.add_Change(new EventHandler(this.a));
            this.b.add_LostFocus(new EventHandler(this.b));
        }
    }
Beispiel #10
0
        /// <summary>
        /// Creates <see cref="FrameworkElement"/>  based on specified <see cref="HudBaseToolViewModel"/>
        /// </summary>
        /// <param name="hudToolElement"><see cref="HudBaseToolViewModel"/></param>
        /// <returns>HUD panel as <see cref="FrameworkElement"/></returns>
        public virtual FrameworkElement Create(HudBaseToolViewModel hudToolElement)
        {
            Check.Require(hudToolElement != null);

            FrameworkElement hudTool = null;

            switch (hudToolElement.ToolType)
            {
            case HudDesignerToolType.PlainStatBox:
                hudTool = new HudPlainBox();
                AttachContextMenu(hudToolElement, hudTool);
                break;

            case HudDesignerToolType.FourStatBox:
                hudTool = new HudFourStatsBox();
                break;

            case HudDesignerToolType.TiltMeter:
                hudTool = new HudTiltMeter();
                break;

            case HudDesignerToolType.PlayerProfileIcon:
                hudTool = new HudPlayerIcon();
                break;

            case HudDesignerToolType.TextBox:
                hudTool = new HudTextBox();
                break;

            case HudDesignerToolType.BumperStickers:
                hudTool = new HudBumperStickers();
                break;

            case HudDesignerToolType.GaugeIndicator:
            case HudDesignerToolType.Graph:
            case HudDesignerToolType.HeatMap:
                break;

            default:
                throw new NotSupportedException($"{hudToolElement.ToolType} isn't supported");
            }

            if (hudTool != null)
            {
                hudTool.DataContext = hudToolElement;
            }

            return(hudTool);
        }
        public InventoryToolsView(MainView mainView, InventoryExporter inventoryExporter)
        {
            try
            {
                inventorySearch   = mainView.InventorySearch;
                inventoryList     = mainView.InventoryList;
                inventoryItemText = mainView.InventoryItemText;

                mainView.ClipboardWornEquipment.Hit += (s2, e2) => { try { inventoryExporter.ExportToClipboard(InventoryExporter.ExportGroups.WornEquipment); } catch (Exception ex) { Debug.LogException(ex); } };
                mainView.ClipboardInventoryInfo.Hit += (s2, e2) => { try { inventoryExporter.ExportToClipboard(InventoryExporter.ExportGroups.Inventory); } catch (Exception ex) { Debug.LogException(ex); } };

                inventorySearch.Change += new EventHandler(InventorySearch_Change);
                inventoryList.Click    += new VirindiViewService.Controls.HudList.delClickedControl(InventoryList_Click);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
		public InventoryToolsView(MainView mainView, InventoryExporter inventoryExporter)
		{
			try
			{
				inventorySearch = mainView.InventorySearch;
				inventoryList = mainView.InventoryList;
				inventoryItemText = mainView.InventoryItemText;

				mainView.ClipboardWornEquipment.Hit += (s2, e2) => { try { inventoryExporter.ExportToClipboard(InventoryExporter.ExportGroups.WornEquipment); } catch (Exception ex) { Debug.LogException(ex); } };
				mainView.ClipboardInventoryInfo.Hit += (s2, e2) => { try { inventoryExporter.ExportToClipboard(InventoryExporter.ExportGroups.Inventory); } catch (Exception ex) { Debug.LogException(ex); } };

				inventorySearch.Change += new EventHandler(InventorySearch_Change);
				inventoryList.Click += new VirindiViewService.Controls.HudList.delClickedControl(InventoryList_Click);
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
Beispiel #13
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); }
        }
Beispiel #14
0
        public InventoryTab(BotManagerView parent)
        {
            Parent = parent;

            CharacterChoice         = Parent.View != null ? (HudCombo)Parent.View["CharacterInventoryChoice"] : new HudCombo(new ControlGroup());
            CharacterChoice.Change += CharacterChoice_Change;

            InventoryList = Parent.View != null ? (HudList)Parent.View["InventoryList"] : new HudList();

            LeadScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["LeadScarabThreshold"] : new HudTextBox();
            LeadScarabThreshold.Change += LeadScarabThreshold_Change;

            IronScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["IronScarabThreshold"] : new HudTextBox();
            IronScarabThreshold.Change += IronScarabThreshold_Change;

            CopperScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["CopperScarabThreshold"] : new HudTextBox();
            CopperScarabThreshold.Change += CopperScarabThreshold_Change;

            SilverScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["SilverScarabThreshold"] : new HudTextBox();
            SilverScarabThreshold.Change += SilverScarabThreshold_Change;

            GoldScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["GoldScarabThreshold"] : new HudTextBox();
            GoldScarabThreshold.Change += GoldScarabThreshold_Change;

            PyrealScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["PyrealScarabThreshold"] : new HudTextBox();
            PyrealScarabThreshold.Change += PyrealScarabThreshold_Change;

            PlatinumScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["PlatinumScarabThreshold"] : new HudTextBox();
            PlatinumScarabThreshold.Change += PlatinumScarabThreshold_Change;

            ManaScarabThreshold         = Parent.View != null ? (HudTextBox)Parent.View["ManaScarabThreshold"] : new HudTextBox();
            ManaScarabThreshold.Change += ManaScarabThreshold_Change;

            ComponentThreshold         = Parent.View != null ? (HudTextBox)Parent.View["ComponentThreshold"] : new HudTextBox();
            ComponentThreshold.Change += ComponentThreshold_Change;

            SetupInventoryColumns();
            PopulateCharacterChoice();
            LoadSettings();
        }
Beispiel #15
0
        public int AddHudText(TextBoxType boxType, string text)
        {
            HudTextBox theBox = GetHudTextOfType(boxType);

            //TODO: DANGEROUS HARD-CODED NUMBER
            //TODO: DANGEROUS HARD-CODED NUMBER
            if (theBox == null)
            {
                Debug.LogError("Attempted AddHudText but could not find requested HudTextBoxType: " + boxType.ToString());
                //TODO: DANGEROUS HARD-CODED NUMBER
                return(int.MaxValue);
            }
            //TODO: DANGEROUS HARD-CODED NUMBER
            //TODO: DANGEROUS HARD-CODED NUMBER

            int ID = _nextHudTextID;

            _nextHudTextID++;

            theBox.AddText(ID, text);

            return(ID);
        }
Beispiel #16
0
    public override void a(object A_0)
    {
        HudFixedLayout layout = A_0 as HudFixedLayout;

        if (layout != null)
        {
            int num = this.f();
            this.a.Clear();
            int y = 4;
            for (int i = 0; i < num; i++)
            {
                HudStaticText text = new HudStaticText();
                layout.AddControl(text, new Rectangle(4, y, 0x124, 0x10));
                y += 20;
                text.set_Text(this.a(i));
                HudTextBox item = new HudTextBox();
                layout.AddControl(item, new Rectangle(4, y, 0x124, 0x10));
                y += 20;
                item.set_Text(this.b(i));
                item.add_Change(new EventHandler(this.a));
                this.a.Add(item);
            }
        }
    }
Beispiel #17
0
        private void RenderChiefGearInspectPageSalvage()
        {
            try
            {
                lstNotifySalvage = new HudList();
                lstNotifySalvageListRow = new HudList.HudListRowAccessor();
                ChiefGearInspectPageSalvage.AddControl(lstNotifySalvage, new Rectangle(5, 5, 260, 300));
                lstNotifySalvage.AddColumn(typeof(HudCheckBox), 5, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 130, null);
                 lstNotifySalvage.AddColumn(typeof(HudStaticText), 60, null);
                 lstNotifySalvage.AddColumn(typeof(HudStaticText), 1, null);

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

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

                 HudStaticText lblSalvageString = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                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, 18));

                SubscribeChiefGearInspectPageSalvage();

            }
            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);}
        }
Beispiel #19
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); }
        }
Beispiel #20
0
        private void RenderInventoryHud()
        {
            try
            {
                if (InventoryHudView != null)
                {
                    DisposeInventoryHud();
                }

                InventoryHudView = new HudView("Gear", mGeneralSettings.GearWindowSettings.InventoryHudWidth, mGeneralSettings.GearWindowSettings.InventoryHudHeight, new ACImage(0x6AA5));
                InventoryHudView.UserAlphaChangeable = false;
                InventoryHudView.ShowInBar = false;
                InventoryHudView.UserResizeable = false;
                InventoryHudView.Visible = true;
                InventoryHudView.Ghosted = false;
                InventoryHudView.UserMinimizable = true;
                InventoryHudView.UserClickThroughable = false;
                InventoryHudTabView = new HudTabView();
                InventoryHudView.Controls.HeadControl = InventoryHudTabView;
                InventoryHudTabLayout = new HudFixedLayout();
                InventoryHudTabView.AddTab(InventoryHudTabLayout, "Inventory");
                InventoryHudView.LoadUserSettings();

                lblInventoryClass = new HudStaticText();
                lblInventoryClass.Text = "Class";
                ControlGroup InventoryClasses = new ControlGroup();
                cboInventoryClasses = new HudCombo(InventoryClasses);
                cboInventoryClasses.Change += (sender, index) => cboInventoryClasses_Change(sender, index);

                foreach (IDName info in tDataTable.ClassInvList)
                {
                    cboInventoryClasses.AddItem(info.name, info.ID);
                }
                lblSearchRules = new HudStaticText();
                lblSearchRules.Text = "Up to 3 names or spells. Use ';' to separate and '*' before name but not spells.";

                lblMyChoice = new HudStaticText();
                lblMyChoice.Text = "Search:";

                txtMyChoice = new HudTextBox();
                txtMyChoice.LostFocus += txtMyChoice_LostFocus;

                //Searches for Weapons and Essences

                lblWeapons = new HudStaticText();
                lblWeapons.Text = "Weapons/Essences";

                lblMelee = new HudStaticText();
                lblMelee.Text = "Mel:";
                ControlGroup WieldAttribTypes = new ControlGroup();
                cboWieldAttrib = new HudCombo(WieldAttribTypes);
                cboWieldAttrib.Change += (sender, index) => cboWieldAttrib_Change(sender, index);

                foreach (IDName info in tDataTable.MeleeTypeInvList)
                {
                    cboWieldAttrib.AddItem(info.name, info.ID);
                }

                lblDamage = new HudStaticText();
                lblDamage.Text = "Dam:";
                ControlGroup DamageTypes = new ControlGroup();
                cboDamageType = new HudCombo(DamageTypes);
                cboDamageType.Change += (sender, index) => cboDamageType_Change(sender, index);

                foreach (IDName info in tDataTable.ElementalInvList)
                {
                    cboDamageType.AddItem(info.name, info.ID);
                }

                lblWield = new HudStaticText();
                lblWield.Text = "Lev:";
                ControlGroup WieldLevels = new ControlGroup();
                cboLevel = new HudCombo(WieldLevels);
                cboLevel.Change += (sender, index) => cboLevel_Change(sender, index);

                foreach (IDName info in tDataTable.WeaponWieldInvList)
                {
                    cboLevel.AddItem(info.name, info.ID);
                }

                lblEmbues = new HudStaticText();
                lblEmbues.Text = "Emb:";
                ControlGroup EmbueChoices = new ControlGroup();
                cboEmbues = new HudCombo(EmbueChoices);

                cboEmbues.Change += (sender, index) => cboEmbues_Change(sender, index);

                foreach (IDName info in tDataTable.EmbueInvList)
                {
                    cboEmbues.AddItem(info.name, info.ID);
                }

                lblMastery = new HudStaticText();
                lblMastery.Text = "Mast:";
                ControlGroup MasteryChoices = new ControlGroup();
                cboMastery = new HudCombo(MasteryChoices);

                cboMastery.Change += (sender, index) => cboMastery_Change(sender, index);

                foreach (IDName info in tDataTable.MasteryIndex)
                {
                    cboMastery.AddItem(info.name, info.ID);
                }

                //Armor/Clothing/Jewelry Searches

                lblArmor = new HudStaticText();
                lblArmor.Text = "Armor/Clothing/Aetheria/Jewelry";

                lblSet = new HudStaticText();
                lblSet.Text = "Set:";
                ControlGroup SetChoices = new ControlGroup();
                cboArmorSet = new HudCombo(SetChoices);
                cboArmorSet.Change += (sender, index) => cboArmorSet_Change(sender, index);

                foreach (IDName info in tDataTable.ArmorSetsList)
                {
                    cboArmorSet.AddItem(info.name, info.ID);
                }

                lblArmorWield = new HudStaticText();
                lblArmorWield.Text = "Lev:";
                ControlGroup ArmorLevels = new ControlGroup();
                cboArmorLevel = new HudCombo(ArmorLevels);
                cboArmorLevel.Change += (sender, index) => cboArmorLevel_Change(sender, index);

                foreach (IDName info in tDataTable.ArmorLevelInvList)
                {
                    cboArmorLevel.AddItem(info.name, info.ID);
                }

                lblCovers = new HudStaticText();
                lblCovers.Text = "Cov:";
                ControlGroup CoverageChoices = new ControlGroup();
                cboCoverage = new HudCombo(CoverageChoices);
                cboCoverage.Change += (sender, index) => cboCoverage_Change(sender, index);

                foreach (IDName info in tDataTable.CoverageInvList)
                {
                    cboCoverage.AddItem(info.name, info.ID);
                }

                lblRatings = new HudStaticText();
                lblRatings.Text = "Rat:";
                ControlGroup RatingChoices = new ControlGroup();
                cboRatings = new HudCombo(RatingChoices);
                cboRatings.Change += (sender, index) => cboRatings_Change(sender, index);
                cboRatings.AddItem("None", 0);
                foreach (IDName info in tDataTable.RatingList)
                {
                    cboRatings.AddItem(info.name, info.ID);
                }

                //Search for Salvage

                lblSalvage = new HudStaticText();
                lblSalvage.Text = "Salvage";

                lblMaterial = new HudStaticText();
                lblMaterial.Text = "Mat:";
                ControlGroup MaterialChoices = new ControlGroup();
                cboMaterial = new HudCombo(MaterialChoices);
                cboMaterial.Change += (sender, index) => cboMaterial_Change(sender, index);

                foreach (IDName info in tDataTable.MaterialInvList)
                {
                    cboMaterial.AddItem(info.name, info.ID);
                }

                lblWork = new HudStaticText();
                lblWork.Text = "Work:";
                ControlGroup WorkChoices = new ControlGroup();
                cboSalvWork = new HudCombo(WorkChoices);
                cboSalvWork.Change += (sender, index) => cboSalvWork_Change(sender, index);

                foreach (IDName info in tDataTable.SalvageWorkInvList)
                {
                    cboSalvWork.AddItem(info.name, info.ID);
                }

                btnClrInv = new HudButton();
                btnClrInv.Text = "Clear List";
                btnClrInv.Hit += (sender, index) => btnClrInv_Hit(sender, index);

                btnLstInv = new HudButton();
                btnLstInv.Text = "Update Now!";
                btnLstInv.Hit += (sender, index) => btnLstInv_Hit(sender, index);

                lstHudInventory = new HudList();
                lstHudInventory.AddColumn(typeof(HudPictureBox), 20, null);
                lstHudInventory.AddColumn(typeof(HudStaticText), 150, null);//object
                lstHudInventory.AddColumn(typeof(HudStaticText), 100, null);//set
                lstHudInventory.AddColumn(typeof(HudStaticText), 75, null);//rating
                lstHudInventory.AddColumn(typeof(HudStaticText), 200, null);//toon holding
                lstHudInventory.AddColumn(typeof(HudStaticText), 1, null);

                lstHudInventory.Click += (sender, row, col) => lstHudInventory_Click(sender, row, col);

                InventoryHudTabLayout.AddControl(lblInventoryClass, new Rectangle(10, 15, 35, 16));
                InventoryHudTabLayout.AddControl(cboInventoryClasses, new Rectangle(50, 15, 100, 16));
                InventoryHudTabLayout.AddControl(lblSearchRules, new Rectangle(120, 0, 420, 16));
                InventoryHudTabLayout.AddControl(lblMyChoice, new Rectangle(155, 20, 50, 16));
                InventoryHudTabLayout.AddControl(txtMyChoice, new Rectangle(210, 20, 320, 16));
                InventoryHudTabLayout.AddControl(lblWeapons, new Rectangle(10, 40, 150, 20));
                InventoryHudTabLayout.AddControl(lblArmor, new Rectangle(160, 40, 210, 20));
                InventoryHudTabLayout.AddControl(lblSalvage, new Rectangle(400, 40, 150, 20));

                InventoryHudTabLayout.AddControl(lblMelee, new Rectangle(10, 60, 30, 16));
                InventoryHudTabLayout.AddControl(cboWieldAttrib, new Rectangle(50, 60, 100, 16));
                InventoryHudTabLayout.AddControl(lblSet, new Rectangle(160, 60, 30, 16));
                InventoryHudTabLayout.AddControl(cboArmorSet, new Rectangle(200, 60, 190, 16));
                InventoryHudTabLayout.AddControl(lblMaterial, new Rectangle(400, 60, 30, 16));
                InventoryHudTabLayout.AddControl(cboMaterial, new Rectangle(440, 60, 150, 16));
                InventoryHudTabLayout.AddControl(lblDamage, new Rectangle(10, 80, 30, 16));
                InventoryHudTabLayout.AddControl(cboDamageType, new Rectangle(50, 80, 100, 16));
                InventoryHudTabLayout.AddControl(lblArmorWield, new Rectangle(160, 80, 30, 16));
                InventoryHudTabLayout.AddControl(cboArmorLevel, new Rectangle(200, 80, 190, 16));
                InventoryHudTabLayout.AddControl(lblWork, new Rectangle(400, 80, 30, 16));
                InventoryHudTabLayout.AddControl(cboSalvWork, new Rectangle(440, 80, 100, 16));
                InventoryHudTabLayout.AddControl(lblWield, new Rectangle(10, 100, 30, 16));
                InventoryHudTabLayout.AddControl(cboLevel, new Rectangle(50, 100, 100, 16));
                InventoryHudTabLayout.AddControl(lblCovers, new Rectangle(160, 100, 30, 16));
                InventoryHudTabLayout.AddControl(cboCoverage, new Rectangle(200, 100, 190, 16));
                InventoryHudTabLayout.AddControl(lblRatings, new Rectangle(160, 120, 30, 16));
                InventoryHudTabLayout.AddControl(cboRatings, new Rectangle(200, 120, 100, 16));
                InventoryHudTabLayout.AddControl(lblEmbues, new Rectangle(10, 120, 30, 16));
                InventoryHudTabLayout.AddControl(cboEmbues, new Rectangle(50, 120, 100, 16));
                InventoryHudTabLayout.AddControl(lblMastery, new Rectangle(10, 140, 30, 16));
                InventoryHudTabLayout.AddControl(cboMastery, new Rectangle(50, 140, 100, 16));

                InventoryHudTabLayout.AddControl(btnLstInv, new Rectangle(410, 115, 100, 16));
                InventoryHudTabLayout.AddControl(btnClrInv, new Rectangle(410, 140, 100, 16));
                InventoryHudTabLayout.AddControl(lstHudInventory, new Rectangle(10, 160, 575, 330));

                lblInventoryPending = new HudStaticText();
                lblInventoryPending.Text = "Inventory Items Pending Id:";
                InventoryHudTabLayout.AddControl(lblInventoryPending, new Rectangle(10, mGeneralSettings.GearWindowSettings.InventoryHudHeight - 35, 150, 16));

                txtInventoryPending = new HudStaticText();
                txtInventoryPending.Text = String.Empty;
                InventoryHudTabLayout.AddControl(txtInventoryPending, new Rectangle(175, mGeneralSettings.GearWindowSettings.InventoryHudHeight - 35, 50, 16));

                InventoryHudView.VisibleChanged += InventoryHudView_VisibleChanged;

            }
            catch (Exception ex) { LogError(ex); }
            return;
        }
        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 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);}
        }
Beispiel #23
0
        private void DisposeInventoryTabLayout()
        {
            try
            {
                if (InventoryHudView == null) { return; }
                clearListVariables();

                cboInventoryClasses.Change -= (sender, index) => cboInventoryClasses_Change(sender, index);
                cboInventoryClasses.Dispose();
                cboWieldAttrib.Change -= (sender, index) => cboWieldAttrib_Change(sender, index);
                cboWieldAttrib.Dispose();
                cboArmorSet.Change -= (sender, index) => cboArmorSet_Change(sender, index);
                cboArmorSet.Dispose();
                cboMaterial.Change -= (sender, index) => cboMaterial_Change(sender, index);
                cboMaterial.Dispose();
                if (cboDamageType != null) { cboDamageType.Change -= (sender, index) => cboDamageType_Change(sender, index); cboDamageType = null; }
                if (cboArmorLevel != null) { cboArmorLevel.Change -= (sender, index) => cboArmorLevel_Change(sender, index); cboArmorLevel = null; }
                if (cboSalvWork != null) { cboSalvWork.Change -= (sender, index) => cboSalvWork_Change(sender, index); cboSalvWork = null; }
                if (cboLevel != null) { cboLevel.Change -= (sender, index) => cboLevel_Change(sender, index); cboLevel = null; }
                if (cboCoverage != null) { cboCoverage.Change -= (sender, index) => cboCoverage_Change(sender, index); cboCoverage = null; }
                if (cboRatings != null) { cboRatings.Change -= (sender, index) => cboRatings_Change(sender, index); cboRatings = null; }
                if (cboMastery != null) { cboMastery.Change -= (sender, index) => cboMastery_Change(sender, index); cboMastery = null; }
                if (lstHudInventory != null) { lstHudInventory.Click -= (sender, row, col) => lstHudInventory_Click(sender, row, col); lstHudInventory = null; }
                if (InventoryHudListRow != null) { InventoryHudListRow = null; }
                if (btnClrInv != null) { btnClrInv.Hit -= (sender, index) => btnClrInv_Hit(sender, index); btnClrInv = null; }
                if (btnLstInv != null) { btnLstInv.Hit -= (sender, index) => btnLstInv_Hit(sender, index); btnLstInv = null; }
                if (cboEmbues != null) { cboEmbues.Change -= (sender, index) => cboEmbues_Change(sender, index); cboEmbues = null; }
                if (txtMyChoice != null) { txtMyChoice.LostFocus -= txtMyChoice_LostFocus; txtMyChoice = null; }

                if (lblInventoryClass != null) { lblInventoryClass = null; }
                if (lblSearchRules != null) { lblSearchRules = null; }
                if (lblMyChoice != null) { lblMyChoice = null; }
                if (lblWeapons != null) { lblWeapons = null; }
                if (lblArmor != null) { lblArmor = null; }
                if (lblSalvage != null) { lblSalvage = null; }
                if (lblMelee != null) { lblMelee = null; }
                if (lblSet != null) { lblSet = null; }
                if (lblDamage != null) { lblDamage = null; }
                if (lblArmorWield != null) { lblArmorWield = null; }
                if (lblWork != null) { lblWork = null; }
                if (lblWield != null) { lblWield = null; }
                if (lblMaterial != null) { lblMaterial = null; }
                if (lblCovers != null) { lblCovers = null; }
                if (lblRatings != null) { lblRatings = null; }
                if (lblEmbues != null) { lblEmbues = null; }
                if (lblMastery != null) { lblMastery = null; }
            }
            catch (Exception ex) { LogError(ex); }
        }
        public void RenderButlerHud()
        {
            try
            {
                if(ButlerHudView != null)
                {
                    DisposeButlerHud();
                }

                ButlerHudView = new HudView("GearButler", mGeneralSettings.GearWindowSettings.ButlerHudWidth, mGeneralSettings.GearWindowSettings.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.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));

                if(AetherCharacter.IsSkillTrainedOrSpec(ASkillKeyValues.Lockpick))
                {
                    ButlerHudPickCurrentSelection = new HudButton();
                    ButlerHudPickCurrentSelection.Text = "Pick";
                    ButlerHudTabLayout.AddControl(ButlerHudPickCurrentSelection, new Rectangle(5,30,50,20));
                }

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

                ButlerHudCurrentSelectionText = new HudStaticText();
                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_MAIN_PACK_ICON;
                ButlerQuickSortUnequipped.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortUnequipped.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortUnequipped, new Rectangle(60,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortUnequipped, "Unequipped");

                ButlerQuickSortStorage = new HudImageButton();
                ButlerQuickSortStorage.Image_Down = GearGraphics.GB_SELECT;
                ButlerQuickSortStorage.Image_Up = GearGraphics.GB_STORE_ICON;
                ButlerQuickSortStorage.Image_Background = GearGraphics.GB_BACKGROUND;
                ButlerQuickSortStorage.CanSticky = true;
                ButlerHudTabLayout.AddControl(ButlerQuickSortStorage, new Rectangle(80,110,16,16));
                VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortStorage, "Open Storage");

                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, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 220));

                ButlerHudSelectedLabel = new HudStaticText();
                ButlerHudSelectedLabel.Text = "Items Selected: ";
                ButlerHudSelectedCount = new HudStaticText();
                ButlerHudTabLayout.AddControl(ButlerHudSelectedLabel, new Rectangle(0,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,100,16));
                ButlerHudTabLayout.AddControl(ButlerHudSelectedCount, new Rectangle(110,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,150,16));

                ButlerPackSpacesAvailable = new HudStaticText();
                ButlerPackSpaceAvailableLabel = new HudStaticText();
                ButlerPackSpaceAvailableLabel.Text = "Inventory status: ";
                ButlerHudTabLayout.AddControl(ButlerPackSpaceAvailableLabel, new Rectangle(0,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 50 ,100,16));
                ButlerHudTabLayout.AddControl(ButlerPackSpacesAvailable, new Rectangle(110, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 50 ,150,16));

                ButlerBurdenLabel = new HudStaticText();
                ButlerBurdenLabel.Text = "Current Burden: ";
                ButlerBurden = new HudStaticText();
                ButlerHudTabLayout.AddControl(ButlerBurdenLabel, new Rectangle(0, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 100, 16));
                ButlerHudTabLayout.AddControl(ButlerBurden, new Rectangle(110, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 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;
                ButlerQuickSortStorage.StickyDownStateChanged += ButlerQuickSortStorage_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 += ButlerHudList_Click;
                ButlerHudSearchButton.Hit += ButlerHudSearchButton_Click;
                ButlerHudClearSearchButton.Hit += ButlerHudClearSearchButton_Click;

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

                int Half = Convert.ToInt32((double)mGeneralSettings.GearWindowSettings.ButlerHudWidth/(double)2);
                int HalfButton = Convert.ToInt32((double)mGeneralSettings.GearWindowSettings.ButlerHudWidth/(double)2) - 20;

                ValetEquipSuit = new HudButton();
                ValetEquipSuit.Text = "Equip";
                ValetTabLayout.AddControl(ValetEquipSuit, new Rectangle(5,5,HalfButton,20));

                ValetCreateSuit = new HudButton();
                ValetCreateSuit.Text = "Create";
                ValetTabLayout.AddControl(ValetCreateSuit, new Rectangle(Half + 5, 5, HalfButton,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,mGeneralSettings.GearWindowSettings.ButlerHudWidth -20, 20));

                ValetSlotsLabel = new HudStaticText();
                ValetSlotsLabel.Text = "Slots in rotation:";
                ValetTabLayout.AddControl(ValetSlotsLabel, new Rectangle(5,80,150,16));

                ValetSlotsList = new HudList();
                ValetSlotsList.AddColumn(typeof(HudCheckBox), 15, null);
                ValetSlotsList.AddColumn(typeof(HudStaticText), 150, null);
                ValetSlotsList.AddColumn(typeof(HudStaticText), 1, null);
                ValetTabLayout.AddControl(ValetSlotsList, new Rectangle(5,100,mGeneralSettings.GearWindowSettings.ButlerHudWidth - 20, 100));

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

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

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

                ValetSuitPiecesList = new HudList();
                ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 15, null);
                ValetSuitPiecesList.AddColumn(typeof(HudStaticText), 15, null);
                ValetSuitPiecesList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ButlerHudWidth - 104, null);
                ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 15, null);
                ValetSuitPiecesList.AddColumn(typeof(HudStaticText), 1, null);
                ValetTabLayout.AddControl(ValetSuitPiecesList, new Rectangle(0, 360 ,mGeneralSettings.GearWindowSettings.ButlerHudWidth - 20,100));

                ValetSlotsList.Click += ValetSlotsList_Click;
                ValetEquipSuit.Hit += ValetEquipSuit_Hit;
                ValetCreateSuit.Hit += ValetCreateSuit_Hit;
                ValetSuitList.Click += ValetSuitList_Click;
                ValetSuitPiecesList.Click += ValetSuitPiecesList_Click;

                AugvisorTabLayout = new HudFixedLayout();
                ButlerHudTabView.AddTab(AugvisorTabLayout, "Augvisor");

                AugvisorHudList = new HudList();
                AugvisorHudList.ControlHeight = 16;
                AugvisorHudList.AddColumn(typeof(HudStaticText), 50, null);
                AugvisorHudList.AddColumn(typeof(HudStaticText), 200, null);
                AugvisorTabLayout.AddControl(AugvisorHudList, new Rectangle(0, 0, 300, mGeneralSettings.GearWindowSettings.ButlerHudHeight));

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

                UpdateButlerHudList();
                UpdateValetHud();
                UpdateAugvisor();

            }catch(Exception ex) {LogError(ex);}
            return;
        }
Beispiel #25
0
        private void RenderInventoryTabLayout()
        {
            try
            {
                lblInventoryClass = new HudStaticText();
                lblInventoryClass.FontHeight = nmenuFontHeight;
                lblInventoryClass.Text = "Class";
                ControlGroup InventoryClasses = new ControlGroup();
                cboInventoryClasses = new HudCombo(InventoryClasses);
                cboInventoryClasses.Change += (sender, index) => cboInventoryClasses_Change(sender, index);
                int i=0;
                foreach (IDNameLoadable info in ClassInvList)
                {
                    cboInventoryClasses.AddItem(info.name,i);
                    i++;
                }
                lblMyChoice = new HudStaticText();
                lblMyChoice.FontHeight = nmenuFontHeight;
                lblMyChoice.Text = "Search:";

                txtMyChoice = new HudTextBox();

                lblWeapons = new HudStaticText();
                lblWeapons.FontHeight = 11;
                lblWeapons.Text = "Weapons";
                lblWeapons.TextAlignment = VirindiViewService.WriteTextFormats.Center;
                lblArmor = new HudStaticText();
                lblArmor.FontHeight = 11;
                lblArmor.Text = "Armor/Clothing/Aetheria";
                lblArmor.TextAlignment = VirindiViewService.WriteTextFormats.Center;
                lblSalvage = new HudStaticText();
                lblSalvage.FontHeight = 11;
                lblSalvage.Text = "Salvage";
                lblSalvage.TextAlignment = VirindiViewService.WriteTextFormats.Center;
                lblMelee = new HudStaticText();
                lblMelee.FontHeight = nmenuFontHeight;
                lblMelee.Text = "Mel:";
                ControlGroup WieldAttribTypes = new ControlGroup();
                cboWieldAttrib = new HudCombo(WieldAttribTypes);
               cboWieldAttrib.Change += (sender, index) => cboWieldAttrib_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in MeleeTypeInvList)
                {
                    cboWieldAttrib.AddItem(info.name, i);
                    i++;
                }

                lblSet = new HudStaticText();
                lblSet.FontHeight = nmenuFontHeight;
                lblSet.Text = "Set:";
                ControlGroup SetChoices = new ControlGroup();
                cboArmorSet = new HudCombo(SetChoices);
                cboArmorSet.Change += (sender, index) => cboArmorSet_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in ArmorSetsInvList)
                {
                    cboArmorSet.AddItem(info.name, i);
                    i++;
                }

                lblMaterial = new HudStaticText();
                lblMaterial.FontHeight = nmenuFontHeight;
                lblMaterial.Text = "Mat:";
                ControlGroup MaterialChoices = new ControlGroup();
                cboMaterial = new HudCombo(MaterialChoices);
                cboMaterial.Change += (sender, index) => cboMaterial_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in MaterialInvList)
                {
                    cboMaterial.AddItem(info.name, i);
                    i++;
                }

                lblDamage = new HudStaticText();
                lblDamage.FontHeight = nmenuFontHeight;
                lblDamage.Text = "Dam:";
                ControlGroup DamageTypes = new ControlGroup();
                cboDamageType = new HudCombo(DamageTypes);
                cboDamageType.Change += (sender, index) => cboDamageType_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in ElementalInvList)
                {
                    cboDamageType.AddItem(info.name, i);
                    i++;
                }

                lblArmorWield = new HudStaticText();
                lblArmorWield.FontHeight = nmenuFontHeight;
                lblArmorWield.Text = "Lev:";
                ControlGroup ArmorLevels = new ControlGroup();
                cboArmorLevel = new HudCombo(ArmorLevels);
                cboArmorLevel.Change += (sender, index) => cboArmorLevel_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in ArmorLevelInvList)
                {
                    cboArmorLevel.AddItem(info.name, i);
                    i++;
                }

                lblWork = new HudStaticText();
                lblWork.FontHeight = nmenuFontHeight;
                lblWork.Text = "Work:";
                ControlGroup WorkChoices = new ControlGroup();
                cboSalvWork = new HudCombo(WorkChoices);
                cboSalvWork.Change += (sender, index) => cboSalvWork_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in SalvageWorkInvList)
                {
                    cboSalvWork.AddItem(info.name, i);
                    i++;
                }

                lblWield = new HudStaticText();
                lblWield.FontHeight = nmenuFontHeight;
                lblWield.Text = "Lev:";
                ControlGroup WieldLevels = new ControlGroup();
                cboLevel = new HudCombo(WieldLevels);
                cboLevel.Change += (sender, index) => cboLevel_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in WeaponWieldInvList)
                {
                    cboLevel.AddItem(info.name, i);
                    i++;
                }

                lblCovers = new HudStaticText();
                lblCovers.FontHeight = nmenuFontHeight;
                lblCovers.Text = "Cov:";
                ControlGroup CoverageChoices = new ControlGroup();
                cboCoverage = new HudCombo(CoverageChoices);
                cboCoverage.Change += (sender, index) => cboCoverage_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in CoverageInvList)
                {
                    cboCoverage.AddItem(info.name, i);
                    i++;
                }

                lblEmbues = new HudStaticText();
                lblEmbues.FontHeight = nmenuFontHeight;
                lblEmbues.Text = "Emb:";
                ControlGroup EmbueChoices = new ControlGroup();
                cboEmbues = new HudCombo(EmbueChoices);

                cboEmbues.Change += (sender, index) => cboEmbues_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in EmbueInvList)
                {
                    cboEmbues.AddItem(info.name, i);
                    i++;
                }

                btnClrInv = new HudButton();
                btnClrInv.Text = "Clear List";
                btnClrInv.Hit += (sender, index) => btnClrInv_Hit(sender, index);

                btnLstInv = new HudButton();
                btnLstInv.Text = "List Inventory";
                btnLstInv.Hit += (sender, index) => btnLstInv_Hit(sender, index);
                try
                {
                    lstHudInventory = new HudList();
                    lstHudInventory.AddColumn(typeof(HudPictureBox), 20, null);
                    lstHudInventory.AddColumn(typeof(HudStaticText), Convert.ToInt32(.5 * nInventoryHudWidth), null);
                    lstHudInventory.AddColumn(typeof(HudStaticText), Convert.ToInt32(.44 * nInventoryHudWidth), null);
                    lstHudInventory.AddColumn(typeof(HudStaticText), Convert.ToInt32(.001 * nInventoryHudWidth), null);

                    lstHudInventory.Click += (sender, row, col) => lstHudInventory_Click(sender, row, col);
                }

                catch (Exception ex) { LogError(ex); }

                InventoryHudTabLayout.AddControl(lblInventoryClass, new Rectangle(10, 10, 30, 16));
                InventoryHudTabLayout.AddControl(cboInventoryClasses, new Rectangle(45, 10, 100, 16));
                InventoryHudTabLayout.AddControl(lblMyChoice, new Rectangle(155, 10, 100, 16));
                InventoryHudTabLayout.AddControl(txtMyChoice, new Rectangle(260, 10, 280, 16));
                InventoryHudTabLayout.AddControl(lblWeapons, new Rectangle(10,30,nInventoryHudWidth/3,20));
                InventoryHudTabLayout.AddControl(lblArmor, new Rectangle(nInventoryHudWidth/3, 30, nInventoryHudWidth / 3, 20));
                InventoryHudTabLayout.AddControl(lblSalvage, new Rectangle((2 * nInventoryHudWidth) / 3, 30, nInventoryHudWidth / 3, 20));

                InventoryHudTabLayout.AddControl(lblMelee, new Rectangle(10, 50, 25, 16));
                InventoryHudTabLayout.AddControl(cboWieldAttrib, new Rectangle(40, 50, 100, 16));
                InventoryHudTabLayout.AddControl(lblSet, new Rectangle(nInventoryHudWidth/3, 50, 25, 16));
                InventoryHudTabLayout.AddControl(cboArmorSet, new Rectangle(nInventoryHudWidth/ 3 + 30, 50, 150, 16));
                InventoryHudTabLayout.AddControl(lblMaterial, new Rectangle((2 * nInventoryHudWidth) / 3, 50, 25, 16));
                InventoryHudTabLayout.AddControl(cboMaterial, new Rectangle((2 * nInventoryHudWidth) / 3 + 30, 50, 150, 16));
                InventoryHudTabLayout.AddControl(lblDamage, new Rectangle(10, 70, 25, 16));
                InventoryHudTabLayout.AddControl(cboDamageType, new Rectangle(40, 70, 100, 16));
                InventoryHudTabLayout.AddControl(lblArmorWield, new Rectangle(nInventoryHudWidth / 3, 70, 25, 16));
                InventoryHudTabLayout.AddControl(cboArmorLevel, new Rectangle(nInventoryHudWidth / 3 + 30, 70, 100, 16));
                InventoryHudTabLayout.AddControl(lblWork, new Rectangle((2 * nInventoryHudWidth) / 3, 70, 25, 16));
                InventoryHudTabLayout.AddControl(cboSalvWork, new Rectangle((2 * nInventoryHudWidth) / 3 + 30, 70, 100, 16));
                InventoryHudTabLayout.AddControl(lblWield, new Rectangle(10, 90, 25, 16));
                InventoryHudTabLayout.AddControl(cboLevel, new Rectangle(40,90, 100, 16));
                InventoryHudTabLayout.AddControl(lblCovers, new Rectangle(nInventoryHudWidth / 3, 90, 25, 16));
                InventoryHudTabLayout.AddControl(cboCoverage, new Rectangle(nInventoryHudWidth / 3 + 30, 90, 100, 16));
                InventoryHudTabLayout.AddControl(lblEmbues, new Rectangle(10, 110, 25, 16));
                InventoryHudTabLayout.AddControl(cboEmbues, new Rectangle(40, 110, 100, 16));

                InventoryHudTabLayout.AddControl(btnLstInv, new Rectangle((2* nInventoryHudWidth)/3,100,100,16));
                InventoryHudTabLayout.AddControl(btnClrInv, new Rectangle((2 * nInventoryHudWidth) / 3, 120, 100, 16));
                InventoryHudTabLayout.AddControl(lstHudInventory, new Rectangle(10, 150, nInventoryHudWidth, nInventoryHudHeight - 155));

                bInventoryMainTab = true;

            }

            catch (Exception ex) { LogError(ex); }
        }
Beispiel #26
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); }
        }
Beispiel #27
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); }
        }
        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);}
        }
        private void RenderInspectAppearanceTab()
        {
            try
            {
                lblRuleArmorTypes = new HudStaticText();
                lblRuleArmorTypes.Text = "Armor Models";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblRuleArmorTypes, new Rectangle(5, 0, 100, 16));

                lstRuleArmorTypes = new HudList();
                lstRuleArmorTypes.ControlHeight = 16;
                lstRuleArmorTypes.AddColumn(typeof(HudCheckBox), 16, null);
                lstRuleArmorTypes.AddColumn(typeof(HudStaticText), 195, null);
                lstRuleArmorTypes.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageMenuTabAppearance.AddControl(lstRuleArmorTypes, new Rectangle(5, 20, 150, 255));

                lblColorPalettes = new HudStaticText();
                lblColorPalettes.Text = "Color Palettes";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblColorPalettes, new Rectangle(175, 0, 80, 16));

                lblPalette0 = new HudStaticText();
                lblPalette0.Text  = "Palette #0:";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette0, new Rectangle(175, 30, 60, 16));

                lblPalette1 = new HudStaticText();
                lblPalette1.Text  = "Palette #1:";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette1, new Rectangle(175, 60, 60, 16));

                lblPalette2 = new HudStaticText();
                lblPalette2.Text  = "Palette #2:";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette2, new Rectangle(175, 90, 60, 16));

                lblPalette3 = new HudStaticText();
                lblPalette3.Text  = "Palette #3:";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette3, new Rectangle(175, 120, 60, 16));

                lblPalette4 = new HudStaticText();
                lblPalette4.Text  = "Palette #4:";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette4, new Rectangle(175, 150, 60, 16));

                lblPalette5 = new HudStaticText();
                lblPalette5.Text  = "Palette #5:";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette5, new Rectangle(175, 180, 60, 16));

                txtPalette0 = new HudTextBox();
                ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette0, new Rectangle(235, 30, 60, 20));

                txtPalette1 = new HudTextBox();
                ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette1, new Rectangle(235, 60, 60, 20));

                txtPalette2 = new HudTextBox();
                ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette2, new Rectangle(235, 90, 60, 20));

                txtPalette3 = new HudTextBox();
                ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette3, new Rectangle(235, 120, 60, 20));

                txtPalette4 = new HudTextBox();
                ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette4, new Rectangle(235, 150, 60, 20));

                txtPalette5 = new HudTextBox();
                ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette5, new Rectangle(235, 180, 60, 20));

                lblCurrentPalette = new HudStaticText();
                lblCurrentPalette.Text = "C. Sel. Pals.";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette, new Rectangle(310, 0, 80, 16));

                lblCurrentPalette0 = new HudStaticText();
               	ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette0, new Rectangle(310, 30, 60, 20));

               	lblCurrentPalette1 = new HudStaticText();
               	ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette1, new Rectangle(310, 60, 60, 20));

               	lblCurrentPalette2 = new HudStaticText();
               	ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette2, new Rectangle(310, 90, 60, 20));

               	lblCurrentPalette3 = new HudStaticText();
               	ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette3, new Rectangle(310, 120, 60, 20));

               	lblCurrentPalette4 = new HudStaticText();
               	ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette4, new Rectangle(310, 150, 60, 20));

               	lblCurrentPalette5 = new HudStaticText();
               	ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette5, new Rectangle(310, 180, 60, 20));

               	btnReportPalettes = new HudButton();
               	btnReportPalettes.Text = "Report Palettes";
               	ChiefGearInspectPageMenuTabAppearance.AddControl(btnReportPalettes, new Rectangle(200, 220, 80, 20));

                lstRuleArmorTypes.Click += lstRuleArmorTypes_Click;
                btnReportPalettes.Hit += btnReportPalettes_Hit;
                txtPalette0.LostFocus += txtPalette0_LostFocus;
                txtPalette1.LostFocus += txtPalette1_LostFocus;
                txtPalette2.LostFocus += txtPalette2_LostFocus;
                txtPalette3.LostFocus += txtPalette3_LostFocus;
                txtPalette4.LostFocus += txtPalette4_LostFocus;
                txtPalette5.LostFocus += txtPalette5_LostFocus;

            }catch(Exception ex){LogError(ex);}
        }
        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);}
        }
        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);}
        }
        private void lstSelect(XDocument xdoc, string filename, List<XElement> lst, HudList lstvue, HudTextBox mtxt, HudList.HudListRowAccessor myrow, int col, int mlist)
        {
            try
            {

                // Variable initiations
                mgoon = true;
                MyClasses.MetaViewWrappers.IListRow row = null;
                string mID = "";
                mchecked = Convert.ToBoolean(myrow[0]);
                sname = (Convert.ToString(myrow[1]));
                snameorig = sname;
                mtxt.Text = sname;

                if (xdoc != null && ((filename == mobsFilename) || (filename == trophiesFilename)))
                {
                    IEnumerable<XElement> elements = xdoc.Element("GameItems").Descendants("item");
                    var data = from item in lst
                               where item.Element("key").Value.ToString().Contains(sname)
                               select item;
                    mexact = Convert.ToBoolean(data.First().Element("isexact").Value);

                    if (filename == mobsFilename)
                    {
                        chkmyMobExact.Checked = mexact;
                        mitem = 1;
                    }
                    else if (filename == trophiesFilename)
                    {
                        chkTrophyExact.Checked = mexact;
                        mitem = 2;
                    }

                    switch (col)
                    {
                        case 0:
                        case 1:
                            mtxt.Text = sname;
                            break;
                        case 2:
                            mgoon = false;
                            break;
                    }
                    mchecked = Convert.ToBoolean(myrow[0]);
                }  // end of trophies or mobs selected
                //Need to remove object being worked on before adding it back so won't have a duplication of itme.
                if (xdoc != null)
                {
                    IEnumerable<XElement> elements = xdoc.Element("GameItems").Descendants("item");
                    xdoc.Descendants("item").Where(x => x.Element("key").Value.ToString().Trim().Equals(sname.Trim())).Remove();
                }
                //If want to keep the item above need to add it back with the new data
                if (mgoon)
                { addMyItem(xdoc, filename, mID, mexact, mitem); }

                else
                // Need to save the file without the item in it.
                {
                    xdoc.Save(filename);
                    if (xdoc == xdocTrophies)
                    { populateTrophysListBox(); }
                    else
                    { populateMobsListBox(); }
                }
            }

            catch (Exception ex) { LogError(ex); }
        }
Beispiel #33
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); }
        }
Beispiel #34
0
        private void RenderKillTaskPopUp()
        {
            try
            {
                KTPopView = new HudView(KTHolder.TaskName, 320, 500, null);
                KTPopView.UserAlphaChangeable = false;
                KTPopView.ShowInBar = false;
                KTPopView.UserResizeable = true;
                KTPopView.Visible = true;
                KTPopView.Ghosted = false;
                KTPopView.UserClickThroughable = false;
                KTPopView.UserMinimizable = true;
                KTPopView.UserGhostable = false;

                KTPopTabView = new HudTabView();
                KTPopView.Controls.HeadControl = KTPopTabView;

                KTPopLayout = new HudFixedLayout();
                KTPopTabView.AddTab(KTPopLayout, "Edit");

                KTLabel1 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel1, new Rectangle(0,0,100,16));
                KTLabel1.Text = "Kill Task Name:";

                KTPopTaskName = new HudTextBox();
                KTPopLayout.AddControl(KTPopTaskName, new Rectangle(0,20,mKTSet.HudWidth, 16));
                KTPopTaskName.Text = KTHolder.TaskName;

                KTLabel2 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel2, new Rectangle(0,40,75,16));
                KTLabel2.Text = "Number:";

                KTPopCompleteCount = new HudTextBox();
                KTPopLayout.AddControl(KTPopCompleteCount, new Rectangle(80,40,220,16));
                KTPopCompleteCount.Text = KTHolder.CompleteCount.ToString();

                KTLabel3 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel3, new Rectangle(0,60,100,16));
                KTLabel3.Text = "Creature List:";

                KTPopMobsList = new HudList();
                KTPopLayout.AddControl(KTPopMobsList, new Rectangle(0,80,300,90));
                KTPopMobsList.AddColumn(typeof(HudStaticText),250,null);
                KTPopMobsList.AddColumn(typeof(HudPictureBox),16,null);

                foreach(string mob in KTHolder.MobNames)
                {
                    KTPopRow = KTPopMobsList.AddRow();
                    ((HudStaticText)KTPopRow[0]).Text = mob;
                    ((HudPictureBox)KTPopRow[1]).Image = GearGraphics.RemoveCircle;
                }

                KTPopMobsList.Click += KTPopMobsList_Click;

                KTPopMobTxt = new HudTextBox();
                KTPopLayout.AddControl(KTPopMobTxt, new Rectangle(0,180,250,16));

                KTPopMobAddButton = new HudButton();
                KTPopLayout.AddControl(KTPopMobAddButton, new Rectangle(260,180,40,16));
                KTPopMobAddButton.Text = "Add";

                KTPopMobAddButton.Hit += KTPopMobAddButton_Hit;

                KTLabel4 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel4, new Rectangle(0,200,100,16));
                KTLabel4.Text = "NPC List:";

                KTPopNPCList = new HudList();
                KTPopLayout.AddControl(KTPopNPCList, new Rectangle(0,220,300,90));
                KTPopNPCList.AddColumn(typeof(HudStaticText),250,null);
                KTPopNPCList.AddColumn(typeof(HudPictureBox),16,null);

                foreach(string mob in KTHolder.NPCNames)
                {
                    KTPopRow = KTPopNPCList.AddRow();
                    ((HudStaticText)KTPopRow[0]).Text = mob;
                    ((HudPictureBox)KTPopRow[1]).Image = GearGraphics.RemoveCircle;
                }

                KTPopNPCList.Click += KTPopNPCList_Click;

                KTPopNPCTxt = new HudTextBox();
                KTPopLayout.AddControl(KTPopNPCTxt, new Rectangle(0,320,250,16));

                KTPopNPCAddButton = new HudButton();
                KTPopLayout.AddControl(KTPopNPCAddButton, new Rectangle(260,320,40,16));
                KTPopNPCAddButton.Text = "Add";

                KTPopNPCAddButton.Hit += KTPopNPCAddButton_Hit;

                KTLabel5 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel5, new Rectangle(0,340,75,16));
                KTLabel5.Text = "NPC Info:";

                KTPopNPCInfo = new HudTextBox();
                KTPopLayout.AddControl(KTPopNPCInfo, new Rectangle(80,340,220,16));
                KTPopNPCInfo.Text = KTHolder.NPCInfo;

                KTLabel6 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel6, new Rectangle(0,360,75,16));
                KTLabel6.Text = "NPC Coords:";

                KTPopNPCCoords = new HudTextBox();
                KTPopLayout.AddControl(KTPopNPCCoords, new Rectangle(80,360,220,16));
                KTPopNPCCoords.Text = KTHolder.NPCCoords;

                KTLabel7 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel7, new Rectangle(0,380,75,16));
                KTLabel7.Text = "Flag Text:";

                KTPopNPCFlagTxt = new HudTextBox();
                KTPopLayout.AddControl(KTPopNPCFlagTxt, new Rectangle(80,380,220,16));
                KTPopNPCFlagTxt.Text = KTHolder.NPCYellowFlagText;

                KTLabel8 = new HudStaticText();
                KTPopLayout.AddControl(KTLabel8, new Rectangle(0, 400, 75,16));
                KTLabel8.Text = "Comp. Text:";

                KTPopNPCCompleteTxt = new HudTextBox();
                KTPopLayout.AddControl(KTPopNPCCompleteTxt, new Rectangle(80,400,220,16));
                KTPopNPCCompleteTxt.Text = KTHolder.NPCYellowCompleteText;

                KTPopView.VisibleChanged += KTPopView_VisibleChanged;

            }catch(Exception ex){LogError(ex);}
        }
Beispiel #35
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); }
        }
Beispiel #36
0
        private void DisposeArmorUpdateTabLayout()
        {
            try
            {
                if (!ArmorUpdateTab) { return; }
                ArmorUpdateHudList.Click -= (sender, row, col) => ArmorUpdateHudList_Click(sender, row, col);
                ArmorUpdateHudListRow = null;
                ArmorUpdateHudList.Dispose();
                ArmorAvailableList.Click -= (sender, row, col) => ArmorAvailableList_Click(sender, row, col);
                ArmorAvailableListRow = null;
                ArmorAvailableList.Dispose();
                lblToonArmorUpdateName.Text = "";
                lblToonArmorUpdateName = null;
                toonArmorUpdateName = null;
                btnClearListArmorAvailable.Hit -= (sender, index) => btnClearListArmorAvailable_Hit(sender, index);
                btnListArmorAvailable.Hit -= (sender, index) => btnListArmorAvailable_Hit(sender, index);
               btnListArmorAvailable = null;
                btnClearListArmorAvailable = null;
                lblToonArmorUpdateLevel.Text = "";
                lblToonArmorUpdateLevel = null;
                lblToonArmorUpdateMaster.Text = "";
                lblToonArmorUpdateMaster = null;
                lblArmorUpdateChoice.Text = "";
                lblArmorUpdateChoice = null;
                txtArmorUpdateChoice.Text = "";
                txtArmorUpdateChoice = null;
                lblArmorUpdateClass.Text = "";
                lblArmorUpdateClass = null;
                txtArmorUpdateClass.Text = "";
                txtArmorUpdateClass= null;
                lblArmorUpdateCovers.Text = "";
                lblArmorUpdateCovers = null;
                cboArmorUpdateCovers.Current = 0;
                cboArmorUpdateCovers = null;
                lblArmorUpdateSet.Text = "";
                lblArmorUpdateSet = null;
                cboArmorUpdateSet.Current = 0;
                cboArmorUpdateSet = null;
               // lblToonArmorUpdateNameInfo.Text = "";
                //lblToonArmorUpdateNameInfo = null;

                ClearArmorUpdateTabVariables();

                ArmorUpdateTab = false;

            }
            catch (Exception ex) { LogError(ex); }
        }
Beispiel #37
0
        /// <summary>
        /// Clears all the text within a specified HudTextBoxType.
        /// </summary>
        public void ClearHudTextBox(TextBoxType boxType)
        {
            HudTextBox theBox = GetHudTextOfType(boxType);

            theBox.RemoveAllText();
        }
Beispiel #38
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;
        }
Beispiel #39
0
    private void b()
    {
        HudTextBox box = ((View)base.a).Underlying.get_Controls().get_Item("Textbox1");

        HudView.set_FocusControl(box);
    }
        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);}
        }
Beispiel #41
0
        private void RenderChiefGearFoundryTab()
        {
            try
            {
                //Left Column

                FoundryControltxt1 = new HudStaticText();
                FoundryControltxt1.Text = "Foundry Actions List:";
                ChiefGearHudFoundry.AddControl(FoundryControltxt1, new Rectangle(5,5,230,16));

                FoundryControlsList = new HudList();
                FoundryControlsList.AddColumn(typeof(HudCheckBox), 16, null);
                FoundryControlsList.AddColumn(typeof(HudStaticText), 190,null);
                ChiefGearHudFoundry.AddControl(FoundryControlsList, new Rectangle(5,25,230,125));

                FoundryControltxt4 = new HudStaticText();
                FoundryControltxt4.Text = "Ringable Keys List:";
                ChiefGearHudFoundry.AddControl(FoundryControltxt4, new Rectangle(5,160,160,16));

                FoundryKeyRingMatchList = new HudList();
                FoundryKeyRingMatchList.AddColumn(typeof(HudStaticText), 190, null);
                FoundryKeyRingMatchList.AddColumn(typeof(HudPictureBox), 16, null);
                ChiefGearHudFoundry.AddControl(FoundryKeyRingMatchList, new Rectangle(5,180,230,75));

                FoundryKeyringMatchRing = new HudStaticText();
                FoundryKeyringMatchRing.Text = "";
                ChiefGearHudFoundry.AddControl(FoundryKeyringMatchRing, new Rectangle(10, 260, 180, 20));

                FoundryControltxt6 = new HudStaticText();
                FoundryControltxt6.Text = "Key Name:Key Ring Name";
                ChiefGearHudFoundry.AddControl(FoundryControltxt6, new Rectangle(5, 280, 180, 20));

                FoundryKeyRingMatchEdit = new HudTextBox();
                ChiefGearHudFoundry.AddControl(FoundryKeyRingMatchEdit, new Rectangle(5, 300, 180, 20));

                FoundryKeyRingMatchAdd = new HudButton();
                FoundryKeyRingMatchAdd.Text = "Add";
                ChiefGearHudFoundry.AddControl(FoundryKeyRingMatchAdd, new Rectangle(195, 300, 45, 20));

                FoundryControltxt5 = new HudStaticText();
                FoundryControltxt5.Text = "Chest and Key Match Lists:";
                ChiefGearHudFoundry.AddControl(FoundryControltxt5, new Rectangle(5,330,160,16));

                FoundryChestMatchList = new HudList();
                FoundryChestMatchList.AddColumn(typeof(HudStaticText), 190, null);
                FoundryChestMatchList.AddColumn(typeof(HudPictureBox), 16, null);
                ChiefGearHudFoundry.AddControl(FoundryChestMatchList, new Rectangle(5,350,230,75));

                FoundryChestMatchEdit = new HudTextBox();
                ChiefGearHudFoundry.AddControl(FoundryChestMatchEdit, new Rectangle(5, 435, 180, 20));

                FoundryChestMatchAdd = new HudButton();
                FoundryChestMatchAdd.Text = "Add";
                ChiefGearHudFoundry.AddControl(FoundryChestMatchAdd, new Rectangle(195, 435, 45, 20));

                //Right Column

                FoundryControltxt2 = new HudStaticText();
                FoundryControltxt2.Text = "Foundry Crafting Combine List:";
                ChiefGearHudFoundry.AddControl(FoundryControltxt2, new Rectangle(250,5,230,16));

                FoundryCraftingCombineList = new HudList();
                FoundryCraftingCombineList.AddColumn(typeof(HudStaticText), 190, null);
                FoundryCraftingCombineList.AddColumn(typeof(HudPictureBox), 16, null);
                ChiefGearHudFoundry.AddControl(FoundryCraftingCombineList, new Rectangle(250,25,230,75));

                FoundryCombineEdit = new HudTextBox();
                ChiefGearHudFoundry.AddControl(FoundryCombineEdit, new Rectangle(250, 105, 180, 20));

                FoundryCombineAdd = new HudButton();
                FoundryCombineAdd.Text = "Add";
                ChiefGearHudFoundry.AddControl(FoundryCombineAdd, new Rectangle(440, 105, 40, 20));

                FoundryControltxt3 = new HudStaticText();
                FoundryControltxt3.Text = "Foundry Crafting Carve List:";
                ChiefGearHudFoundry.AddControl(FoundryControltxt3, new Rectangle(250,130,230,16));

                FoundryCraftingCarveList = new HudList();
                FoundryCraftingCarveList.AddColumn(typeof(HudStaticText), 190, null);
                FoundryCraftingCarveList.AddColumn(typeof(HudPictureBox), 16, null);
                ChiefGearHudFoundry.AddControl(FoundryCraftingCarveList, new Rectangle(250,150,230,75));

                FoundryCarveEdit = new HudTextBox();
                ChiefGearHudFoundry.AddControl(FoundryCarveEdit, new Rectangle(250, 240, 180, 20));

                FoundryCarveAdd = new HudButton();
                FoundryCarveAdd.Text = "Add";
                ChiefGearHudFoundry.AddControl(FoundryCarveAdd, new Rectangle(440, 240, 40, 20));

                FoundryChestKeyMatchList = new HudList();
                FoundryChestKeyMatchList.AddColumn(typeof(HudStaticText), 190, null);
                FoundryChestKeyMatchList.AddColumn(typeof(HudPictureBox), 16, null);
                ChiefGearHudFoundry.AddControl(FoundryChestKeyMatchList, new Rectangle(250,350,230,75));

                FoundryChestMatchEdit2 = new HudTextBox();
                ChiefGearHudFoundry.AddControl(FoundryChestMatchEdit2, new Rectangle(250,435, 180, 20));

                FoundryChestMatchAdd2 = new HudButton();
                FoundryChestMatchAdd2.Text = "Add";
                ChiefGearHudFoundry.AddControl(FoundryChestMatchAdd2, new Rectangle(440, 435, 45, 20));

                FoundryControlsList.Click += FoundryControlsList_Click;
                FoundryCraftingCombineList.Click += FoundryCraftingCombineList_Click;
                FoundryCombineAdd.Hit += FoundryCombineAdd_Hit;
                FoundryCraftingCarveList.Click += FoundryCraftingCarveList_Click;
                FoundryCarveAdd.Hit += FoundryCarveAdd_Hit;
                FoundryKeyRingMatchList.Click += FoundryKeyRingMatchList_Click;
                FoundryKeyRingMatchAdd.Hit += FoundryKeyRingMatchAdd_Hit;

                FoundryChestMatchList.Click += FoundryChestMatchList_Click;
                FoundryChestMatchAdd.Hit += FoundryChestMatchAdd_Hit;
               		FoundryChestMatchAdd2.Hit += FoundryChestMatchEditAdd2_Hit;

                _UpdateFoundryControlPanel();
            }catch(Exception ex){LogError(ex);}
        }
Beispiel #42
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);}
        }
Beispiel #43
0
        private void RenderArmorUpdateTabLayout()
        {
            try
            {
               lblToonArmorUpdateName = new HudStaticText();
                lblToonArmorUpdateName.FontHeight = nmenuFontHeight;
                lblToonArmorUpdateName.Text = "";
                lblToonArmorUpdateLevel = new HudStaticText();
                lblToonArmorUpdateLevel.FontHeight = nmenuFontHeight;
                lblToonArmorUpdateMaster = new HudStaticText();
                lblToonArmorUpdateMaster.FontHeight = nmenuFontHeight;
                ArmorUpdateHudList = new HudList();
                ArmorUpdateHudListRow = new HudList.HudListRowAccessor();
                ArmorAvailableList = new HudList();
                ArmorAvailableListRow = new HudList.HudListRowAccessor();
                armorSelectFilename = currDir + @"\armorSelected.xml";
            //    WriteToChat("Height: " + ArmorHudFirstHeight + ", Width: " + ArmorHudWidth);

                ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateName, new Rectangle(0, 0, 100, 50));
                //ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateLevel, new Rectangle(120, 0, 40, 16));
                //ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateMaster, new Rectangle(150, 0, 60, 16));
                ArmorUpdateHudTabLayout.AddControl(ArmorUpdateHudList, new Rectangle(0, 30, ArmorHudWidth, (ArmorHudHeight) / 3));

                //ArmorHudList.ControlHeight = Convert.ToInt32(.05*ArmorHudHeight);
                ArmorUpdateHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.20 * ArmorHudWidth), null);
                ArmorUpdateHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.15 * ArmorHudWidth), null);
                ArmorUpdateHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.52 * ArmorHudWidth), null);

                ArmorUpdateHudList.Click += (sender, row, col) => ArmorUpdateHudList_Click(sender, row, col);
                ArmorUpdateHudTabLayout.AddControl(ArmorAvailableList, new Rectangle(0, (ArmorHudHeight)/3 + 50, ArmorHudWidth, (3*(ArmorHudHeight/8))));

                //ArmorHudList.ControlHeight = Convert.ToInt32(.08*ArmorHudHeight);
                ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.15 * ArmorHudWidth), null);
                ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.15 * ArmorHudWidth), null);
                ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.10 * ArmorHudWidth), null);
                ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.10 * ArmorHudWidth), null);
                ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.52 * ArmorHudWidth), null);

                ArmorAvailableList.Click += (sender, row, col) => ArmorAvailableList_Click(sender, row, col);

                lblArmorUpdateCovers = new HudStaticText();
                lblArmorUpdateCovers.FontHeight = nmenuFontHeight;
                lblArmorUpdateCovers.Text = "Cov:";
                ControlGroup CoverageChoices = new ControlGroup();
                cboArmorUpdateCovers = new HudCombo(CoverageChoices);
                cboArmorUpdateCovers.Change += (sender, index) => cboArmorUpdateCovers_Change(sender, index);

                int i = 0;
                foreach (IDNameLoadable info in CoverageInvList)
                {
                    cboArmorUpdateCovers.AddItem(info.name, i);
                    i++;
                }

                lblArmorUpdateSet = new HudStaticText();
                lblArmorUpdateSet.FontHeight = nmenuFontHeight;
                lblArmorUpdateSet.Text = "Set:";
                ControlGroup SetChoices = new ControlGroup();
                cboArmorUpdateSet = new HudCombo(SetChoices);
                cboArmorUpdateSet.Change += (sender, index) => cboArmorUpdateSet_Change(sender, index);

                i = 0;
                foreach (IDNameLoadable info in ArmorSetsInvList)
                {
                    cboArmorUpdateSet.AddItem(info.name, i);
                    i++;
                }
                lblArmorUpdateChoice = new HudStaticText();
                lblArmorUpdateChoice.FontHeight = nmenuFontHeight;
                lblArmorUpdateChoice.Text = "Search spells:";
                lblArmorUpdateClass = new HudStaticText();
                lblArmorUpdateClass.Text = "Armor,Jewelry, or Clothing";
                txtArmorUpdateChoice = new HudTextBox();
                txtArmorUpdateClass = new HudTextBox();

                 btnClearListArmorAvailable = new HudButton();
                btnClearListArmorAvailable.Text = "Clear List";
                btnClearListArmorAvailable.Hit += (sender, index) => btnClearListArmorAvailable_Hit(sender, index);

                btnListArmorAvailable = new HudButton();
                btnListArmorAvailable.Text = "List Inventory";
                btnListArmorAvailable.Hit += (sender, index) => btnListArmorAvailable_Hit(sender, index);

                ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateClass, new Rectangle(0, (5 * (ArmorHudHeight / 6)), ArmorHudWidth/6, 18));
                ArmorUpdateHudTabLayout.AddControl(txtArmorUpdateClass, new Rectangle(ArmorHudWidth / 6, (5 * (ArmorHudHeight / 6)), 60, 18));
                ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateChoice, new Rectangle(ArmorHudWidth/6 + 80, (5 * (ArmorHudHeight / 6)), 80, 18));
                ArmorUpdateHudTabLayout.AddControl(txtArmorUpdateChoice, new Rectangle(ArmorHudWidth/3, (5*(ArmorHudHeight/6)), (ArmorHudWidth / 2), 18));
               ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateCovers, new Rectangle(0, (5 * (ArmorHudHeight / 6)+30),(30), 18));
                ArmorUpdateHudTabLayout.AddControl(cboArmorUpdateCovers, new Rectangle(40, (5 * (ArmorHudHeight / 6)+30), 200, 18));
                ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateSet, new Rectangle(ArmorHudWidth / 2, (5 * (ArmorHudHeight / 6)+30), (ArmorHudWidth / 2) + 30, 18));
                ArmorUpdateHudTabLayout.AddControl(cboArmorUpdateSet, new Rectangle((ArmorHudWidth / 2) + 30, (5 * (ArmorHudHeight / 6)+30), (ArmorHudWidth / 2) + 100, 18));
                ArmorUpdateHudTabLayout.AddControl(btnListArmorAvailable, new Rectangle(ArmorHudWidth/3, (5 * (ArmorHudHeight / 6)+60), 100, 18));
                ArmorUpdateHudTabLayout.AddControl(btnClearListArmorAvailable, new Rectangle(ArmorHudWidth / 2, (5 * (ArmorHudHeight / 6)+60), 100, 18));

                ArmorUpdateTab = true;
                   if (toonArmorName == "" || toonArmorName == "None") { toonArmorName = toonName; }
                    lblToonArmorUpdateName.Text = toonArmorName;
                    toonArmorUpdateName = toonArmorName;
                FillArmorUpdateHudList();

            }

            catch (Exception ex) { LogError(ex); }
        }
Beispiel #44
0
        private void DisposeArmorUpdateTabLayout()
        {
            try
            {
                ClearArmorUpdateHudAvariables();
                if (ArmorUpdateHudList != null) { ArmorUpdateHudList.Click -= (sender, row, col) => ArmorUpdateHudList_Click(sender, row, col); }
                if (ArmorAvailableHudList != null) { ArmorAvailableHudList.Click -= (sender, row, col) => ArmorAvailableHudList_Click(sender, row, col); }
                if (btnClearListArmorAvailable != null) { btnClearListArmorAvailable.Hit -= (sender, index) => btnClearListArmorAvailable_Hit(sender, index); }
                if (btnListArmorAvailable != null) { btnListArmorAvailable.Hit -= (sender, index) => btnListArmorAvailable_Hit(sender, index); }
                if (cboArmorAvailableSet != null) { cboArmorAvailableSet.Change -= (sender, index) => cboArmorAvailableSet_Change(sender, index); }
                if (cboArmorAvailableCovers != null) { cboArmorAvailableCovers.Change -= (sender, index) => cboArmorAvailableCovers_Change(sender, index); }
                if (cboArmorAvailableClass != null) { cboArmorAvailableClass.Change -= (sender, index) => cboArmorAvailableClass_Change(sender, index); }
                if (txtArmorAvailableChoice != null) { txtArmorAvailableChoice.LostFocus -= txtArmorAvailableChoice_LostFocus; }

                if (ArmorUpdateHudList != null) { ArmorUpdateHudList = null; }
                if (ArmorUpdateHudListRow != null) { ArmorUpdateHudListRow = null; }
                if (ArmorAvailableHudList != null) { ArmorAvailableHudList = null; }
                if (ArmorAvailableHudListRow != null) { ArmorAvailableHudListRow = null; }
                if (lblToonArmorUpdateName != null) { lblToonArmorUpdateName = null; }
                if (toonArmorUpdateName != null) { toonArmorUpdateName = null; }
                if (lblArmorAvailableChoice != null) { lblArmorAvailableChoice = null; }
                if (txtArmorAvailableChoice != null) { txtArmorAvailableChoice = null; }
                if (lblArmorAvailableClass != null) { lblArmorAvailableClass = null; }
                if (cboArmorAvailableClass != null) { cboArmorAvailableClass = null; }
                if (lblArmorAvailableCovers != null) { lblArmorAvailableCovers = null; }
                if (cboArmorAvailableCovers != null) { cboArmorAvailableCovers = null; }
                if (lblArmorAvailableSet != null) { lblArmorAvailableSet = null; }
                if (cboArmorAvailableSet != null) { cboArmorAvailableSet = null; }
                if (btnListArmorAvailable != null) { btnListArmorAvailable = null; }
                if (btnClearListArmorAvailable != null) { btnClearListArmorAvailable = null; }

            }
            catch (Exception ex) { LogError(ex); }
        }
Beispiel #45
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); }
                };
            }
        }
Beispiel #46
0
        private void RenderArmorHudUpdateArmorTab()
        {
            try
            {
              //  SetUp Initial Information;
                toonArmorUpdateName = AetherCharacter.CharStats.Name;
                string toonArmorUpdateLevel = AetherCharacter.ChracterLevel.ToString();
                     lblToonArmorUpdateName = new HudStaticText();
                     lblToonArmorUpdateName.Text = toonArmorUpdateName;
                     lblToonArmorUpdateLevel = new HudStaticText();
                     lblToonArmorUpdateLevel.Text = "Level: " + toonArmorUpdateLevel;
                     ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateName, new Rectangle(0, 0, 100, 20));
                     ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateLevel, new Rectangle(100, 0, 100, 20));

                //set up list of online toon armor
                     ArmorUpdateHudList = new HudList();
                     ArmorUpdateHudListRow = new HudList.HudListRowAccessor();
                     ArmorUpdateHudTabLayout.AddControl(ArmorUpdateHudList, new Rectangle(0, 40, 985, 155));

                     ArmorUpdateHudList.AddColumn(typeof(HudStaticText), 150, null);//object
                     ArmorUpdateHudList.AddColumn(typeof(HudStaticText), 100, null);//set
                     ArmorUpdateHudList.AddColumn(typeof(HudStaticText), 75, null);//rating
                     ArmorUpdateHudList.AddColumn(typeof(HudStaticText), 200, null);//toonholding
                     ArmorUpdateHudList.AddColumn(typeof(HudStaticText), 450, null);//spells
                     ArmorUpdateHudList.AddColumn(typeof(HudStaticText), 1, null);

                    ArmorUpdateHudList.Click += (sender, row, col) => ArmorUpdateHudList_Click(sender, row, col);

                //set up list of armor available
                     ArmorAvailableHudList = new HudList();
                     ArmorAvailableHudListRow = new HudList.HudListRowAccessor();
                     ArmorUpdateHudTabLayout.AddControl(ArmorAvailableHudList, new Rectangle(0, 205, 985, 180));
                    ArmorAvailableHudList.AddColumn(typeof(HudPictureBox), 20, null);
                    ArmorAvailableHudList.AddColumn(typeof(HudStaticText), 150, null);
                    ArmorAvailableHudList.AddColumn(typeof(HudStaticText), 100, null);
                    ArmorAvailableHudList.AddColumn(typeof(HudStaticText), 75, null);
                    ArmorAvailableHudList.AddColumn(typeof(HudStaticText), 125, null);
                    ArmorAvailableHudList.AddColumn(typeof(HudStaticText), 450, null);
                    ArmorAvailableHudList.AddColumn(typeof(HudStaticText), 1, null);

                     ArmorAvailableHudList.Click += (sender, row, col) => ArmorAvailableHudList_Click(sender, row, col);

                    lblAvailableSearchRules = new HudStaticText();
                    lblAvailableSearchRules.Text = "Search on 1 to 3 choices in name or spells. Use ';' to separate.";

                     lblArmorAvailableCovers = new HudStaticText();
                     lblArmorAvailableCovers.Text = "Cov:";
                     ControlGroup CoverageChoices = new ControlGroup();
                     cboArmorAvailableCovers = new HudCombo(CoverageChoices);
                     cboArmorAvailableCovers.Change += (sender, index) => cboArmorAvailableCovers_Change(sender, index);

                     int i = 0;
                     foreach (IDName info in tDataTable.CoverageInvList)
                     {
                         cboArmorAvailableCovers.AddItem(info.name, i);
                         i++;
                     }

                     lblArmorAvailableSet = new HudStaticText();
                     lblArmorAvailableSet.Text = "Set:";
                     ControlGroup SetChoices = new ControlGroup();
                     cboArmorAvailableSet = new HudCombo(SetChoices);
                     cboArmorAvailableSet.Change += (sender, index) => cboArmorAvailableSet_Change(sender, index);

                     i = 0;
                     foreach (IDName info in tDataTable.ArmorSetsInvList)
                     {
                         cboArmorAvailableSet.AddItem(info.name, i);
                         i++;
                     }
                     lblArmorAvailableChoice = new HudStaticText();
                     lblArmorAvailableChoice.Text = "Search for:";
                     lblArmorAvailableClass = new HudStaticText();
                     lblArmorAvailableClass.Text = "Class:";
                     txtArmorAvailableChoice = new HudTextBox();
                     txtArmorAvailableChoice.LostFocus += txtArmorAvailableChoice_LostFocus;
                     ControlGroup SetClasses = new ControlGroup();
                     cboArmorAvailableClass = new HudCombo(SetClasses);
                     cboArmorAvailableClass.Change += (sender, index) => cboArmorAvailableClass_Change(sender, index);

                     string[] loadme = {"None","Armor","Clothing","Jewelry"};
                     int j = 0;
                     armorAvailableClassList = new List<IDName>();

                      foreach (string load in loadme)
                    {
                        IDName info = new IDName();
                        info.ID = j++;
                        info.name = load;
                        armorAvailableClassList.Add(info);
                        cboArmorAvailableClass.AddItem(info.name, info.ID);
                    }

                     btnClearListArmorAvailable = new HudButton();
                     btnClearListArmorAvailable.Text = "Clear List";
                     btnClearListArmorAvailable.Hit += (sender, index) => btnClearListArmorAvailable_Hit(sender, index);

                     btnListArmorAvailable = new HudButton();
                     btnListArmorAvailable.Text = "List Inventory";

                     btnListArmorAvailable.Hit += (sender, index) => btnListArmorAvailable_Hit(sender, index);

                     ArmorUpdateHudTabLayout.AddControl(lblArmorAvailableClass, new Rectangle(0, 395, 30, 18));
                     ArmorUpdateHudTabLayout.AddControl(cboArmorAvailableClass, new Rectangle(60, 395, 200, 18));
                     ArmorUpdateHudTabLayout.AddControl(lblArmorAvailableChoice, new Rectangle(300, 395, 80, 18));
                     ArmorUpdateHudTabLayout.AddControl(txtArmorAvailableChoice, new Rectangle(410, 395, 490, 18));
                     ArmorUpdateHudTabLayout.AddControl(lblArmorAvailableCovers, new Rectangle(0, 425, 30, 18));
                     ArmorUpdateHudTabLayout.AddControl(cboArmorAvailableCovers, new Rectangle(60, 425, 200, 18));
                     ArmorUpdateHudTabLayout.AddControl(lblArmorAvailableSet, new Rectangle(0, 455, 30, 18));
                     ArmorUpdateHudTabLayout.AddControl(cboArmorAvailableSet, new Rectangle(60, 455, 200, 18));
                     ArmorUpdateHudTabLayout.AddControl(lblAvailableSearchRules, new Rectangle(500, 425, 380, 18));
                     ArmorUpdateHudTabLayout.AddControl(btnListArmorAvailable, new Rectangle(330, 455, 100, 18));
                     ArmorUpdateHudTabLayout.AddControl(btnClearListArmorAvailable, new Rectangle(490, 455, 100, 18));

                     FillArmorUpdateHudList();

            }
            catch (Exception ex) { LogError(ex); }
        }