예제 #1
0
파일: HUD.cs 프로젝트: IbespwnAC/MagTools
		void CharacterFilter_LoginComplete(object sender, EventArgs e)
		{
			try
			{
				hudView = new HudView("Mag-HUD", 200, 80, new ACImage(Color.Black), false);

				hudView.Visible = true;
				hudView.UserMinimizable = false;
				hudView.ShowIcon = false;
				hudView.UserResizeable = true;
				//View.ClickThrough = true;
				hudView.Theme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");

				hudView.LoadUserSettings();

				hudListHead = new HudList();
				hudView.Controls.HeadControl = hudListHead;

				hudListHead.Padding = 0; // Default: 1
				hudListHead.WPadding = 0; // Default: 7
				hudListHead.WPaddingOuter = 0; // Default: 3

				hudListHead.AddColumn(typeof(HudPictureBox), 16, null);
				hudListHead.AddColumn(typeof(HudStaticText), 999, null);

				HudList.HudListRowAccessor newRow = hudListHead.AddRow();
				((HudPictureBox)newRow[0]).Image = new ACImage(13107); // Major Mana Stone
				//((HudStaticText)newRow[1]).Text = "Cool Stuff Here 0 1 2 3 45 6 7 8sdf 8asdf 8asdf8asdf8asdf";

				hudUpdateTimer.Interval = 1000;
				hudUpdateTimer.Start();
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
예제 #2
0
        void CharacterFilter_LoginComplete(object sender, EventArgs e)
        {
            try
            {
                hudView = new HudView("Mag-HUD", 200, 80, new ACImage(Color.Black), false);

                hudView.Visible         = true;
                hudView.UserMinimizable = false;
                hudView.ShowIcon        = false;
                hudView.UserResizeable  = true;
                //View.ClickThrough = true;
                hudView.Theme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");

                hudView.LoadUserSettings();

                hudListHead = new HudList();
                hudView.Controls.HeadControl = hudListHead;

                hudListHead.Padding       = 0;           // Default: 1
                hudListHead.WPadding      = 0;           // Default: 7
                hudListHead.WPaddingOuter = 0;           // Default: 3

                hudListHead.AddColumn(typeof(HudPictureBox), 16, null);
                hudListHead.AddColumn(typeof(HudStaticText), 999, null);

                HudList.HudListRowAccessor newRow = hudListHead.AddRow();
                ((HudPictureBox)newRow[0]).Image = new ACImage(13107);                 // Major Mana Stone
                //((HudStaticText)newRow[1]).Text = "Cool Stuff Here 0 1 2 3 45 6 7 8sdf 8asdf 8asdf8asdf8asdf";

                hudUpdateTimer.Interval = 1000;
                hudUpdateTimer.Start();
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
예제 #3
0
        void RenderWorkersDisplayHud()
        {
            try
            {
                if (WorkersDisplayHudView != null)
                {
                    DisposeWorkersDisplayHudView();
                }

                WorkersDisplayHudView = new HudView("Worker Info", 300, 500, new ACImage(0x6AA5));
                WorkersDisplayHudView.UserAlphaChangeable = false;
                WorkersDisplayHudView.ShowInBar = false;
                WorkersDisplayHudView.UserResizeable = false;
                WorkersDisplayHudView.Visible = true;
                WorkersDisplayHudView.Ghosted = false;
                WorkersDisplayHudView.UserMinimizable = true;
                WorkersDisplayHudView.UserClickThroughable = false;
                WorkersDisplayHudTabView = new HudTabView();
                WorkersDisplayHudView.Controls.HeadControl = WorkersDisplayHudTabView;
                WorkersDisplayHudTabLayout = new HudFixedLayout();
                WorkersDisplayHudTabView.AddTab(WorkersDisplayHudTabLayout, "Worker Properties");
                WorkersDisplayHudView.LoadUserSettings();

                WorkersDisplayList = new HudList();
                WorkersDisplayHudTabLayout.AddControl(WorkersDisplayList, new Rectangle(0, 0, 295, 570));

                WorkersDisplayList.AddColumn(typeof(HudStaticText), 285, null);

            }
            catch (Exception ex) { LogError(ex); }
        }
예제 #4
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;
        }
예제 #5
0
        private void RenderActionBar()
        {
            try
            {
                if(ActionHudView != null){DisposeActionBar();}

                AssembleActionControls();

                int ActionHudWidth = 35;
                int ActionHudHeight = 45 + 30 * (ActionIconList.Count - 1);

                ActionHudView = new HudView("Worm",ActionHudWidth, ActionHudHeight, GearGraphics.GA_Remote_Icon);
                ActionHudView.UserAlphaChangeable = false;
                ActionHudView.ShowInBar = false;
                ActionHudView.Visible = true;
                ActionHudView.UserClickThroughable = false;
                ActionHudView.UserMinimizable = false;
                ActionHudView.UserResizeable = false;
                ActionHudView.LoadUserSettings();

                ActionHudTabView = new HudTabView();
                ActionHudView.Controls.HeadControl = ActionHudTabView;

                ActionHudLayout = new HudFixedLayout();
                ActionHudTabView.AddTab(ActionHudLayout, "Worm");

                for(int i = 0; i < ActionIconList.Count; i++)
                {
                    ActionIcons aicon = ActionIconList[i];
                    ActionHudLayout.AddControl(aicon.ActionIcon, new Rectangle(5, i*30,25,25));

                    if(aicon.Identifier == "weakenlock")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Weaken Lock");
                    if(aicon.Identifier == "picklock")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Pick Lock");
                    if(aicon.Identifier == "openchest")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Unlock Chest");
                    if(aicon.Identifier == "packinventory")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Pack Inventory");
                    if(aicon.Identifier == "autocarve")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Auto Carve Inventory Items");
                    if(aicon.Identifier == "tradecomps")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Trade L8 Comps");
                    if(aicon.Identifier == "selltradesalv")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Window Salvage");
                    if(aicon.Identifier == "fillmanas")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Mana Scarabs");
                    if(aicon.Identifier == "fillplats")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Plat Scarabs");
                    if(aicon.Identifier == "fillcomps")  VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Components");
                    if(aicon.Identifier == "tradenotes") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Trade Notes");
                }

            }catch(Exception ex){LogError(ex);}
        }
예제 #6
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);}
        }
