コード例 #1
0
ファイル: EquipmentTab.cs プロジェクト: patri0t86/ACManager
        private void LoadSuits()
        {
            try
            {
                foreach (Equipment item in Parent.Machine.Utility.EquipmentSettings.IdleEquipment)
                {
                    HudList.HudListRowAccessor row = IdleEquipmentList.AddRow();
                    using (HudStaticText newItem = new HudStaticText())
                    {
                        newItem.Text = item.Name;
                        row[0]       = newItem;
                    }
                }

                foreach (Equipment item in Parent.Machine.Utility.EquipmentSettings.BuffingEquipment)
                {
                    HudList.HudListRowAccessor row = BuffEquipmentList.AddRow();
                    using (HudStaticText newItem = new HudStaticText())
                    {
                        newItem.Text = item.Name;
                        row[0]       = newItem;
                    }
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #2
0
ファイル: GemsTab.cs プロジェクト: patri0t86/ACManager
        private void SetupGemsList()
        {
            try
            {
                HudList.HudListRowAccessor row = Gems.AddRow();
                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = "Gem";
                    row[0]    = text;
                }

                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = "Keyword";
                    row[1]    = text;
                }
                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = "Heading";
                    row[2]    = text;
                }
            }
            catch (Exception ex)
            {
                Debug.LogException(ex);
            }
        }
コード例 #3
0
ファイル: GemsTab.cs プロジェクト: patri0t86/ACManager
        private void GetGems()
        {
            SetupGemsList();
            foreach (GemSetting gemSetting in Parent.Machine.Utility.BotSettings.GemSettings)
            {
                HudList.HudListRowAccessor row = Gems.AddRow();
                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = gemSetting.Name;
                    row[0]    = text;
                }

                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = gemSetting.Keyword;
                    row[1]    = text;
                }

                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = gemSetting.Heading.ToString();
                    row[2]    = text;
                }
            }
        }
コード例 #4
0
ファイル: EquipmentTab.cs プロジェクト: patri0t86/ACManager
        private void BuffAddEquipment_Hit(object sender, EventArgs e)
        {
            try
            {
                if (Parent.Machine.FinishedInitialScan)
                {
                    if (Parent.Machine.Core.CharacterFilter.Name.Equals(Parent.Machine.BuffingCharacter))
                    {
                        if (!Parent.Machine.Core.Actions.CurrentSelection.Equals(0) && Parent.Machine.Core.CharacterFilter.Name.Equals(Parent.Machine.BuffingCharacter))
                        {
                            foreach (WorldObject item in Parent.Machine.CharacterEquipment)
                            {
                                if (item.Id.Equals(Parent.Machine.Core.Actions.CurrentSelection))
                                {
                                    Equipment newEquipment = new Equipment
                                    {
                                        Id          = item.Id,
                                        Name        = item.Name,
                                        EquipMask   = item.Values(LongValueKey.EquipableSlots),
                                        ObjectClass = item.ObjectClass.ToString()
                                    };

                                    if (!Parent.Machine.Utility.EquipmentSettings.BuffingEquipment.Contains(newEquipment))
                                    {
                                        HudList.HudListRowAccessor row = BuffEquipmentList.AddRow();
                                        using (HudStaticText control = new HudStaticText())
                                        {
                                            control.Text = item.Name;
                                            row[0]       = control;
                                        }

                                        Parent.Machine.Utility.EquipmentSettings.BuffingEquipment.Add(newEquipment);
                                        Parent.Machine.Utility.SaveEquipmentSettings();
                                    }
                                    else
                                    {
                                        Debug.ToChat("This item is already in the buffing suit.");
                                    }

                                    break;
                                }
                            }
                        }
                        else
                        {
                            Debug.ToChat("Make sure you have an item selected.");
                        }
                    }
                    else
                    {
                        Debug.ToChat("You must set the buffing character to this character, or be logged into the buffing character to add equipment.");
                    }
                }
                else
                {
                    Debug.ToChat("Please wait until finished scanning your inventory.");
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #5
0
ファイル: b6.cs プロジェクト: obfuscators-2019/VirindiTank
    public override void a(object A_0)
    {
        HudFixedLayout layout = A_0 as HudFixedLayout;

        if (layout != null)
        {
            int y = 4;
            this.d = new HudStaticText();
            layout.AddControl(this.d, new Rectangle(4, y, 0x124, 0x10));
            this.d.set_Text(this.a.k());
            y += 20;
            this.c.Clear();
            this.b = new HudCombo(layout.get_Group());
            layout.AddControl(this.b, new Rectangle(4, y, 150, 0x10));
            foreach (int num2 in cl.GetTypeIDs <fl>())
            {
                this.c.Add(num2);
                fl fl = cl.Create <fl>(num2);
                this.b.AddItem(fl.g(), null);
                if (fl.f() == this.a.f())
                {
                    this.b.set_Current(this.b.get_Count() - 1);
                }
            }
            this.b.add_Change(new EventHandler(this.a));
            HudButton button = new HudButton();
            layout.AddControl(button, new Rectangle(0x9e, y, 100, 0x10));
            button.set_Text("Edit");
            button.add_Hit(new EventHandler(this.c));
        }
    }
コード例 #6
0
        private void AddAdvertisement_Hit(object sender, EventArgs e)
        {
            try
            {
                if (!string.IsNullOrEmpty(NewAdvertisement.Text))
                {
                    HudList.HudListRowAccessor row = Advertisements.AddRow();
                    using (HudStaticText control = new HudStaticText())
                    {
                        string ad = NewAdvertisement.Text;
                        control.Text          = ad;
                        row[0]                = control;
                        NewAdvertisement.Text = "";

                        Advertisement advertisement = new Advertisement
                        {
                            Message = ad
                        };
                        Parent.Machine.Utility.BotSettings.Advertisements.Add(advertisement);
                        Parent.Machine.Utility.SaveBotSettings();
                    }
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #7
0
        private void Refresh()
        {
            if (lib.gameStatus > 0)
            {
                for (int n = 0; n < MainView.PlayerList.RowCount; n++)
                {
                    bool flag1 = true;
                    HudList.HudListRowAccessor hudListRowAccessor = MainView.PlayerList[n];
                    HudStaticText hudStaticText1 = (HudStaticText)hudListRowAccessor[5];
                    int           num1           = Convert.ToInt32(hudStaticText1.Text);
                    if (lib.MyCore.Actions.IsValidObject(num1))
                    {
                        WorldObject worldObject1 = lib.MyCore.WorldFilter[num1];
                        if (worldObject1.ObjectClass == ObjectClass.Player)
                        {
                            UpdateRow(worldObject1, hudListRowAccessor);
                            flag1 = false;
                        }
                    }
                    if (flag1)
                    {
                        MainView.PlayerList.RemoveRow(n);
                    }
                }

                for (int m = 0; m < MainView.GuildList.RowCount; m++)
                {
                    bool flag2 = true;
                    HudList.HudListRowAccessor hudListRowAccessor = MainView.GuildList[m];
                    HudStaticText hudStaticText2 = (HudStaticText)hudListRowAccessor[5];
                    int           num2           = Convert.ToInt32(hudStaticText2.Text);
                    if (lib.MyCore.Actions.IsValidObject(num2))
                    {
                        WorldObject worldObject2 = lib.MyCore.WorldFilter[num2];
                        if (worldObject2.ObjectClass == ObjectClass.Player)
                        {
                            UpdateRow(worldObject2, hudListRowAccessor);
                            flag2 = false;
                        }
                    }
                    if (flag2)
                    {
                        MainView.GuildList.RemoveRow(m);
                    }
                }

                MainView.GuildNote.Text = "Friendlies " + Convert.ToString(MainView.GuildList.RowCount);
                MainView.EnemyNote.Text = Convert.ToString(MainView.PlayerList.RowCount) + " Enemies";

                if (lib.LastSelected != 0 && !lib.MyCore.Actions.IsValidObject(lib.LastSelected))
                {
                    lib.LastSelected = 0;
                    lib.PointArrow.Dispose();
                    lib.PointArrow = null;
                }
            }
        }
コード例 #8
0
 private void GetAdvertisements()
 {
     for (int i = 0; i < Parent.Machine.Utility.BotSettings.Advertisements.Count; i++)
     {
         HudList.HudListRowAccessor rowAccessor = Advertisements.AddRow();
         using (HudStaticText row = new HudStaticText())
         {
             row.Text       = Parent.Machine.Utility.BotSettings.Advertisements[i].Message;
             rowAccessor[0] = row;
         }
     }
 }
コード例 #9
0
 private void Refresh2()
 {
     if (lib.gameStatus > 0)
     {
         for (int k = 0; k < MainView.CorpseList.RowCount; k++)
         {
             bool flag3 = true;
             HudList.HudListRowAccessor hudListRowAccessor = MainView.CorpseList[k];
             HudStaticText hudStaticText3 = (HudStaticText)hudListRowAccessor[5];
             int           num3           = Convert.ToInt32(hudStaticText3.Text);
             if (lib.MyCore.Actions.IsValidObject(num3))
             {
                 WorldObject worldObject2 = lib.MyCore.WorldFilter[num3];
                 if (worldObject2.ObjectClass == ObjectClass.Corpse)
                 {
                     UpdateRow(worldObject2, hudListRowAccessor);
                     flag3 = false;
                 }
             }
             if (flag3)
             {
                 MainView.CorpseList.RemoveRow(k);
             }
         }
         for (int l = 0; l < MainView.PortalList.RowCount; l++)
         {
             bool flag4 = true;
             HudList.HudListRowAccessor hudListRowAccessor = MainView.PortalList[l];
             HudStaticText hudStaticText4 = (HudStaticText)hudListRowAccessor[5];
             int           num4           = Convert.ToInt32(hudStaticText4.Text);
             if (lib.MyCore.Actions.IsValidObject(num4))
             {
                 WorldObject worldObject3 = lib.MyCore.WorldFilter[num4];
                 if (worldObject3.ObjectClass == ObjectClass.Portal)
                 {
                     UpdateRow(worldObject3, hudListRowAccessor);
                     flag4 = false;
                 }
             }
             if (flag4)
             {
                 MainView.PortalList.RemoveRow(l);
             }
         }
         if (lib.LastSelected != 0 && !lib.MyCore.Actions.IsValidObject(lib.LastSelected))
         {
             lib.LastSelected = 0;
             lib.PointArrow.Dispose();
             lib.PointArrow = null;
         }
     }
 }
コード例 #10
0
ファイル: PortalsTab.cs プロジェクト: patri0t86/ACManager
 private void PrimaryKeyword_Change(object sender, EventArgs e)
 {
     try
     {
         if (!CharacterChoice.Current.Equals(0))
         {
             HudStaticText selectedCharacter = (HudStaticText)CharacterChoice[CharacterChoice.Current];
             Character     character         = CharacterExistsOrNew(selectedCharacter.Text);
             UpdatePortalKeyword(character, PortalType.Primary, PrimaryKeyword.Text.ToLower());
             selectedCharacter.Dispose();
         }
     }
     catch (Exception ex) { Debug.LogException(ex); }
 }
コード例 #11
0
ファイル: PortalsTab.cs プロジェクト: patri0t86/ACManager
 private void SecondaryDescription_Change(object sender, EventArgs e)
 {
     try
     {
         if (!CharacterChoice.Current.Equals(0))
         {
             HudStaticText selectedCharacter = (HudStaticText)CharacterChoice[CharacterChoice.Current];
             Character     character         = CharacterExistsOrNew(selectedCharacter.Text);
             UpdatePortalDescription(character, PortalType.Secondary, SecondaryDescription.Text);
             selectedCharacter.Dispose();
         }
     }
     catch (Exception ex) { Debug.LogException(ex); }
 }
コード例 #12
0
    public override void a(object A_0)
    {
        HudFixedLayout layout = A_0 as HudFixedLayout;

        if (layout != null)
        {
            this.b = new HudStaticText();
            layout.AddControl(this.b, new Rectangle(4, 4, 0x124, 0x10));
            this.b.set_Text(this.k());
            HudButton button = new HudButton();
            layout.AddControl(button, new Rectangle(4, 0x18, 200, 0x10));
            button.set_Text("Set Current");
            button.add_Hit(new EventHandler(this.a));
        }
    }
コード例 #13
0
ファイル: PluginCore.cs プロジェクト: Oonej/ChaosHelper
        void LoadListOfConfigs()
        {
            string[] configs = Util.GetListofConfigs();

            if (ConfigChoice.Count > 0)
            {
                ConfigChoice.Clear();
            }

            for (int i = 0; i < configs.Length; i++)
            {
                HudStaticText temp = new HudStaticText();
                temp.Text = configs[i];
                ConfigChoice.AddItem(temp, configs[i]);
            }
        }
コード例 #14
0
 private void RemoveWorldObject(int id, HudList hl)
 {
     try
     {
         for (int i = hl.RowCount - 1; i >= 0; i--)
         {
             HudList.HudListRowAccessor hudListRowAccessor = hl[i];
             HudStaticText hudStaticText = (HudStaticText)hudListRowAccessor[5];
             if (Convert.ToInt32(hudStaticText.Text) == id)
             {
                 hl.RemoveRow(i);
             }
         }
     }
     catch (Exception ex) { Repo.RecordException(ex); }
 }
コード例 #15
0
		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); }
		}
コード例 #16
0
        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); }
        }