예제 #7
0
        private void RenderCurrentTargetDebuffBar()
        {
            try
            {
                if(CurrentTargetDebuffView != null)
                {
                    DisposeCurrentTargetDebuffView();
                }

                CurrentTargetDebuffView = new HudView("Current Target", 200, 30, new ACImage(0x6AA3));
                CurrentTargetDebuffView.UserAlphaChangeable = false;
                CurrentTargetDebuffView.ShowInBar = false;
                CurrentTargetDebuffView.UserResizeable = false;
                CurrentTargetDebuffView.Visible = true;
                CurrentTargetDebuffView.UserClickThroughable = false;
                CurrentTargetDebuffView.UserMinimizable = true;
                CurrentTargetDebuffView.UserGhostable = true;
                CurrentTargetDebuffView.LoadUserSettings();

                CurrentTargetDebuffTabView = new HudTabView();
                CurrentTargetDebuffView.Controls.HeadControl = CurrentTargetDebuffTabView;

                CurrentTargetDebuffLayout = new HudFixedLayout();
                CurrentTargetDebuffTabView.AddTab(CurrentTargetDebuffLayout, "Debuffs");

                CurrentTargetImageStackList = new List<HudImageStack>();
                for(int i = 0; i < 10; i++)
                {
                    CurrentTargetImageStackList.Add(new HudImageStack());
                    CurrentTargetImageStackList[i].Add(DebuffRectangle, new ACImage(Color.Black));
                    CurrentTargetDebuffLayout.AddControl(CurrentTargetImageStackList[i], new Rectangle(2+i*20,2,16,16));
                }

            }catch(Exception ex){LogError(ex);}
        }
예제 #8
0
        private void RenderCurrentTargetDebuffBar()
        {
            try
            {
                if(CurrentTargetDebuffView != null)
                {
                    DisposeCurrentTargetDebuffView();
                }

                CurrentTargetDebuffView = new HudView("Current Target", 120, 40, new ACImage(0x6AA3));
                CurrentTargetDebuffView.UserAlphaChangeable = false;
                CurrentTargetDebuffView.ShowInBar = false;
                CurrentTargetDebuffView.UserResizeable = false;
                CurrentTargetDebuffView.Visible = true;
                CurrentTargetDebuffView.UserClickThroughable = false;
                CurrentTargetDebuffView.UserMinimizable = true;
                CurrentTargetDebuffView.UserGhostable = true;
                CurrentTargetDebuffView.LoadUserSettings();

                CurrentTargetDebuffTabView = new HudTabView();
                CurrentTargetDebuffView.Controls.HeadControl = CurrentTargetDebuffTabView;

                CurrentTargetDebuffLayout = new HudFixedLayout();
                CurrentTargetDebuffTabView.AddTab(CurrentTargetDebuffLayout, "Debuffs");

                CurrentTargetDebuffList = new List<HudImageStack>();

                CurrentTargetDebuffView.VisibleChanged += CurrentTargetDebuffView_VisibleChanged;

            }catch(Exception ex){LogError(ex);}
        }
예제 #9
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); }
        }
예제 #10
0
        public void RenderButlerHud()
        {
            try
            {
                if(ButlerHudView != null)
                {
                    DisposeButlerHud();
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                UpdateButlerHudList();
                UpdateValetHud();

            }catch(Exception ex) {LogError(ex);}
            return;
        }
예제 #11
0
        private void RenderLandscapeHud()
        {
            try
            {
               			if(LandscapeHudView != null)
                {
                    DisposeLandscapeHud();
                }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                LandscapeHudList.Click += LandscapeHudList_Click;

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

                UpdateLandscapeHud();

            }catch(Exception ex) {LogError(ex);}
        }
예제 #12
0
        private void RenderPortalGearHud()
        {
            try
            {
                if (DynamicPortalGearView != null)
                {
                    DisposePortalGearHud();
                }

                AssembleRecallSpellsList();

                int PortalHudWidth = 0;
                if(TextRecallList.Count + PortalSpellList.Count + MiscRecallList.Count > RecallSpellList.Count)
                {
                    PortalHudWidth = (TextRecallList.Count + PortalSpellList.Count + MiscRecallList.Count) * 30;
                }
                else
                {
                    PortalHudWidth = (RecallSpellList.Count) * 30;
                }
                int PortalHudHeight = 70;
                if(RecallSpellList.Count == 0)
                {
                    PortalHudHeight = 35;
                }

                DynamicPortalGearView = new VirindiViewService.HudView("", PortalHudWidth, PortalHudHeight, new ACImage(0x6AA2), false, "PortalGear");
             				DynamicPortalGearView.ShowInBar = false;
                DynamicPortalGearView.UserAlphaChangeable = false;
                DynamicPortalGearView.Visible = true;
                DynamicPortalGearView.UserClickThroughable = false;
                DynamicPortalGearView.UserGhostable = true;
                DynamicPortalGearView.UserMinimizable = true;
                DynamicPortalGearView.UserResizeable = false;
                DynamicPortalGearView.LoadUserSettings();

                DynamicPortalGearTabView = new HudTabView();
                DynamicPortalGearView.Controls.HeadControl = DynamicPortalGearTabView;

                DynamicPortalGearLayout = new HudFixedLayout();
                DynamicPortalGearTabView.AddTab(DynamicPortalGearLayout, "Portals");

               	int shiftbase = 0;
               	for(int i = 0; i < MiscRecallList.Count; i++)
                {
                    DynamicPortalGearLayout.AddControl(MiscRecallList[i].PortalIcon, new Rectangle(i*30, 0, 25, 25));
                    if(MiscRecallList[i].Identifier == "caster") VirindiViewService.TooltipSystem.AssociateTooltip(MiscRecallList[i].PortalIcon, "Select Caster");
                    if(MiscRecallList[i].Identifier == "hubgem") VirindiViewService.TooltipSystem.AssociateTooltip(MiscRecallList[i].PortalIcon, "Facility Hub Gem");
                }
               	shiftbase = MiscRecallList.Count * 30;

                //Text based recall Tiles
                for(int i = 0; i < TextRecallList.Count; i++)
                {
                    DynamicPortalGearLayout.AddControl(TextRecallList[i].PortalIcon, new Rectangle(shiftbase + i * 30, 0, 25, 25));
                    if(TextRecallList[i].Identifier == "atlifestone") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Lifestone Recall (/@ls)");
                    if(TextRecallList[i].Identifier == "athouse") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "House Recall (/@hr)");
                    if(TextRecallList[i].Identifier == "atmansion") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Mansion recall (/@hom)");
                    if(TextRecallList[i].Identifier == "atallegiance") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Allegiance Hometown (/@ah)");
                    if(TextRecallList[i].Identifier == "atmarket") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Marketplace (/@mp)");
                }
                shiftbase += TextRecallList.Count * 30;

                //Portal spell tiles
                if(PortalSpellList.Count > 0)
                {
                    for(int i = 0; i < PortalSpellList.Count; i++)
                    {
                        DynamicPortalGearLayout.AddControl(PortalSpellList[i].PortalIcon, new Rectangle(shiftbase + i * 30, 0, 25, 25));

                        if(PortalSpellList[i].Identifier == "portalrecall") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Portal Recall");
                        if(PortalSpellList[i].Identifier == "lifestonetie") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Lifestone Tie");
                        if(PortalSpellList[i].Identifier == "lifestonerecall") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Lifestone Recall");
                        if(PortalSpellList[i].Identifier == "tieportalone")  VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Tie Portal I");
                        if(PortalSpellList[i].Identifier == "recallportalone") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Recall Portal I");
                        if(PortalSpellList[i].Identifier == "summonportalone") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Summon Portal I");
                        if(PortalSpellList[i].Identifier == "tieportaltwo")  VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Tie Portal II");
                        if(PortalSpellList[i].Identifier == "recallportaltwo") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Recall Portal II");
                        if(PortalSpellList[i].Identifier == "summonportaltwo") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Summon Portal II");
                    }
                }

                //Recall spell tiles
                if(RecallSpellList.Count > 0)
                {
                    for(int i = 0; i < RecallSpellList.Count; i++)
                    {
                        DynamicPortalGearLayout.AddControl(RecallSpellList[i].PortalIcon, new Rectangle(i * 30, 30, 25, 25));
                        if(RecallSpellList[i].Identifier == "sanctuary") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Sanctuary Recall");
                        if(RecallSpellList[i].Identifier == "bananaland") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "BananaLand Recall");
                        if(RecallSpellList[i].Identifier == "colo")  VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Coloseum Recall");
                        if(RecallSpellList[i].Identifier == "aerlinthe") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Aerlinthe Recall");
                        if(RecallSpellList[i].Identifier == "caul") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Singularity Caul Recall");
                        if(RecallSpellList[i].Identifier == "bur") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Bur Recall");
                        if(RecallSpellList[i].Identifier == "olthoi") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Olthoi North Recall");
                        if(RecallSpellList[i].Identifier == "facility")  VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Facility Recall");
                        if(RecallSpellList[i].Identifier == "gearknight") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "GearKnight Resistance Camp Recall");
                        if(RecallSpellList[i].Identifier == "neftet") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Neftet Recall");
                        if(RecallSpellList[i].Identifier == "rynthid")  VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Rynthid Recall");
                        if(RecallSpellList[i].Identifier == "mhoire") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Mhoire Recall");
                        if(RecallSpellList[i].Identifier == "glendenwood") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Glendenwood Recall");
                        if(RecallSpellList[i].Identifier == "mtlethe") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Mount Lethe Recall");
                        if(RecallSpellList[i].Identifier == "ulgrim") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Ulgrim's Recall");
                        if(RecallSpellList[i].Identifier == "candeth") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Candeth Keep Recall");
                    }
                }

                DynamicPortalGearMissingLayout = new HudFixedLayout();
                DynamicPortalGearTabView.AddTab(DynamicPortalGearMissingLayout, "Missing");

                DynaicPortalGearMissingSpellsList = new HudList();
                DynamicPortalGearMissingLayout.AddControl(DynaicPortalGearMissingSpellsList, new Rectangle(0,0,DynamicPortalGearView.Width, DynamicPortalGearView.Height));
                DynaicPortalGearMissingSpellsList.AddColumn(typeof(HudStaticText),DynamicPortalGearView.Width,null);

                HudList.HudListRowAccessor nrow;
                foreach(string spell in MissingSpellsList)
                {
                    nrow = DynaicPortalGearMissingSpellsList.AddRow();
                    ((HudStaticText)nrow[0]).Text = spell;
                }

            }catch(Exception ex){LogError(ex);}
        }