コード例 #17
0
        private void CharacterChoice_Change(object sender, System.EventArgs e)
        {
            SetupInventoryColumns();
            if (!CharacterChoice.Current.Equals(0))
            {
                using (HudStaticText selectedCharacter = (HudStaticText)CharacterChoice[CharacterChoice.Current])
                {
                    CharacterInventory inventory = GetInventory(selectedCharacter.Text);
                    if (inventory != null)
                    {
                        foreach (AcmComponent component in inventory.Components)
                        {
                            HudList.HudListRowAccessor row = InventoryList.AddRow();
                            using (HudStaticText name = new HudStaticText())
                            {
                                name.Text = component.Name;
                                row[0]    = name;
                            }

                            using (HudStaticText quantity = new HudStaticText())
                            {
                                quantity.Text = component.Quantity.ToString();
                                row[1]        = quantity;
                            }
                        }

                        foreach (Gem gem in inventory.Gems)
                        {
                            HudList.HudListRowAccessor row = InventoryList.AddRow();
                            using (HudStaticText name = new HudStaticText())
                            {
                                name.Text = gem.Name;
                                row[0]    = name;
                            }

                            using (HudStaticText quantity = new HudStaticText())
                            {
                                quantity.Text = gem.Quantity.ToString();
                                row[1]        = quantity;
                            }
                        }
                    }
                }
            }
        }
コード例 #18
0
ファイル: EquipmentTab.cs プロジェクト: patri0t86/ACManager
 private void IdleEquipmentList_Click(object sender, int row, int col)
 {
     try
     {
         using (HudStaticText equipmentToDelete = (HudStaticText)IdleEquipmentList[row][0])
         {
             IdleEquipmentList.RemoveRow(row);
             foreach (Equipment item in Parent.Machine.Utility.EquipmentSettings.IdleEquipment)
             {
                 if (item.Name.Equals(equipmentToDelete.Text))
                 {
                     Parent.Machine.Utility.EquipmentSettings.IdleEquipment.Remove(item);
                     break;
                 }
             }
         }
         Parent.Machine.Utility.SaveEquipmentSettings();
     }
     catch (Exception ex) { Debug.LogException(ex); }
 }
コード例 #19
0
        private void Advertisements_Click(object sender, int row, int col)
        {
            try
            {
                HudStaticText adToDelete = (HudStaticText)Advertisements[row][0];
                Advertisements.RemoveRow(row);

                for (int i = 0; i < Parent.Machine.Utility.BotSettings.Advertisements.Count; i++)
                {
                    if (Parent.Machine.Utility.BotSettings.Advertisements[i].Message.Equals(adToDelete.Text))
                    {
                        Parent.Machine.Utility.BotSettings.Advertisements.RemoveAt(i);
                        break;
                    }
                }

                Parent.Machine.Utility.SaveBotSettings();
                adToDelete.Dispose();
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #20
0
        private void _processPlayerRemove(Player player)
        {
            PlayerIcon playerIcon = _playerIcons.Find(icon => icon.Id == player.Id);

            if (playerIcon != null)
            {
                playerIcon.Icon.Dispose();
            }

            _playerIcons.Remove(playerIcon);
            HudList playersView = player.Enemy ? _enemyListView : _friendlyListView;

            for (int i = 0; i < playersView.RowCount; i++)
            {
                HudStaticText name = (HudStaticText)playersView[i][1];
                if (name.Text == player.Name)
                {
                    playersView.RemoveRow(i);
                }
            }
        }
コード例 #21
0
ファイル: PortalsTab.cs プロジェクト: patri0t86/ACManager
 private void SecondaryHeading_Change(object sender, EventArgs e)
 {
     try
     {
         if (!CharacterChoice.Current.Equals(0))
         {
             HudStaticText selectedCharacter = (HudStaticText)CharacterChoice[CharacterChoice.Current];
             Character     character         = CharacterExistsOrNew(selectedCharacter.Text);
             if (double.TryParse(SecondaryHeading.Text, out double result))
             {
                 if (result >= 360)
                 {
                     result = 0;
                     UpdatePortalHeading(character, PortalType.Secondary, result);
                     SecondaryHeading.Text = result.ToString();
                 }
                 else if (result <= -1)
                 {
                     result = -1;
                     UpdatePortalHeading(character, PortalType.Secondary, result);
                     SecondaryHeading.Text = result.ToString();
                 }
                 else
                 {
                     UpdatePortalHeading(character, PortalType.Secondary, result);
                 }
             }
             else
             {
                 SecondaryHeading.Text = $"{default(double)}";
                 UpdatePortalHeading(character, PortalType.Secondary, default);
             }
             selectedCharacter.Dispose();
         }
     }
     catch (Exception ex)
     {
         Debug.LogException(ex);
     }
 }
コード例 #22
0
ファイル: PortalsTab.cs プロジェクト: patri0t86/ACManager
        private void CharacterChoice_Change(object sender, EventArgs e)
        {
            try
            {
                ClearUI();
                if (!CharacterChoice.Current.Equals(0))
                {
                    HudStaticText selectedCharacter = (HudStaticText)CharacterChoice[CharacterChoice.Current];
                    Character     character         = CharacterExistsOrNew(selectedCharacter.Text);

                    if (character.Portals.Count > 0)
                    {
                        foreach (Portal portal in character.Portals)
                        {
                            if (portal.Type.Equals(PortalType.Primary))
                            {
                                PrimaryKeyword.Text     = !string.IsNullOrEmpty(portal.Keyword) ? portal.Keyword : "";
                                PrimaryDescription.Text = !string.IsNullOrEmpty(portal.Description) ? portal.Description : "";
                                PrimaryHeading.Text     = portal.Heading.ToString();
                                PrimaryLevel.Text       = portal.Level.ToString();
                            }
                            else
                            {
                                SecondaryKeyword.Text     = !string.IsNullOrEmpty(portal.Keyword) ? portal.Keyword : "";
                                SecondaryDescription.Text = !string.IsNullOrEmpty(portal.Description) ? portal.Description : "";
                                SecondaryHeading.Text     = portal.Heading.ToString();
                                SecondaryLevel.Text       = portal.Level.ToString();
                            }
                        }
                    }
                    else
                    {
                        ClearUI();
                    }

                    selectedCharacter.Dispose();
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #23
0
ファイル: PortalsTab.cs プロジェクト: patri0t86/ACManager
 private void PrimaryLevel_Change(object sender, EventArgs e)
 {
     try
     {
         if (!CharacterChoice.Current.Equals(0))
         {
             using (HudStaticText selectedCharacter = (HudStaticText)CharacterChoice[CharacterChoice.Current])
             {
                 Character character = CharacterExistsOrNew(selectedCharacter.Text);
                 if (int.TryParse(PrimaryLevel.Text, out int result))
                 {
                     if (result >= 275)
                     {
                         result = 275;
                         UpdatePortalLevel(character, PortalType.Primary, result);
                         PrimaryLevel.Text = result.ToString();
                     }
                     else if (result < 0)
                     {
                         result = 0;
                         UpdatePortalLevel(character, PortalType.Primary, result);
                         PrimaryLevel.Text = result.ToString();
                     }
                     else
                     {
                         UpdatePortalLevel(character, PortalType.Primary, result);
                     }
                 }
                 else
                 {
                     PrimaryLevel.Text = $"{default(int)}";
                     UpdatePortalLevel(character, PortalType.Primary, default);
                 }
             }
         }
     }
     catch (Exception ex) { Debug.LogException(ex); }
 }
コード例 #24
0
        private void SetupInventoryColumns()
        {
            try
            {
                InventoryList.ClearRows();
                HudList.HudListRowAccessor row = InventoryList.AddRow();
                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = "Item";
                    row[0]    = text;
                }

                using (HudStaticText text = new HudStaticText())
                {
                    text.Text = "Quantity";
                    row[1]    = text;
                }
            }
            catch (Exception ex)
            {
                Debug.LogException(ex);
            }
        }
コード例 #25
0
ファイル: GemsTab.cs プロジェクト: patri0t86/ACManager
        private void Gems_Click(object sender, int row, int col)
        {
            try
            {
                if (!row.Equals(0))
                {
                    HudStaticText gemToDelete = (HudStaticText)Gems[row][0];
                    Gems.RemoveRow(row);

                    for (int i = 0; i < Parent.Machine.Utility.BotSettings.GemSettings.Count; i++)
                    {
                        if (Parent.Machine.Utility.BotSettings.GemSettings[i].Name.Equals(gemToDelete.Text))
                        {
                            Parent.Machine.Utility.BotSettings.GemSettings.RemoveAt(i);
                            break;
                        }
                    }

                    Parent.Machine.Utility.SaveBotSettings();
                    gemToDelete.Dispose();
                }
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #26
0
 private void BuffingCharacterChoice_Change(object sender, EventArgs e)
 {
     try
     {
         if (!BuffingCharacterChoice.Current.Equals(0))
         {
             using (HudStaticText selectedCharacter = (HudStaticText)BuffingCharacterChoice[BuffingCharacterChoice.Current])
             {
                 Parent.Machine.BuffingCharacter = Parent.Machine.Utility.BotSettings.BuffingCharacter = selectedCharacter.Text;
                 Debug.ToChat($"The buff bot feature is now enabled using {selectedCharacter.Text}.");
             }
         }
         else
         {
             Parent.Machine.BuffingCharacter = Parent.Machine.Utility.BotSettings.BuffingCharacter = "";
             Debug.ToChat("The buff bot feature is now disabled.");
         }
         Parent.Machine.Utility.SaveBotSettings();
     }
     catch (Exception ex)
     {
         Debug.LogException(ex);
     }
 }
コード例 #27
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);
            }
        }
    }
コード例 #28
0
ファイル: armor.cs プロジェクト: Kkarinisme/GearTemp
        private void RenderArmorSettingsTabLayout()
        {
            try
            {
                xdocGenArmor = XDocument.Load(genArmorFilename);

                List<XElement> names = new List<XElement>();
                 IEnumerable<XElement> prenames = xdocGenArmor.Element("Objs").Descendants("Obj");
                var lstsorted = from element in prenames
                                 orderby element.Element("ToonName").Value ascending

                                 select element;
                names.AddRange(lstsorted);

                ControlGroup myToonNames = new ControlGroup();
                cboToonArmorName = new HudCombo(myToonNames);

                cboToonArmorName.Change += (sender,index) => cboToonArmorName_Change(sender,index);
                btnInventoryArmor = new HudButton();
                btnInventoryArmor.Text = "Inventory Armor";
                btnInventoryArmor.Hit += (sender,index) => btnInventoryArmor_Hit(sender,index);

               lstAllToonName = new List<string>();
                try{
                    string name = "";
                    lstAllToonName.Add("None");
                    cboToonArmorName.AddItem("None", 0);
                     foreach (XElement el in names)
                    {
                        name = el.Element("ToonName").Value;
                        int i = 1;
                        if (!lstAllToonName.Contains(name))
                        {
                            try
                            {
                                lstAllToonName.Add(name);
                                cboToonArmorName.AddItem(name, i);
                                i++;
                            }
                            catch (Exception ex) { LogError(ex); }

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

                lblToonSettingsNameInfo = new HudStaticText();
                lblToonSettingsNameInfo.FontHeight = nmenuFontHeight;
                lblToonSettingsNameInfo.Text = "Name of toon whose armor to be studied:";

                ArmorHudSettings.AddControl(btnInventoryArmor, new Rectangle(5, 30, 100, 20));

                ArmorHudSettings.AddControl(lblToonSettingsNameInfo,new Rectangle(5,100,300,16));

               ArmorHudSettings.AddControl(cboToonArmorName, new Rectangle(320, 100, 150, 16));

                ArmorSettingsTab = true;
                xdocGenArmor = null;
             }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #29
0
ファイル: armor.cs プロジェクト: Kkarinisme/GearTemp
        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); }
        }
コード例 #30
0
        private void AlterTacticianHud()
        {
            try
            {
                TacticianDiplayList.Click -= TacticianDiplayList_Click;

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

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

                TacticianDiplayList.Click += TacticianDiplayList_Click;

                UpdateTactician();
            }catch(Exception ex){LogError(ex);}
        }
コード例 #31
0
        private void RenderTacticianHud()
        {
            try
            {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                UpdateTactician();

            }catch(Exception ex){LogError(ex);}
        }
コード例 #32
0
 private void UpdateWorldObject(WorldObject obj, HudList hl)
 {
     try
     {
         if (obj.Container != 0)
         {
             RemoveWorldObject(obj.Id, hl);
         }
         else
         {
             for (int i = 0; i < hl.RowCount; i++)
             {
                 HudList.HudListRowAccessor hudListRowAccessor = hl[i];
                 HudStaticText hudStaticText = (HudStaticText)hudListRowAccessor[5];
                 if (Convert.ToInt32(hudStaticText.Text) == obj.Id)
                 {
                     bool flag = false;
                     if (!flag && hl.Equals(MainView.CorpseList) && obj.ObjectClass == ObjectClass.Corpse)
                     {
                         flag = true;
                     }
                     if (!flag && hl.Equals(MainView.PortalList) && obj.ObjectClass == ObjectClass.Portal)
                     {
                         flag = true;
                     }
                     if (!flag && obj.ObjectClass == ObjectClass.Player)
                     {
                         if (hl.Equals(MainView.GuildList) && obj.Id == lib.MyCore.CharacterFilter.Id)
                         {
                             flag = true;
                         }
                         else if (hl.Equals(MainView.GuildList) && IsFriend(obj))
                         {
                             flag = true;
                         }
                         else if (hl.Equals(MainView.PlayerList) && IsEnemy(obj))
                         {
                             flag = true;
                         }
                         else if (hl.Equals(MainView.GuildList) && obj.Values(LongValueKey.Monarch) == lib.moncheck && obj.Id != lib.MyCore.CharacterFilter.Id)
                         {
                             flag = true;
                         }
                         else if (hl.Equals(MainView.PlayerList) && obj.Values(LongValueKey.Monarch) != lib.moncheck && obj.Id != lib.MyCore.CharacterFilter.Id)
                         {
                             flag = true;
                         }
                     }
                     if (flag)
                     {
                         UpdateRow(obj, hudListRowAccessor);
                     }
                     else
                     {
                         RemoveWorldObject(obj.Id, hl);
                     }
                 }
             }
         }
     }
     catch (Exception ex) { Repo.RecordException(ex); }
 }
コード例 #33
0
ファイル: KillTasks.cs プロジェクト: Kkarinisme/GearTemp
        private void RenderKillTaskPanel()
        {
            try
            {
                if(TaskHudView != null)
                {
                    DisposeKillTaskPanel();
                }

                TaskHudView = new HudView("GearTasker", mKTSet.HudWidth, mKTSet.HudHeight, new ACImage(0x6AA4));
                TaskHudView.UserAlphaChangeable = false;
                TaskHudView.ShowInBar = false;
                if(mKTSet.RenderMini){TaskHudView.UserResizeable = false;}
                else{TaskHudView.UserResizeable = true;}
                TaskHudView.Visible = true;
                TaskHudView.Ghosted = false;
                TaskHudView.UserClickThroughable = false;
                TaskHudView.UserMinimizable = true;
                TaskHudView.LoadUserSettings();

                TaskTabView = new HudTabView();
                TaskHudView.Controls.HeadControl = TaskTabView;

                TaskIncompleteLayout = new HudFixedLayout();
                TaskTabView.AddTab(TaskIncompleteLayout, "Incomplete");

                IncTaskLabel1 = new HudStaticText();
                TaskIncompleteLayout.AddControl(IncTaskLabel1, new Rectangle(0,0,60,16));
                IncTaskLabel1.Text = "Task Name";

                IncTaskLabel2 = new HudStaticText();
                TaskIncompleteLayout.AddControl(IncTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth - mKTSet.HudWidth/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16));
                IncTaskLabel2.Text = "Status";

                TaskIncompleteList = new HudList();
                TaskIncompleteLayout.AddControl(TaskIncompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20));
                TaskIncompleteList.ControlHeight = 16;
                TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null);  //Mob/Item Name
                TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null);  //Completion

                VirindiViewService.TooltipSystem.AssociateTooltip(TaskIncompleteList, "Click for task completion info.");

                TaskIncompleteList.Click += TaskIncompleteList_Click;

                TaskCompleteLayout = new HudFixedLayout();
                TaskTabView.AddTab(TaskCompleteLayout, "Complete");
                TaskCompleteList = new HudList();

                CompTaskLabel1 = new HudStaticText();
                TaskCompleteLayout.AddControl(CompTaskLabel1, new Rectangle(0,0,60,16));
                CompTaskLabel1.Text = "Task Name";

                CompTaskLabel2 = new HudStaticText();
                TaskCompleteLayout.AddControl(CompTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth*2/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16));
                CompTaskLabel2.Text = "Return";

                TaskCompleteLayout.AddControl(TaskCompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20));
                TaskCompleteList.ControlHeight = 16;
                TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null);  //Mob/Item Name
                TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null);  //Completion

                VirindiViewService.TooltipSystem.AssociateTooltip(TaskCompleteList, "Click for turn in info.");

                TaskCompleteList.Click += TaskCompleteList_Click;

                KillTaskLayout = new HudFixedLayout();
                TaskTabView.AddTab(KillTaskLayout, "Kill");

                KillTaskSelected = new HudStaticText();
                KillTaskLayout.AddControl(KillTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16));
                KillTaskSelected.Text = String.Empty;

                KillTaskNew = new HudButton();
                KillTaskLayout.AddControl(KillTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16));
                KillTaskNew.Text = "New";
                KillTaskNew.Hit += KillTaskNew_Hit;

                KillTaskDelete = new HudButton();
                KillTaskLayout.AddControl(KillTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16));
                KillTaskDelete.Text = "Del";
                KillTaskDelete.Hit += KillTaskDelete_Hit;

                KillTaskEdit = new HudButton();
                KillTaskLayout.AddControl(KillTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16));
                KillTaskEdit.Text = "Edit";
                KillTaskEdit.Hit += KillTaskEdit_Hit;

                KTPanelLabel1 = new HudStaticText();
                KillTaskLayout.AddControl(KTPanelLabel1, new Rectangle(0,20,50,16));
                KTPanelLabel1.Text = "Track";

                KTPanelLabel2 = new HudStaticText();
                KillTaskLayout.AddControl(KTPanelLabel2, new Rectangle(40,20,100,16));
                KTPanelLabel2.Text = "Task Name";

                KillTaskList = new HudList();
                KillTaskLayout.AddControl(KillTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight-20));
                KillTaskList.ControlHeight = 16;
                KillTaskList.AddColumn(typeof(HudCheckBox), 16, null);  //Track
                KillTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null);  //TaskName

                VirindiViewService.TooltipSystem.AssociateTooltip(KillTaskList, "Enable Tracking or Click for info.");

                KillTaskList.Click += KillTaskList_Click;

                CollectTaskLayout = new HudFixedLayout();
                TaskTabView.AddTab(CollectTaskLayout, "Collect");

                CollectTaskSelected = new HudStaticText();
                CollectTaskLayout.AddControl(CollectTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16));
                CollectTaskSelected.Text = String.Empty;

                CollectTaskNew = new HudButton();
                CollectTaskLayout.AddControl(CollectTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16));
                CollectTaskNew.Text = "New";
                CollectTaskNew.Hit += CollectTaskNew_Hit;

                CollectTaskDelete = new HudButton();
                CollectTaskLayout.AddControl(CollectTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16));
                CollectTaskDelete.Text = "Del";
                CollectTaskDelete.Hit += CollectTaskDelete_Hit;

                CollectTaskEdit = new HudButton();
                CollectTaskLayout.AddControl(CollectTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16));
                CollectTaskEdit.Text = "Edit";
                CollectTaskEdit.Hit += CollectTaskEdit_Hit;

                CTPanelLabel1 = new HudStaticText();
                CollectTaskLayout.AddControl(CTPanelLabel1, new Rectangle(0,20,50,16));
                CTPanelLabel1.Text = "Track";

                CTPanelLabel2 = new HudStaticText();
                CollectTaskLayout.AddControl(CTPanelLabel2, new Rectangle(40,20,100,16));
                CTPanelLabel2.Text = "Task Name";

                CollectTaskList = new HudList();
                CollectTaskLayout.AddControl(CollectTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight));
                CollectTaskList.ControlHeight = 16;
                CollectTaskList.AddColumn(typeof(HudCheckBox), 16, null);  //Track
                CollectTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null);  //TaskName

                VirindiViewService.TooltipSystem.AssociateTooltip(CollectTaskList, "Enable Tracking or Click for info.");

                CollectTaskList.Click += CollectTaskList_Click;
                TaskHudView.Resize += TaskHudView_Resize;
                TaskHudView.VisibleChanged += TaskHudView_VisibleChanged;

                UpdateTaskPanel();

            }catch(Exception ex){LogError(ex);}
        }