예제 #13
0
        private void RenderItemHud()
        {
            try{

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                InspectorHudManaLabel = new HudStaticText();

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

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

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

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

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

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

                ItemHudInspectorList.Click += ItemHudInspectorList_Click;

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

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

                UpdateItemHud();
            }catch(Exception ex) {LogError(ex);}
        }
        private void RenderWorkersHud()
        {
            try
            {
                if (WorkersHudView != null)
                {
                    DisposeWorkersHud();
                }
                WorkersHudView = new HudView("GearWorkers", 400, 400, new ACImage(0x6AA5));
                WorkersHudView.UserAlphaChangeable = false;
                WorkersHudView.ShowInBar = false;
                WorkersHudView.Visible = true;
                WorkersHudView.Ghosted = false;
                WorkersHudView.UserMinimizable = true;
                WorkersHudView.UserClickThroughable = false;
                WorkersHudTabView = new HudTabView();
                WorkersHudView.Controls.HeadControl = WorkersHudTabView;
                WorkersHudTabLayout = new HudFixedLayout();
                WorkersHudTabView.AddTab(WorkersHudTabLayout, "Gear Workers");
                WorkersHudView.LoadUserSettings();

                lblWorkers = new HudStaticText();
                lblWorkers.Text = "Workers";
                ControlGroup Workers = new ControlGroup();
                cboWorkers = new HudCombo(Workers);

                cboWorkers.Change += (sender, index) => cboWorkers_Change(sender, index);
                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: ";

                WorkersHudTabLayout.AddControl(lblWorkers, new Rectangle(10, 15, 45, 16));
                WorkersHudTabLayout.AddControl(cboWorkers, new Rectangle(60, 15, 100, 16));
                WorkersHudTabLayout.AddControl(lblWorkingNow, new Rectangle(200, 0, 200, 16));
            }
            catch (Exception ex) { LogError(ex); }
        }