コード例 #34
0
ファイル: PortalGear.cs プロジェクト: Kkarinisme/GearTemp
        private void RenderPortalGearHud()
        {
            try
            {
                if (portalGearHud != null)
                {
                    DisposePortalGearHud();
                }
                if (!File.Exists(portalGearFilename))
                {
                    XDocument tempDoc = new XDocument(new XElement("Portals"));
                    tempDoc.Save(portalGearFilename);
                    tempDoc = null;
                }

                xdocPortalGear = XDocument.Load(portalGearFilename);

                portalGearHud = new VirindiViewService.HudView("", 300, 40, new ACImage(Color.Transparent), false, "PortalGear");
                portalGearHud.ShowInBar = false;
                portalGearHud.UserAlphaChangeable = false;
                portalGearHud.Visible = true;
                portalGearHud.UserClickThroughable = false;
                portalGearHud.UserGhostable = true;
                portalGearHud.UserMinimizable = false;
                portalGearHud.UserResizeable = false;
                portalGearHud.LoadUserSettings();
                portalGear_Head = new HudFixedLayout();
                portalGearHud.Controls.HeadControl = portalGear_Head;
                portalGearTabView = new HudTabView();
                portalGearTabFixedLayout = new HudFixedLayout();
                portalGear_Head.AddControl(portalGearTabView, new Rectangle(0, 0, 300, 40));
                portalGearTabView.AddTab(portalGearTabFixedLayout, "");

                //Clock
                txtPortalGear = new HudStaticText();
                portalGearTabFixedLayout.AddControl(txtPortalGear, new Rectangle(0, 10, 40, 20));
                VirindiViewService.TooltipSystem.AssociateTooltip(txtPortalGear, "Bedtime yet?");

                //Portal Recall
                mPortalGear0 = new HudPictureBox();
                int GR_Recall_Icon = 0x60013AD;
                mPortalGear0.Image = GR_Recall_Icon;
                portalGearTabFixedLayout.AddControl(mPortalGear0, new Rectangle(50, 0, 25, 39));
                VirindiViewService.TooltipSystem.AssociateTooltip(mPortalGear0, "Portal recall");

                mPortalGear0.Hit += (sender, obj) => mPortalGear0_Hit(sender, obj);
              	MasterTimer.Tick += MasterTimer_UpdateClock;
            }
            catch (Exception ex) { LogError(ex); }

            //  Lifestone Recall
            mPortalGear1 = new HudPictureBox();
            int GR_LifestoneRecall_ICON = 0x60024E1;
            mPortalGear1.Image = GR_LifestoneRecall_ICON;
            mPortalGear1.Image = new ACImage(4949);
            portalGearTabFixedLayout.AddControl(mPortalGear1, new Rectangle(80, 2, 25, 39));
            VirindiViewService.TooltipSystem.AssociateTooltip(mPortalGear1, "Lifestone recall");

            mPortalGear1.Hit += (sender, obj) => mPortalGear1_Hit(sender, obj);

            //House Recall
            mPortalGear2 = new HudPictureBox();
            int GR_HouseRecall_ICON = 0x6001A2A;
            mPortalGear2.Image = GR_HouseRecall_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear2, new Rectangle(110, 2, 25, 39));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear2, "House recall");

            mPortalGear2.Hit += (sender, obj) => mPortalGear2_Hit(sender, obj);

            //Mansion Recall
            mPortalGear3 = new HudPictureBox();
            int GR_MansionRecall_ICON = 0x60022DE;
            mPortalGear3.Image = GR_MansionRecall_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear3, new Rectangle(140, 2, 25, 39));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear3, "Mansion recall");

            mPortalGear3.Hit += (sender, obj) => mPortalGear3_Hit(sender, obj);

            //Allegiance Hometown Recall
            mPortalGear4 = new HudPictureBox();
            int GR_AHRecall_ICON = 0x60024DD;
            mPortalGear4.Image = GR_AHRecall_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear4, new Rectangle(170, 2, 25, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear4, "Allegiance Hometown");

            mPortalGear4.Hit += (sender, obj) => mPortalGear4_Hit(sender, obj);

            //Recall Portal I
            mPortalGear5 = new HudPictureBox();
            int GR_RecallI_ICON = 0x60021D6;
            mPortalGear5.Image = GR_RecallI_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear5, new Rectangle(200, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear5, "Portal I recall");

            mPortalGear5.Hit += (sender, obj) => mPortalGear5_Hit(sender, obj);

            //Summon Portal I
            mPortalGear6 = new HudPictureBox();
            int GR_SummonI_ICON = 0x60021DC;
            mPortalGear6.Image = GR_SummonI_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear6, new Rectangle(230, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear6, "Summon Portal I");
            mPortalGear6.Hit += (sender, obj) => mPortalGear6_Hit(sender, obj);

            //Recall Portal II
            mPortalGear7 = new HudPictureBox();
            int GR_RecallII_ICON = 0x60021DA;
            mPortalGear7.Image = GR_RecallII_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear7, new Rectangle(260, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear7, "Recall Portal II");
            mPortalGear7.Hit += (sender, obj) => mPortalGear7_Hit(sender, obj);

            //Summon Portal I
            mPortalGear8 = new HudPictureBox();
            int GR_SummonII_ICON = 0x60021E0;
            mPortalGear8.Image = GR_SummonII_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear8, new Rectangle(290, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear8, "Summon Portal II");
            mPortalGear8.Hit += (sender, obj) => mPortalGear8_Hit(sender, obj);
        }