예제 #15
0
        private void RenderWorkersHud()
        {
            try
            {
                if (WorkersHudView != null)
                {
                    DisposeWorkersHud();
                }
                WorkersHudView = new HudView("GearWorkers", 400, 400, new ACImage(0x6AA5));
                WorkersHudView.UserAlphaChangeable = false;
                WorkersHudView.ShowInBar = false;
                WorkersHudView.Visible = true;
                WorkersHudView.Ghosted = false;
                WorkersHudView.UserMinimizable = true;
                WorkersHudView.UserClickThroughable = false;
                WorkersHudView.LoadUserSettings();

                WorkersHudTabView = new HudTabView();
                WorkersHudView.Controls.HeadControl = WorkersHudTabView;

                WorkersTabLayout = new HudFixedLayout();
                WorkersHudTabView.AddTab(WorkersTabLayout, "Gear Workers");
                RenderWorkersHudTab();

                WorkerSpecificsTabLayout = new HudFixedLayout();
                WorkersHudTabView.AddTab(WorkerSpecificsTabLayout, "Worker Specifics");
                RenderWorkerSpecificsTab();

            }
            catch (Exception ex) { LogError(ex); }
        }
예제 #16
0
        void RenderInvDisplayHud()
        {
            try
            {
                if (InvDisplayHudView != null)
                {
                    DisposeInvDisplayHudView();
                }

                InvDisplayHudView = new HudView("Inventory PopUp", 230, 400, new ACImage(0x6AA5));
                InvDisplayHudView.UserAlphaChangeable = false;
                InvDisplayHudView.ShowInBar = false;
                InvDisplayHudView.UserResizeable = false;
                InvDisplayHudView.Visible = true;
                InvDisplayHudView.UserMinimizable = true;
                InvDisplayHudView.UserClickThroughable = false;
                InvDisplayHudView.LoadUserSettings();

                InvDisplayHudTabView = new HudTabView();
                InvDisplayHudView.Controls.HeadControl = InvDisplayHudTabView;

                InvDisplayHudTabLayout = new HudFixedLayout();
                InvDisplayHudTabView.AddTab(InvDisplayHudTabLayout, "Item Properties");

                InvDisplayIcon = new HudPictureBox();
                InvDisplayIcon.Image = new ACImage(Color.Black);
                InvDisplayHudTabLayout.AddControl(InvDisplayIcon, new Rectangle(0, 0, 20, 20));

                InvDisplayList = new HudList();
                InvDisplayList.AddColumn(typeof(HudStaticText), 190, null);
                InvDisplayHudTabLayout.AddControl(InvDisplayList, new Rectangle(0,25, 230, 400));

             }
            catch (Exception ex) { LogError(ex); }
        }