コード例 #35
0
        public MainView()
        {
            try
            {
                // Create the view
                VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
                parser.ParseFromResource("MagTools.Views.mainView.xml", out properties, out controls);

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


                // Assign the views objects to our local variables

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                NoFocusFPS.Text    = Settings.SettingsManager.Misc.NoFocusFPS.Value.ToString(CultureInfo.InvariantCulture);
                NoFocusFPS.Change += (s, e) =>
                {
                    try
                    {
                        int value;
                        if (!int.TryParse(NoFocusFPS.Text, out value))
                        {
                            value = Settings.SettingsManager.Misc.NoFocusFPS.DefaultValue;
                        }
                        Settings.SettingsManager.Misc.NoFocusFPS.Value = value;
                    }
                    catch (Exception ex) { Debug.LogException(ex); }
                };
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #36
0
ファイル: Inventory.cs プロジェクト: Kkarinisme/GearTemp
        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); }
        }
コード例 #37
0
ファイル: MainView.cs プロジェクト: IbespwnAC/MagTools
		public MainView()
		{
			try
			{
				// Create the view
				VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser();
				parser.ParseFromResource("MagTools.Views.mainView.xml", out properties, out controls);

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


				// Assign the views objects to our local variables

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

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

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


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

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

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

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

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


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

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

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


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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

				NoFocusFPS.Text = Settings.SettingsManager.Misc.NoFocusFPS.Value.ToString(CultureInfo.InvariantCulture);
				NoFocusFPS.Change += (s, e) =>
				{
					try
					{
						int value;
						if (!int.TryParse(NoFocusFPS.Text, out value))
							value = Settings.SettingsManager.Misc.NoFocusFPS.DefaultValue;
						Settings.SettingsManager.Misc.NoFocusFPS.Value = value;
					}
					catch (Exception ex) { Debug.LogException(ex); }
				};
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
コード例 #38
0
        public CombatTrackerGUIInfo(HudList hudList)
        {
            try
            {
                hudList.ClearColumnsAndRows();

                // Each character is a max of 6 pixels wide
                hudList.AddColumn(typeof(HudStaticText), 40, null);
                hudList.AddColumn(typeof(HudStaticText), 52, null);
                hudList.AddColumn(typeof(HudStaticText), 52, null);
                hudList.AddColumn(typeof(HudStaticText), 45, null);                 // This cannot go any smaller without purning labels
                hudList.AddColumn(typeof(HudStaticText), 96, null);

                HudList.HudListRowAccessor newRow;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[1]).Text          = "Mel/Msl";
                ((HudStaticText)newRow[1]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[2]).Text          = "Magic";
                ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text          = "Attacks";
                attacksText = ((HudStaticText)newRow[4]);
                attacksText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text        = "Typeless";
                typelessMeleeMissileText               = ((HudStaticText)newRow[1]);
                typelessMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                typelessMagicText = ((HudStaticText)newRow[2]);
                typelessMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "Evades";
                evadesText = ((HudStaticText)newRow[4]);
                evadesText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text     = "Slash";
                slashMeleeMissileText               = ((HudStaticText)newRow[1]);
                slashMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                slashMagicText = ((HudStaticText)newRow[2]);
                slashMagicText.TextAlignment    = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "Resists";
                resistsText = ((HudStaticText)newRow[4]);
                resistsText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text      = "Pierce";
                pierceMeleeMissileText               = ((HudStaticText)newRow[1]);
                pierceMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                pierceMagicText = ((HudStaticText)newRow[2]);
                pierceMagicText.TextAlignment   = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "A.Surges";
                aSurgesText = ((HudStaticText)newRow[4]);
                aSurgesText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text      = "Bludge";
                bludgeMeleeMissileText               = ((HudStaticText)newRow[1]);
                bludgeMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                bludgeMagicText = ((HudStaticText)newRow[2]);
                bludgeMagicText.TextAlignment   = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "C.Surges";
                cSurgesText = ((HudStaticText)newRow[4]);
                cSurgesText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text    = "Fire";
                fireMeleeMissileText               = ((HudStaticText)newRow[1]);
                fireMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                fireMagicText = ((HudStaticText)newRow[2]);
                fireMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text    = "Cold";
                coldMeleeMissileText               = ((HudStaticText)newRow[1]);
                coldMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                coldMagicText = ((HudStaticText)newRow[2]);
                coldMagicText.TextAlignment     = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "Av/Mx";
                avgMaxText = ((HudStaticText)newRow[4]);
                avgMaxText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text    = "Acid";
                acidMeleeMissileText               = ((HudStaticText)newRow[1]);
                acidMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                acidMagicText = ((HudStaticText)newRow[2]);
                acidMagicText.TextAlignment     = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "Crits";
                critsText = ((HudStaticText)newRow[4]);
                critsText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text        = "Electric";
                electricMeleeMissileText               = ((HudStaticText)newRow[1]);
                electricMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                electricMagicText = ((HudStaticText)newRow[2]);
                electricMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "Av/Mx";
                critsAvgMaxText = ((HudStaticText)newRow[4]);
                critsAvgMaxText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

                hudList.AddRow();

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text     = "Total";
                totalMeleeMissileText               = ((HudStaticText)newRow[1]);
                totalMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                totalMagicText = ((HudStaticText)newRow[2]);
                totalMagicText.TextAlignment    = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "Total";
                totalDmgText = ((HudStaticText)newRow[4]);
                totalDmgText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
コード例 #39
0
        //        private DateTime ButlerRenderTime = DateTime.MinValue;
        //        private void BulterStorageOpened(object sender, ContainerOpenedEventArgs e)
        //        {
        //            try
        //            {
        //                if(ButlerHudView == null) {return;}
        //                if(e.ItemGuid == 0) {return;}
        //                if(AetherObjects.Collection[e.ItemGuid].Name != "Storage") {return;}
        //                if(ButlerRenderTime == DateTime.MinValue)
        //                {
        //   					ButlerRenderTime = DateTime.Now;
        //                    Core.RenderFrame += ButlerContainerTapback;
        //                }
        //            }catch(Exception ex){LogError(ex);}
        //        }
        //        private void ButlerContainerTapback(object sender, EventArgs e)
        //        {
        //            try
        //            {
        //               	if((DateTime.Now - ButlerRenderTime).TotalMilliseconds < 350) {return;}
        //                else
        //                {
        //                    ButlerRenderTime = DateTime.MinValue;
        //                    Core.RenderFrame -= ButlerContainerTapback;
        //                }
        //            }catch(Exception ex){LogError(ex);}
        //        }
        private void ButlerHudView_Resize(object sender, System.EventArgs e)
        {
            try
            {
                mGeneralSettings.GearWindowSettings.ButlerHudWidth = ButlerHudView.Width;
                mGeneralSettings.GearWindowSettings.ButlerHudHeight = ButlerHudView.Height;
                iLockerUpdate.bSubmitGeneralSettings = true;

                ButlerHudList.Click -= ButlerHudList_Click;

                ButlerHudList.Dispose();
                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));

                ButlerHudList.Click += ButlerHudList_Click;

                ButlerHudSelectedLabel.Dispose();
                ButlerHudSelectedLabel = new HudStaticText();
                ButlerHudSelectedLabel.Text = "Items Selected: ";

                ButlerHudSelectedCount.Dispose();
                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.Dispose();
                ButlerPackSpacesAvailable = new HudStaticText();

                ButlerPackSpaceAvailableLabel.Dispose();
                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.Dispose();
                ButlerBurdenLabel = new HudStaticText();
                ButlerBurdenLabel.Text = "Current Burden: ";

                ButlerBurden.Dispose();
                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));

                UpdateButlerHudList();

            }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #40