예제 #17
0
        private void RenderInventoryHud()
        {
            try
            {

               if (InventoryHudView != null)
                {
                    DisposeInventoryHud();
                }
                if (armorSettingsFilename == "" || armorSettingsFilename == null) { armorSettingsFilename = GearDir + @"\ArmorSettings.xml"; }

                if (nInventoryHudWidth == 0)
                {
                    try
                    {
                        getArmorHudSettings();
                    }
                    catch (Exception ex) { LogError(ex); }

                }

                if (nInventoryHudWidth == 0) { nInventoryHudWidth = nInventoryHudFirstWidth;  }
                if (nInventoryHudHeight == 0) { nInventoryHudHeight = nInventoryHudFirstHeight; }

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

                InventoryHudTabView.OpenTabChange += InventoryHudTabView_OpenTabChange;
                InventoryHudView.Resize += InventoryHudView_Resize;
                InventoryHudView.UserResizeable = true;
                RenderInventoryTabLayout();
                InventoryHudView.VisibleChanged += InventoryHudView_VisibleChanged;

            }
            catch (Exception ex) { LogError(ex); }
            return;
        }
예제 #18
0
        private void RenderInventoryHud()
        {
            try
            {
                if (InventoryHudView != null)
                {
                    DisposeInventoryHud();
                }

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

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

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

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

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

                //Searches for Weapons and Essences

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

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

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

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

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

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

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

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

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

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

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

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

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

                //Armor/Clothing/Jewelry Searches

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

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

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

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

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

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

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

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

                //Search for Salvage

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                InventoryHudView.VisibleChanged += InventoryHudView_VisibleChanged;

            }
            catch (Exception ex) { LogError(ex); }
            return;
        }
        private void 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);}
        }
예제 #20
0
        private void RenderChiefGearHud()
        {
            try
            {
                WriteToChat("I am in RenderChiefGearHud");
                if (ChiefGearHudView != null)
                {
                    DisposeChiefGearHud();
                }

                ChiefGearHudTabView = new HudTabView();
                ChiefGearHudView = new HudView("Gear Foundry", 500, 500, new ACImage(28170));
                ChiefGearHudView.UserAlphaChangeable = false;
                ChiefGearHudView.ShowInBar = true;
                ChiefGearHudView.UserResizeable = false;
                ChiefGearHudView.Visible = true;
                ChiefGearHudView.Ghosted = false;
                ChiefGearHudView.UserMinimizable = true;
                ChiefGearHudView.UserClickThroughable = false;
                ChiefGearHudView.Controls.HeadControl = ChiefGearHudTabView;
                ChiefGearHudSettings = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudSettings, "Settings");
                ChiefGearHudInspect = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudInspect, "Inspect");
                ChiefGearHudSounds = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudSounds, "Sounds");
                ChiefGearHudAbout = new HudFixedLayout();
                ChiefGearHudTabView.AddTab(ChiefGearHudAbout, "About");
                ChiefGearHudView.LoadUserSettings();

                SubscribeChiefGearEvents();

                RenderChiefGearHudSettings();

            }
            catch (Exception ex) { LogError(ex); }
            return;
        }
예제 #21
0
        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);}
        }
예제 #22
0
        private void RenderDynamicRemoteGear()
        {
            try
            {
                if(DynamicGearRemoteView != null)
                {
                    DisposeDynamicRemote();
                }

                AssembleDGRControls();

                int DGRViewHeight = 35 + 35 * DGRControlsList.Count;

                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;

                MasterTimer.Tick += DynamicGearClock;

                for(int i = 0; i < DGRControlsList.Count; i++)
                {
                    DynamicGearRemoteLayout.AddControl(DGRControlsList[i].ControlPictureBox, new Rectangle(2, 35 + 35 * i, 25,25));
                    if(DGRControlsList[i].ControlName == "Butler") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearButler");
                    if(DGRControlsList[i].ControlName == "Visection") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearVisection");
                    if(DGRControlsList[i].ControlName == "Inspector") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearInspector");
                    if(DGRControlsList[i].ControlName == "Sense") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearSense");
                    if(DGRControlsList[i].ControlName == "Tactician") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearTactician");
                    if(DGRControlsList[i].ControlName == "Inventory") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Gear");
                    if(DGRControlsList[i].ControlName == "Armor") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Armor");
                    if(DGRControlsList[i].ControlName == "VSG") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Vertical SwitchGear");
                    if(DGRControlsList[i].ControlName == "HSG") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Horizontal SwitchGear");
                    if(DGRControlsList[i].ControlName == "Portal") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "PortalGear");
                    if(DGRControlsList[i].ControlName == "Tasker") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearTasker");

                }
            }catch(Exception ex){LogError(ex);}
        }