0
        private void RenderWorkerSpecificsTab()
        {
            try
            {

                lstHudWorkerSpecifics = new HudList();
                lstHudWorkerSpecifics.AddColumn(typeof(HudStaticText), 150, null);//name
                lstHudWorkerSpecifics.AddColumn(typeof(HudStaticText), 40, null);//level
                //    lstHudWorkerSpecifics.AddColumn(typeof(HudStaticText), 200, null);//Item Missing

                lstHudWorkerSpecifics.Click += (sender, row, col) => lstHudWorkerSpecifics_Click(sender, row, col);
                lblMissingPortals = new HudStaticText();
                lblMissingPortals.Text = "Select Missing Portal";
                lblMissingTitles = new HudStaticText();
                lblMissingTitles.Text = "Select Missing Title";
                lblWorkerSpecificLevel = new HudStaticText();
                lblWorkerSpecificLevel.Text = "Select level of Worker";
                lblToonMissing = new HudStaticText();
                lblToonMissing.Text = "Worker lacks";
                lblToonSpecificLevel = new HudStaticText();
                lblToonSpecificLevel.Text = "Level";
                btnClrSpecifics = new HudButton();
                btnClrSpecifics.Text = "Clear List";
                btnClrSpecifics.Hit += (sender, index) => btnClrSpecifics_Hit(sender, index);

                ControlGroup PossPortals = new ControlGroup();
                cboPortals = new HudCombo(PossPortals);
                cboPortals.Change += (sender, index) => cboPortals_Change(sender, index);

                createPortalsList();
                foreach (IDName info in Portals) { cboPortals.AddItem(info.name, info.ID); }

                ControlGroup PossTitles = new ControlGroup();
                cboTitles = new HudCombo(PossTitles);
                cboTitles.Change += (sender, index) => cboTitles_Change(sender, index);
                createTitlesList();
                foreach (IDName info in Titles) { cboTitles.AddItem(info.name, info.ID); }

                ControlGroup Level = new ControlGroup();
                cboWorkerSpecificLevel = new HudCombo(Level);
                cboWorkerSpecificLevel.Change += (sender, index) => cboWorkerSpecificLevel_Change(sender, index);
                createSpecificLevelList();
                foreach (IDName info in SpecificLevels) { cboWorkerSpecificLevel.AddItem(info.name, info.ID); }

                WorkerSpecificsTabLayout.AddControl(lblMissingPortals, new Rectangle(5, 40, 150, 16));
                WorkerSpecificsTabLayout.AddControl(cboPortals, new Rectangle(160, 40, 180, 16));
                //WorkerSpecificsTabLayout.AddControl(lblMissingTitles, new Rectangle(5, 20, 150, 16));
                //WorkerSpecificsTabLayout.AddControl(cboTitles, new Rectangle(160, 20, 180, 16));
                WorkerSpecificsTabLayout.AddControl(lblWorkerSpecificLevel, new Rectangle(5, 5, 150, 16));
                WorkerSpecificsTabLayout.AddControl(cboWorkerSpecificLevel, new Rectangle(160, 5, 180, 16));
                WorkerSpecificsTabLayout.AddControl(btnClrSpecifics, new Rectangle(5, 60, 60, 16));
                WorkerSpecificsTabLayout.AddControl(lblToonMissing, new Rectangle(5, 80, 100, 16));
                WorkerSpecificsTabLayout.AddControl(lblToonSpecificLevel, new Rectangle(160, 80, 50, 16));

                WorkerSpecificsTabLayout.AddControl(lstHudWorkerSpecifics, new Rectangle(5, 100, 300, 300));
              //  UpdateWorkerSpecificsTab();

            }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #41
0
ファイル: armor.cs プロジェクト: Kkarinisme/GearTemp
        private void DisposeArmorTabLayout()
        {
            try
            {
                if (!ArmorMainTab) { return; }

                ArmorHudList.Click -= (sender, row, col) => ArmorHudList_Click(sender, row, col);
                ArmorHudList = null;
                lblToonArmorName.Text = "";
                lblToonArmorName = null;
              //  lblToonLevel.Text = "";
              //  lblToonLevel = null;
              //  lblToonMaster.Text = "";
              //  lblToonMaster = null;
                ClearMainArmorHudVariables();
                ArmorMainTab = false;

            }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #42
0
        private void RenderChiefGearInspectPageMenuTabReqSpells()
        {
            try
            {
                HudStaticText lblCurrentSpells = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblCurrentSpells.Text = "Current Spells";
                ChiefGearInspectPageMenuTabReqSpells.AddControl(lblCurrentSpells, new Rectangle(5, 0, 130, 16));

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

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

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

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

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

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

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

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

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

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

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

                SubscribeChiefGearInspectPageMenuTabViewPageSearchRuleReqSpellsEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #43
0
        private void RenderWorkersHudTab()
        {
            try
            {

                WorkersHudView.VisibleChanged += WorkersHudView_VisibleChanged;

                lblWorkers = new HudStaticText();
                lblWorkers.Text = "Workers";
                lblWorkerLevel = new HudStaticText();
                lblWorkerLevel.Text = "Level";
                lblWorkerBurden = new HudStaticText();
                lblWorkerBurden.Text = "Burden";
                lblWorkerPackSpace = new HudStaticText();
                lblWorkerPackSpace.Text = "Pack Space";

                ControlGroup Workers = new ControlGroup();
                cboWorkers = new HudCombo(Workers);
                MyWorkers = new List<string>();
                cboWorkers.Change += (sender, index) => cboWorkers_Change(sender, index);
                if (MyWorkers.Count == 0)
                {
                    var snames = cHarActors.GetCharacterNames().ToList().OrderBy(x => x);
                    MyWorkers.AddRange(snames);
                }
                for (int i = 0; i < MyWorkers.Count; i++) { cboWorkers.AddItem(MyWorkers[i], i); }

                //lblWorkingNow = new HudStaticText();
                //lblWorkingNow.Text = "Current Gear Worker: ";

                lstHudWorkers = new HudList();
                lstHudWorkers.AddColumn(typeof(HudStaticText), 100, null);//name
                lstHudWorkers.AddColumn(typeof(HudStaticText), 60, null);//level
                lstHudWorkers.AddColumn(typeof(HudStaticText), 60, null);//Available pack space
                lstHudWorkers.AddColumn(typeof(HudStaticText), 60, null);//Burden

                lstHudWorkers.Click += (sender, row, col) => lstHudWorkers_Click(sender, row, col);

                WorkersTabLayout.AddControl(cboWorkers, new Rectangle(60, 5, 100, 16));
                //WorkersTabLayout.AddControl(lblWorkingNow, new Rectangle(200, 5, 200, 16));
                WorkersTabLayout.AddControl(lblWorkers, new Rectangle(10, 25, 45, 16));
                WorkersTabLayout.AddControl(lblWorkerLevel, new Rectangle(120, 25, 45, 16));
                WorkersTabLayout.AddControl(lblWorkerPackSpace, new Rectangle(160, 25, 60, 16));
                WorkersTabLayout.AddControl(lblWorkerBurden, new Rectangle(250, 25, 45, 16));
                WorkersTabLayout.AddControl(lstHudWorkers, new Rectangle(10, 40, 300, 300));
                updateWorkersTabLayout();

            }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #44
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); }
        }
コード例 #45
0
        public ConfigTab(BotManagerView botManagerView)
        {
            Parent = botManagerView;

            BotEnabled         = Parent.View != null ? (HudCheckBox)Parent.View["Bot"] : new HudCheckBox();
            BotEnabled.Change += BotEnabled_Change;

            ClearLocation      = Parent.View != null ? (HudButton)Parent.View["ClearLocation"] : new HudButton();
            ClearLocation.Hit += ClearLocation_Hit;

            LocationSetpoint = Parent.View != null ? (HudStaticText)Parent.View["LocationSetpoint"] : new HudStaticText();
            LocationSetpoint.TextAlignment = WriteTextFormats.Center;

            SetLocation      = Parent.View != null ? (HudButton)Parent.View["SetLocation"] : new HudButton();
            SetLocation.Hit += SetLocation_Hit;

            RespondToGeneralChat         = Parent.View != null ? (HudCheckBox)Parent.View["GeneralChatResponse"] : new HudCheckBox();
            RespondToGeneralChat.Change += RespondToGeneralChat_Change;

            RespondToAllegianceChat         = Parent.View != null ? (HudCheckBox)Parent.View["AllegianceResponse"] : new HudCheckBox();
            RespondToAllegianceChat.Change += RespondToAllegianceChat_Change;

            AdsEnabled         = Parent.View != null ? (HudCheckBox)Parent.View["AdsEnabled"] : new HudCheckBox();
            AdsEnabled.Change += AdsEnabled_Change;

            BotPositioning         = Parent.View != null ? (HudCheckBox)Parent.View["BotPositioning"] : new HudCheckBox();
            BotPositioning.Change += BotPositioning_Change;

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

            SetHeading      = Parent.View != null ? (HudButton)Parent.View["SetHeading"] : new HudButton();
            SetHeading.Hit += SetHeading_Hit;

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

            Verbosity          = Parent.View != null ? (HudHSlider)Parent.View["Verbosity"] : new HudHSlider();
            Verbosity.Changed += Verbosity_Changed;

            ManaThreshold          = Parent.View != null ? (HudHSlider)Parent.View["ManaThresh"] : new HudHSlider();
            ManaThreshold.Changed += ManaThreshhold_Changed;

            StaminaThreshold          = Parent.View != null ? (HudHSlider)Parent.View["StamThresh"] : new HudHSlider();
            StaminaThreshold.Changed += StaminaThreshhold_Changed;

            ManaThresholdText = Parent.View != null ? (HudStaticText)Parent.View["ManaThreshText"] : new HudStaticText();
            StamThresholdText = Parent.View != null ? (HudStaticText)Parent.View["StamThreshText"] : new HudStaticText();

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

            StayBuffed         = Parent.View != null ? (HudCheckBox)Parent.View["StayBuffed"] : new HudCheckBox();
            StayBuffed.Change += StayBuffed_Change;

            Level7Self         = Parent.View != null ? (HudCheckBox)Parent.View["Level7Self"] : new HudCheckBox();
            Level7Self.Change += Level7Self_Change;

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

            Version      = Parent.View != null ? (HudStaticText)Parent.View["Version"] : new HudStaticText();
            Version.Text = $"V{Parent.Machine.Utility.Version}";

            PopulateCharacterChoice();
            LoadSettings();
        }
コード例 #46
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); }
        }
コード例 #47
0
ファイル: KillTasks.cs プロジェクト: Kkarinisme/GearTemp
        private void AlterTaskHud()
        {
            try
            {

                IncTaskLabel2.Dispose();
                IncTaskLabel2 = new HudStaticText();
                TaskIncompleteLayout.AddControl(IncTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth - mKTSet.HudWidth/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16));
                IncTaskLabel2.Text = "Status";

                TaskIncompleteList.Click -= TaskIncompleteList_Click;
                TaskIncompleteList.Dispose();
                TaskIncompleteList = new HudList();
                TaskIncompleteLayout.AddControl(TaskIncompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20));
                TaskIncompleteList.ControlHeight = 16;
                TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null);  //Mob/Item Name
                TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null);  //Completion
                VirindiViewService.TooltipSystem.AssociateTooltip(TaskIncompleteList, "Click for task completion info.");
                TaskIncompleteList.Click += TaskIncompleteList_Click;

                CompTaskLabel2.Dispose();
                CompTaskLabel2 = new HudStaticText();
                TaskCompleteLayout.AddControl(CompTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth*2/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16));
                CompTaskLabel2.Text = "Return";

                TaskCompleteList.Click -= TaskCompleteList_Click;
                TaskCompleteList.Dispose();
                TaskCompleteList = new HudList();
                TaskCompleteLayout.AddControl(TaskCompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20));
                TaskCompleteList.ControlHeight = 16;
                TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null);  //Mob/Item Name
                TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null);  //Completion
                VirindiViewService.TooltipSystem.AssociateTooltip(TaskCompleteList, "Click for turn in info.");
                TaskCompleteList.Click += TaskCompleteList_Click;

                KillTaskSelected.Dispose();
                KillTaskSelected = new HudStaticText();
                KillTaskLayout.AddControl(KillTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16));
                KillTaskSelected.Text = String.Empty;

                KillTaskNew.Hit -= KillTaskNew_Hit;
                KillTaskNew.Dispose();
                KillTaskNew = new HudButton();
                KillTaskLayout.AddControl(KillTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16));
                KillTaskNew.Text = "New";
                KillTaskNew.Hit += KillTaskNew_Hit;

                KillTaskDelete.Hit -= KillTaskDelete_Hit;
                KillTaskDelete.Dispose();
                KillTaskDelete = new HudButton();
                KillTaskLayout.AddControl(KillTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16));
                KillTaskDelete.Text = "Del";
                KillTaskDelete.Hit += KillTaskDelete_Hit;

                KillTaskEdit.Hit -= KillTaskEdit_Hit;
                KillTaskEdit.Dispose();
                KillTaskEdit = new HudButton();
                KillTaskLayout.AddControl(KillTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16));
                KillTaskEdit.Text = "Edit";
                KillTaskEdit.Hit += KillTaskEdit_Hit;

                KillTaskList.Click -= KillTaskList_Click;
                KillTaskList.Dispose();
                KillTaskList = new HudList();
                KillTaskLayout.AddControl(KillTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight-20));
                KillTaskList.ControlHeight = 16;
                KillTaskList.AddColumn(typeof(HudCheckBox), 16, null);  //Track
                KillTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null);  //TaskName
                VirindiViewService.TooltipSystem.AssociateTooltip(KillTaskList, "Enable Tracking or Click for info.");
                KillTaskList.Click += KillTaskList_Click;

                CollectTaskSelected.Dispose();
                CollectTaskSelected = new HudStaticText();
                CollectTaskLayout.AddControl(CollectTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16));
                CollectTaskSelected.Text = String.Empty;

                CollectTaskNew.Hit -= CollectTaskNew_Hit;
                CollectTaskNew.Dispose();
                CollectTaskNew = new HudButton();
                CollectTaskLayout.AddControl(CollectTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16));
                CollectTaskNew.Text = "New";
                CollectTaskNew.Hit += CollectTaskNew_Hit;

                CollectTaskDelete.Hit -= CollectTaskDelete_Hit;
                CollectTaskDelete.Dispose();
                CollectTaskDelete = new HudButton();
                CollectTaskLayout.AddControl(CollectTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16));
                CollectTaskDelete.Text = "Del";
                CollectTaskDelete.Hit += CollectTaskDelete_Hit;

                CollectTaskEdit.Hit -= CollectTaskEdit_Hit;
                CollectTaskEdit.Dispose();
                CollectTaskEdit = new HudButton();
                CollectTaskLayout.AddControl(CollectTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16));
                CollectTaskEdit.Text = "Edit";
                CollectTaskEdit.Hit += CollectTaskEdit_Hit;

              	CollectTaskList.Click -= CollectTaskList_Click;
                CollectTaskList.Dispose();
                CollectTaskList = new HudList();
                CollectTaskLayout.AddControl(CollectTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight));
                CollectTaskList.ControlHeight = 16;
                CollectTaskList.AddColumn(typeof(HudCheckBox), 16, null);  //Track
                CollectTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null);  //TaskName
                VirindiViewService.TooltipSystem.AssociateTooltip(CollectTaskList, "Enable Tracking or Click for info.");
                CollectTaskList.Click += CollectTaskList_Click;

                UpdateTaskPanel();

            }catch(Exception ex){LogError(ex);}
        }
コード例 #48
0
        private void RenderChiefGearHud()
        {
            try
            {
                if (ChiefGearHudView != null)
                {
                    DisposeChiefGear();
                }

                ChiefGearHudView = new HudView("Gear Foundry", 500, 500, new ACImage(28170));
                ChiefGearHudView.UserAlphaChangeable = false;
                ChiefGearHudView.ShowInBar = true;
                ChiefGearHudView.UserResizeable = false;
                ChiefGearHudView.Visible = false;
                ChiefGearHudView.Ghosted = false;
                ChiefGearHudView.UserMinimizable = true;
                ChiefGearHudView.UserClickThroughable = false;
                ChiefGearHudView.LoadUserSettings();

                ChiefGearHudTabView = new HudTabView();
                ChiefGearHudView.Controls.HeadControl = ChiefGearHudTabView;

                ChiefGearHudSettings = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudSettings, "Settings");
                RenderChiefGearSettingsTab();

                ChiefGearHudInspect = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudInspect, "Inspect");
                RenderChiefGearInspectTab();

                ChiefGearHudFoundry = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudFoundry, "Foundry");
                RenderChiefGearFoundryTab();

                ChiefGearHudSounds = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudSounds, "Sounds");
                RenderChiefGearSoundsTab();

                ChiefGearHudAbout = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudAbout, "About");

                lblAboutText1 = new HudStaticText();
                lblAboutText1.Text = "GearFoundry is a community development ";
                ChiefGearHudAbout.AddControl(lblAboutText1, new Rectangle(20, 20, 450, 20));

                lblAboutText1a = new HudStaticText();
                lblAboutText1a.Text = "platform for multiple plugins.";
                ChiefGearHudAbout.AddControl(lblAboutText1a, new Rectangle(25, 40, 450, 20));

                lblAboutText2 = new HudStaticText();
                lblAboutText2.Text = "It consists of notifying, looting, inventorying ";
                ChiefGearHudAbout.AddControl(lblAboutText2, new Rectangle(20, 70, 450, 20));

                lblAboutText2a = new HudStaticText();
                lblAboutText2a.Text = "and other options.";
                ChiefGearHudAbout.AddControl(lblAboutText2a, new Rectangle(25, 90, 450, 20));

                lblAboutText3 = new HudStaticText();
                lblAboutText3.Text = "The inspiration for GearFoundry was drawn from ";
                ChiefGearHudAbout.AddControl(lblAboutText3, new Rectangle(20, 120, 450, 20));

                lblAboutText3a = new HudStaticText();
                lblAboutText3a.Text = "the original Alinco.";
                ChiefGearHudAbout.AddControl(lblAboutText3a, new Rectangle(25, 140, 450, 20));

                lblAboutText4 = new HudStaticText();
                lblAboutText4.Text = "Thanks to all who have assisted in development.";
                ChiefGearHudAbout.AddControl(lblAboutText4, new Rectangle(20, 170, 450, 20));

                lblAboutText4a = new HudStaticText();
                lblAboutText4a.Text = "SUPPORT EMAIL (bugs, fixes, suggestions):";
                ChiefGearHudAbout.AddControl(lblAboutText4a, new Rectangle(25, 190, 450, 20));

                lblEditionNumber = new HudStaticText();
                lblEditionNumber.Text = "*****@*****.**";
                ChiefGearHudAbout.AddControl(lblEditionNumber, new Rectangle(20, 220, 450, 20));

                lblOwnRisk = new HudStaticText();
                lblOwnRisk.Text = "USE AT YOUR OWN RISK!";
                ChiefGearHudAbout.AddControl(lblOwnRisk, new Rectangle(20, 250, 450, 20));
            }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #49
0
ファイル: KillTasks.cs プロジェクト: Kkarinisme/GearTemp
        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);}
        }
コード例 #50
0
        private void RenderChiefGearSettingsTab()
        {
            try
            {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            }catch(Exception ex){LogError(ex);}
        }
コード例 #51
0
        private void RenderFocusHud()
        {
            try
            {
                if(FocusHudView != null)
                {
                    DisposeFocusHud();
                }

                FocusHudView = new HudView(String.Empty, 110, 130, new ACImage(0x6AA3));
                FocusHudView.UserAlphaChangeable = false;
                FocusHudView.ShowInBar = false;
                FocusHudView.UserResizeable = false;
                FocusHudView.Visible = true;
                FocusHudView.UserClickThroughable = false;
                FocusHudView.UserMinimizable = true;
                FocusHudView.UserGhostable = true;
                FocusHudView.LoadUserSettings();

                FocusHudTabView = new HudTabView();
                FocusHudView.Controls.HeadControl = FocusHudTabView;

                FocusHudLayout = new HudFixedLayout();
                FocusHudTabView.AddTab(FocusHudLayout, "Focus");

                FocusTargetName = new HudStaticText();
                FocusHudLayout.AddControl(FocusTargetName, new Rectangle(0,0,100,16));
                FocusTargetName.Text = String.Empty;

                FocusTargetPicture = new HudPictureBox();
                FocusHudLayout.AddControl(FocusTargetPicture, new Rectangle(20,20,60,60));
                FocusTargetPicture.Image = new ACImage(Color.Black);

                FocusTargetHealth = new HudProgressBar();
                FocusHudLayout.AddControl(FocusTargetHealth, new Rectangle(5,90,100,20));
                FocusTargetHealth.ProgressEmpty = EmptyBar;
                FocusTargetHealth.ProgressFilled = RedBar;
                FocusTargetHealth.Position = 0;
                FocusTargetHealth.Max = 100;
                FocusTargetHealth.Min = 0;
                FocusHudView.VisibleChanged += FocusHudView_VisibleChanged;
                FocusTargetPicture.Hit += FocusTargetPicture_Hit;
                FiveSecondTimer.Tick += Focus_OnTimerDo;

                UpdateFocusHud();
            }catch(Exception ex){LogError(ex);}
        }