예제 #23
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);}
        }
예제 #24
0
        private void RenderCorpseHud()
        {
            try
            {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

            }catch(Exception ex){LogError(ex);}
        }
예제 #25
0
        private void RenderArmorHud()
        {
            try
            {

                if (ArmorHudView != null)
                {
                    DisposeArmorHud();
                }
                if (armorSettingsFilename == "" || armorSettingsFilename == null) { armorSettingsFilename = GearDir + @"\ArmorSettings.xml"; }
                if (genArmorFilename == "" || genArmorFilename == null) { genArmorFilename = currDir + @"\allToonsArmor.xml"; }
                if (!File.Exists(genArmorFilename))
                {

                    XDocument tempgenArmorDoc = new XDocument(new XElement("Objs"));
                    tempgenArmorDoc.Save(genArmorFilename);
                    tempgenArmorDoc = null;

                }

                if (ArmorHudWidth == 0)
                {
                    getArmorHudSettings();
                }
                if (ArmorHudWidth == 0 || ArmorHudWidth<988) { ArmorHudWidth = ArmorHudFirstWidth;  }
                if (ArmorHudHeight == 0 || ArmorHudHeight<575) { ArmorHudHeight = ArmorHudFirstHeight; }

                ArmorHudView = new HudView("Armor", ArmorHudWidth, ArmorHudHeight, new ACImage(0x6AA5));
                ArmorHudView.UserAlphaChangeable = false;
                ArmorHudView.ShowInBar = false;
                ArmorHudView.UserResizeable = false;
                ArmorHudView.Visible = true;
                ArmorHudView.Ghosted = false;
                ArmorHudView.UserMinimizable = true;
                ArmorHudView.UserClickThroughable = false;
                ArmorHudView.LoadUserSettings();

                ArmorHudTabView = new HudTabView();
                ArmorHudView.Controls.HeadControl = ArmorHudTabView;

                ArmorHudTabLayout = new HudFixedLayout();
                ArmorHudTabView.AddTab(ArmorHudTabLayout, "Armor");

                ArmorUpdateHudTabLayout = new HudFixedLayout();
                ArmorHudTabView.AddTab(ArmorUpdateHudTabLayout, "Update Armor");

                ArmorHudSettings = new HudFixedLayout();
                ArmorHudTabView.AddTab(ArmorHudSettings, "Settings");

                ArmorHudTabView.OpenTabChange += ArmorHudTabView_OpenTabChange;
                ArmorHudView.VisibleChanged += ArmorHudView_VisibleChanged;
                ArmorHudView.Resize += ArmorHudView_Resize;

                RenderArmorTabLayout();

            }
            catch (Exception ex) { LogError(ex); }
            return;
        }
예제 #26
0
        private void RenderArmorHud()
        {
            try
            {

                if (ArmorHudView != null)
                {
                    DisposeArmorHud();
                }

                ArmorHudView = new HudView("Armor", 988, 575, new ACImage(0x6AA5));
                ArmorHudView.UserAlphaChangeable = false;
                ArmorHudView.ShowInBar = false;
                ArmorHudView.UserResizeable = false;
                ArmorHudView.Visible = true;
                ArmorHudView.Ghosted = false;
                ArmorHudView.UserMinimizable = true;
                ArmorHudView.UserClickThroughable = false;
                ArmorHudView.LoadUserSettings();

                ArmorHudTabView = new HudTabView();
                ArmorHudView.Controls.HeadControl = ArmorHudTabView;

                ArmorHudTabLayout = new HudFixedLayout();
                ArmorHudTabView.AddTab(ArmorHudTabLayout, "Armor");
                RenderArmorHudArmorTab();

                ArmorUpdateHudTabLayout = new HudFixedLayout();
                ArmorHudTabView.AddTab(ArmorUpdateHudTabLayout, "Update Armor");
                RenderArmorHudUpdateArmorTab();

                //ArmorHudSettings = new HudFixedLayout();
                //ArmorHudTabView.AddTab(ArmorHudSettings, "Settings");
                //RenderArmorHudSettingsTab();

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