コード例 #52
0
        private void RenderChiefGearSoundsTab()
        {
            try
            {
                chkMuteSounds = new HudCheckBox();
                chkMuteSounds.Text = "Mute Sound Effects";
                ChiefGearHudSounds.AddControl(chkMuteSounds, new Rectangle(8, 5, 115, 20));

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                UpdateSoundPanel();

            }catch(Exception ex){LogError(ex);}
        }
コード例 #53
0
		public CombatTrackerGUIInfo(HudList hudList)
		{
			try
			{
				hudList.ClearColumnsAndRows();

				// Each character is a max of 6 pixels wide
				hudList.AddColumn(typeof(HudStaticText), 40, null);
				hudList.AddColumn(typeof(HudStaticText), 52, null);
				hudList.AddColumn(typeof(HudStaticText), 52, null);
				hudList.AddColumn(typeof(HudStaticText), 45, null); // This cannot go any smaller without purning labels
				hudList.AddColumn(typeof(HudStaticText), 96, null);

				HudList.HudListRowAccessor newRow;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[1]).Text = "Mel/Msl";
				((HudStaticText)newRow[1]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[2]).Text = "Magic";
				((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Attacks";
				attacksText = ((HudStaticText)newRow[4]);
				attacksText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Typeless";
				typelessMeleeMissileText = ((HudStaticText)newRow[1]);
				typelessMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				typelessMagicText = ((HudStaticText)newRow[2]);
				typelessMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Evades";
				evadesText = ((HudStaticText)newRow[4]);
				evadesText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Slash";
				slashMeleeMissileText = ((HudStaticText)newRow[1]);
				slashMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				slashMagicText = ((HudStaticText)newRow[2]);
				slashMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Resists";
				resistsText = ((HudStaticText)newRow[4]);
				resistsText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Pierce";
				pierceMeleeMissileText = ((HudStaticText)newRow[1]);
				pierceMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				pierceMagicText = ((HudStaticText)newRow[2]);
				pierceMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "A.Surges";
				aSurgesText = ((HudStaticText)newRow[4]);
				aSurgesText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Bludge";
				bludgeMeleeMissileText = ((HudStaticText)newRow[1]);
				bludgeMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				bludgeMagicText = ((HudStaticText)newRow[2]);
				bludgeMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "C.Surges";
				cSurgesText = ((HudStaticText)newRow[4]);
				cSurgesText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Fire";
				fireMeleeMissileText = ((HudStaticText)newRow[1]);
				fireMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				fireMagicText = ((HudStaticText)newRow[2]);
				fireMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Cold";
				coldMeleeMissileText = ((HudStaticText)newRow[1]);
				coldMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				coldMagicText = ((HudStaticText)newRow[2]);
				coldMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Av/Mx";
				avgMaxText = ((HudStaticText)newRow[4]);
				avgMaxText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Acid";
				acidMeleeMissileText = ((HudStaticText)newRow[1]);
				acidMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				acidMagicText = ((HudStaticText)newRow[2]);
				acidMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Crits";
				critsText = ((HudStaticText)newRow[4]);
				critsText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Electric";
				electricMeleeMissileText = ((HudStaticText)newRow[1]);
				electricMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				electricMagicText = ((HudStaticText)newRow[2]);
				electricMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Av/Mx";
				critsAvgMaxText = ((HudStaticText)newRow[4]);
				critsAvgMaxText.TextAlignment = VirindiViewService.WriteTextFormats.Right;

				hudList.AddRow();

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Total";
				totalMeleeMissileText = ((HudStaticText)newRow[1]);
				totalMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				totalMagicText = ((HudStaticText)newRow[2]);
				totalMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Total";
				totalDmgText = ((HudStaticText)newRow[4]);
				totalDmgText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
コード例 #54
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);}
        }
コード例 #55
0
ファイル: armor.cs プロジェクト: Kkarinisme/GearTemp
        private void RenderArmorTabLayout()
        {
            try
            {
               lblToonArmorName = new HudStaticText();
               lblToonArmorName.FontHeight = nmenuFontHeight;
                lblToonLevel = new HudStaticText();
                lblToonLevel.FontHeight = nmenuFontHeight;
                lblToonMaster = new HudStaticText();
                lblToonMaster.FontHeight = nmenuFontHeight;
                ArmorHudList = new HudList();

                ArmorHudTabLayout.AddControl(lblToonArmorName, new Rectangle(0, 0, 100, 50));
                ArmorHudTabLayout.AddControl(lblToonLevel, new Rectangle(80,0,40,16));
                ArmorHudTabLayout.AddControl(lblToonMaster, new Rectangle(150,0,60,16));

                ArmorHudTabLayout.AddControl(ArmorHudList, new Rectangle(0,30, ArmorHudWidth, ArmorHudHeight-40));

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

                ArmorHudList.Click += (sender, row, col) => ArmorHudList_Click(sender, row, col);

                ArmorMainTab = true;
                try{
                    if (toonArmorName == "" || toonArmorName == "None") { toonArmorName = toonName; }
                    lblToonArmorName.Text = toonArmorName;
                 FillArmorHudList();
                }

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

            catch (Exception ex) { LogError(ex); }
        }
コード例 #56
0
        private void RenderDynamicRemoteGear()
        {
            try
            {

                if(DynamicGearRemoteView != null)
                {
                    DisposeDynamicRemote();
                }

                AssembleDGRControls();

                int DGRViewHeight = 35 + 35 * DGRControlsList.Count + 35 + 10;

                DynamicGearRemoteView = new HudView("", 35, DGRViewHeight, GearGraphics.RemoteGearIcon, false, "RemoteGear");
                DynamicGearRemoteView.ShowInBar = false;
                DynamicGearRemoteView.UserAlphaChangeable = false;
                DynamicGearRemoteView.Visible = true;
                DynamicGearRemoteView.UserClickThroughable = false;
                DynamicGearRemoteView.UserGhostable = true;
                DynamicGearRemoteView.UserMinimizable = false;
                DynamicGearRemoteView.UserResizeable = false;
                DynamicGearRemoteView.LoadUserSettings();

                DynamicGearRemoteTabView = new HudTabView();
                DynamicGearRemoteView.Controls.HeadControl = DynamicGearRemoteTabView;

                DynamicGearRemoteLayout = new HudFixedLayout();
                DynamicGearRemoteTabView.AddTab(DynamicGearRemoteLayout, "");

                DynamicGearRemoteClock = new HudStaticText();
                DynamicGearRemoteLayout.AddControl(DynamicGearRemoteClock, new Rectangle(0,4,30,16));
                DynamicGearRemoteClock.FontHeight = 8;

                SecondsTimer.Tick += DynamicGearClock;

                for(int i = 0; i < DGRControlsList.Count; i++)
                {
                    DynamicGearRemoteLayout.AddControl(DGRControlsList[i].ControlPictureBox, new Rectangle(2, 35 + 35 * i, 25,25));
                    VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, DGRControlsList[i].ToolTipName);
                }

                DynamicRemoteFoundryButton = new HudImageButton();
                DynamicRemoteFoundryButton.CanSticky = true;
                DynamicRemoteFoundryButton.Image_Down = CreateIconFromResource("FoundryOn.gif");
                DynamicRemoteFoundryButton.Image_Up = CreateIconFromResource("FoundryOff.gif");
                DynamicRemoteFoundryButton.Image_Background = GearGraphics.GB_BACKGROUND;
                DynamicGearRemoteLayout.AddControl(DynamicRemoteFoundryButton, new Rectangle(2,35 + 35 * DGRControlsList.Count, 25, 25));
                if(mGeneralSettings.FoundrySettings.FoundyEnabled)  {DynamicRemoteFoundryButton.StickyDown = true;}
                DynamicRemoteFoundryButton.StickyDownStateChanged += DynamicRemoteFoundryButton_Hit;

            }catch(Exception ex){LogError(ex);}
        }
コード例 #57
0
ファイル: armor.cs プロジェクト: Kkarinisme/GearTemp
        private void DisposeArmorSettingsLayout()
        {
            try
            {
                if (!ArmorSettingsTab) { return; }
                btnInventoryArmor.Hit -= (sender, index) => btnInventoryArmor_Hit(sender, index);

                cboToonArmorName.Change -= (sender,index) => cboToonArmorName_Change(sender,index);
                btnInventoryArmor = null;
                lblToonArmorNameInfo.Text = "";
                lblToonArmorNameInfo = null;
                cboToonArmorName = null;
                lstAllToonName = null;

                ArmorSettingsTab = false;
            }
            catch { }
        }
コード例 #58
0
        private void RenderChiefGearInspectPageMenuTabAppearance()
        {
            try
            {
                HudStaticText lblRuleArmorTypes = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleArmorTypes.Text = "Armor Models";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblRuleArmorTypes, new Rectangle(5, 0, 100, 16));

                lstRuleArmorTypes = new HudList();
                lstRuleArmorTypesListRow = new HudList.HudListRowAccessor();

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

                HudStaticText lblColorPalettes = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblColorPalettes.Text = "Color Palettes";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblColorPalettes, new Rectangle(155, 0, 80, 16));
                SubscribeChiefGearInspectPageMenuTabViewPageSearchRuleAppearanceEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
コード例 #59
0
ファイル: armor.cs プロジェクト: Kkarinisme/GearTemp
        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); }
        }
コード例 #60
0
        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;
        }