Ejemplo n.º 1
0
		public CorpseTrackerGUI(ITracker<TrackedCorpse> tracker, HudList hudList)
		{
			try
			{
				this.tracker = tracker;
				this.hudList = hudList;

				hudList.ClearColumnsAndRows();

				hudList.AddColumn(typeof(HudStaticText), 53, null);
				hudList.AddColumn(typeof(HudStaticText), 162, null);
				hudList.AddColumn(typeof(HudStaticText), 100, null);
				hudList.AddColumn(typeof(HudStaticText), 0, null);

				HudList.HudListRowAccessor newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Time";
				((HudStaticText)newRow[1]).Text = "Name";
				((HudStaticText)newRow[2]).Text = "Coords";
				((HudStaticText)newRow[3]).Text = "Id";

				tracker.ItemAdded += new Action<TrackedCorpse>(corpseTracker_ItemAdded);
				tracker.ItemChanged += new Action<TrackedCorpse>(corpseTracker_ItemChanged);
				tracker.ItemRemoved += new Action<TrackedCorpse>(corpseTracker_ItemRemoved);

				hudList.Click += new HudList.delClickedControl(hudList_Click);
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
Ejemplo n.º 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); }
        }
Ejemplo n.º 3
0
        public CorpseTrackerGUI(IItemTracker <TrackedCorpse> tracker, HudList hudList)
        {
            try
            {
                this.tracker = tracker;
                this.hudList = hudList;

                hudList.ClearColumnsAndRows();

                hudList.AddColumn(typeof(HudStaticText), 53, null);
                hudList.AddColumn(typeof(HudStaticText), 162, null);
                hudList.AddColumn(typeof(HudStaticText), 100, null);
                hudList.AddColumn(typeof(HudStaticText), 0, null);

                HudList.HudListRowAccessor newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text = "Time";
                ((HudStaticText)newRow[1]).Text = "Name";
                ((HudStaticText)newRow[2]).Text = "Coords";
                ((HudStaticText)newRow[3]).Text = "Id";

                tracker.ItemsAdded  += new Action <System.Collections.Generic.ICollection <TrackedCorpse> >(corpseTracker_ItemsAdded);
                tracker.ItemChanged += new Action <TrackedCorpse>(corpseTracker_ItemChanged);
                tracker.ItemRemoved += new Action <TrackedCorpse>(corpseTracker_ItemRemoved);

                hudList.Click += new HudList.delClickedControl(hudList_Click);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Ejemplo n.º 4
0
        public PlayerTrackerGUI(ITracker <TrackedPlayer> tracker, HudList hudList)
        {
            try
            {
                this.tracker = tracker;
                this.hudList = hudList;

                hudList.ClearColumnsAndRows();

                hudList.AddColumn(typeof(HudStaticText), 75, null);
                hudList.AddColumn(typeof(HudStaticText), 140, null);
                hudList.AddColumn(typeof(HudStaticText), 100, null);
                hudList.AddColumn(typeof(HudStaticText), 0, null);

                HudList.HudListRowAccessor newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text = "Time";
                ((HudStaticText)newRow[1]).Text = "Name";
                ((HudStaticText)newRow[2]).Text = "Coords";
                ((HudStaticText)newRow[3]).Text = "Id";

                tracker.ItemAdded   += new Action <TrackedPlayer>(playerTracker_ItemAdded);
                tracker.ItemChanged += new Action <TrackedPlayer>(playerTracker_ItemChanged);
                tracker.ItemRemoved += new Action <TrackedPlayer>(playerTracker_ItemRemoved);

                hudList.Click += new HudList.delClickedControl(hudList_Click);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Ejemplo n.º 5
0
        public CombatTrackerGUI(CombatTracker combatTracker, HudList monsterList, HudList damageInfoList)
        {
            try
            {
                if (combatTracker == null)
                {
                    return;
                }

                this.combatTracker = combatTracker;
                this.monsterList   = monsterList;

                combatTrackerGUIInfo = new CombatTrackerGUIInfo(damageInfoList);

                monsterList.ClearColumnsAndRows();

                // Each character is a max of 6 pixels wide
                monsterList.AddColumn(typeof(HudStaticText), 5, null);
                monsterList.AddColumn(typeof(HudStaticText), 111, null);
                monsterList.AddColumn(typeof(HudStaticText), 37, null);
                monsterList.AddColumn(typeof(HudStaticText), 55, null);                 // This cannot go any smaller without pruning text
                monsterList.AddColumn(typeof(HudStaticText), 77, null);

                HudList.HudListRowAccessor newRow = monsterList.AddRow();
                ((HudStaticText)newRow[2]).Text          = "KB's";
                ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text          = "Dmg Rcvd";
                ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[4]).Text          = "Dmg Givn";
                ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = monsterList.AddRow();
                ((HudStaticText)newRow[0]).Text          = "*";
                ((HudStaticText)newRow[1]).Text          = "All";
                ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right;

                selectedRow = 1;

                monsterList.Click += new HudList.delClickedControl(monsterList_Click);

                combatTracker.InfoCleared         += new Action <bool>(combatTracker_InfoCleared);
                combatTracker.StatsLoaded         += new Action <List <CombatInfo> >(combatTracker_StatsLoaded);
                combatTracker.CombatInfoUpdated   += new Action <CombatInfo>(combatTracker_CombatInfoUpdated);
                combatTracker.AetheriaInfoUpdated += new Action <AetheriaInfo>(combatTracker_AetheriaInfoUpdated);
                combatTracker.CloakInfoUpdated    += new Action <CloakInfo>(combatTracker_CloakInfoUpdated);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Ejemplo n.º 6
0
		public CombatTrackerGUI(CombatTracker combatTracker, HudList monsterList, HudList damageInfoList)
		{
			try
			{
				if (combatTracker == null)
					return;

				this.combatTracker = combatTracker;
				this.monsterList = monsterList;

				combatTrackerGUIInfo = new CombatTrackerGUIInfo(damageInfoList);

				monsterList.ClearColumnsAndRows();

				// Each character is a max of 6 pixels wide
				monsterList.AddColumn(typeof(HudStaticText), 5, null);
				monsterList.AddColumn(typeof(HudStaticText), 111, null);
				monsterList.AddColumn(typeof(HudStaticText), 37, null);
				monsterList.AddColumn(typeof(HudStaticText), 55, null); // This cannot go any smaller without pruning text
				monsterList.AddColumn(typeof(HudStaticText), 77, null);

				HudList.HudListRowAccessor newRow = monsterList.AddRow();
				((HudStaticText)newRow[2]).Text = "KB's";
				((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Dmg Rcvd";
				((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[4]).Text = "Dmg Givn";
				((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right;

				newRow = monsterList.AddRow();
				((HudStaticText)newRow[0]).Text = "*";
				((HudStaticText)newRow[1]).Text = "All";
				((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
				
				selectedRow = 1;

				monsterList.Click += new HudList.delClickedControl(monsterList_Click);

				combatTracker.InfoCleared += new Action<bool>(combatTracker_InfoCleared);
				combatTracker.StatsLoaded += new Action<List<CombatInfo>>(combatTracker_StatsLoaded);
				combatTracker.CombatInfoUpdated += new Action<CombatInfo>(combatTracker_CombatInfoUpdated);
				combatTracker.AetheriaInfoUpdated += new Action<AetheriaInfo>(combatTracker_AetheriaInfoUpdated);
				combatTracker.CloakInfoUpdated += new Action<CloakInfo>(combatTracker_CloakInfoUpdated);
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
Ejemplo n.º 7
0
        private void AlterCorpseTracker()
        {
            try
            {
                CorpseHudList.Click -= CorpseHudList_Click;

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

                CorpseHudList.Click += CorpseHudList_Click;

                UpdateCorpseHud();
            }catch(Exception ex){LogError(ex);}
        }
Ejemplo n.º 8
0
        public ChatLoggerGUI(ILogger <LoggedChat> logger, Settings.SettingsManager.ChatLogger.Group settings, HudList hudList)
        {
            try
            {
                this.logger   = logger;
                this.settings = settings;
                this.hudList  = hudList;

                hudList.ClearColumnsAndRows();

                hudList.AddColumn(typeof(HudStaticText), 75, null);
                hudList.AddColumn(typeof(HudStaticText), 500, null);

                HudList.HudListRowAccessor newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text = "Time";
                ((HudStaticText)newRow[1]).Text = "Message";

                logger.LogItem += new Action <LoggedChat>(chatLogger_LogItem);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Ejemplo n.º 9
0
        private void AlterItemHud()
        {
            try
            {
                ItemHudInspectorList.Click -= ItemHudInspectorList_Click;
                ItemHudUstList.Click -= ItemHudUstList_Click;
                ItemHudUstButton.Hit -= ItemHudUstButton_Hit;

                ItemHudInspectorList.Dispose();
                ItemHudUstButton.Dispose();
                ItemHudUstList.Dispose();

                ItemHudInspectorList = new HudList();
                ItemHudInspectorLayout.AddControl(ItemHudInspectorList, new Rectangle(0,0,mGeneralSettings.GearWindowSettings.ItemHudWidth,mGeneralSettings.GearWindowSettings.ItemHudHeight));
                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));

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

                UpdateItemHud();

            }catch(Exception ex){LogError(ex);}
        }
Ejemplo n.º 10
0
        private void AlterLandscapeHud()
        {
            try
            {
                LandscapeHudList.Click -= LandscapeHudList_Click;

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

                LandscapeHudList.Click += LandscapeHudList_Click;

                UpdateLandscapeHud();

            }catch(Exception ex){LogError(ex);}
        }
Ejemplo n.º 11
0
        public InventoryTrackerGUI(IItemTracker <TrackedProfitLoss> profitLossTracker, IItemTracker <TrackedInventory> inventoryTracker, HudList hudList)
        {
            try
            {
                this.profitLossTracker = profitLossTracker;
                this.inventoryTracker  = inventoryTracker;
                this.hudList           = hudList;

                hudList.ClearColumnsAndRows();

                hudList.AddColumn(typeof(HudPictureBox), 16, null);
                hudList.AddColumn(typeof(HudStaticText), 55, null);
                hudList.AddColumn(typeof(HudStaticText), 35, null);
                hudList.AddColumn(typeof(HudStaticText), 65, null);
                hudList.AddColumn(typeof(HudStaticText), 65, null);
                hudList.AddColumn(typeof(HudStaticText), 40, null);

                HudList.HudListRowAccessor newRow = hudList.AddRow();
                ((HudStaticText)newRow[3]).Text          = "MMD/h ~5m";
                ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[4]).Text          = "MMD/h ~1h";
                ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right;

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[1]).Text = "Peas";

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[1]).Text = "Comps";

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[1]).Text = "Salvage";

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[1]).Text = "Net Profit";

                hudList.AddRow();

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[2]).Text          = "Count";
                ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text          = "Avg/h ~5m";
                ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[4]).Text          = "Avg/h ~1h";
                ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[5]).Text          = "(Hrs)";
                ((HudStaticText)newRow[5]).TextAlignment = VirindiViewService.WriteTextFormats.Right;

                profitLossTracker.ItemsAdded  += new Action <ICollection <TrackedProfitLoss> >(profitLossTracker_ItemsAdded);
                profitLossTracker.ItemChanged += new Action <TrackedProfitLoss>(profitLossTracker_ItemChanged);
                profitLossTracker.ItemRemoved += new Action <TrackedProfitLoss>(profitLossTracker_ItemRemoved);

                inventoryTracker.ItemsAdded  += new Action <ICollection <TrackedInventory> >(consumableTracker_ItemsAdded);
                inventoryTracker.ItemChanged += new Action <TrackedInventory>(consumableTracker_ItemChanged);
                inventoryTracker.ItemRemoved += new Action <TrackedInventory>(consumableTracker_ItemRemoved);
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Ejemplo n.º 12
0
        private void RenderWorkerSpecificsTab()
        {
            try
            {

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

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

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

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

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

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

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

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

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 13
0
        private void RenderWorkersHudTab()
        {
            try
            {

                WorkersHudView.VisibleChanged += WorkersHudView_VisibleChanged;

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

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

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

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

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

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

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 14
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); }
        }
Ejemplo n.º 15
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;
        }
Ejemplo n.º 16
0
        //        private DateTime ButlerRenderTime = DateTime.MinValue;
        //        private void BulterStorageOpened(object sender, ContainerOpenedEventArgs e)
        //        {
        //            try
        //            {
        //                if(ButlerHudView == null) {return;}
        //                if(e.ItemGuid == 0) {return;}
        //                if(AetherObjects.Collection[e.ItemGuid].Name != "Storage") {return;}
        //                if(ButlerRenderTime == DateTime.MinValue)
        //                {
        //   					ButlerRenderTime = DateTime.Now;
        //                    Core.RenderFrame += ButlerContainerTapback;
        //                }
        //            }catch(Exception ex){LogError(ex);}
        //        }
        //        private void ButlerContainerTapback(object sender, EventArgs e)
        //        {
        //            try
        //            {
        //               	if((DateTime.Now - ButlerRenderTime).TotalMilliseconds < 350) {return;}
        //                else
        //                {
        //                    ButlerRenderTime = DateTime.MinValue;
        //                    Core.RenderFrame -= ButlerContainerTapback;
        //                }
        //            }catch(Exception ex){LogError(ex);}
        //        }
        private void ButlerHudView_Resize(object sender, System.EventArgs e)
        {
            try
            {
                mGeneralSettings.GearWindowSettings.ButlerHudWidth = ButlerHudView.Width;
                mGeneralSettings.GearWindowSettings.ButlerHudHeight = ButlerHudView.Height;
                iLockerUpdate.bSubmitGeneralSettings = true;

                ButlerHudList.Click -= ButlerHudList_Click;

                ButlerHudList.Dispose();
                ButlerHudList = new HudList();
                ButlerHudList.ControlHeight = 16;
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudStaticText), 175, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null);
                ButlerHudList.AddColumn(typeof(HudStaticText), 1, null);
                ButlerHudTabLayout.AddControl(ButlerHudList, new Rectangle(0, 150, 300, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 220));

                ButlerHudList.Click += ButlerHudList_Click;

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

                ButlerHudSelectedCount.Dispose();
                ButlerHudSelectedCount = new HudStaticText();
                ButlerHudTabLayout.AddControl(ButlerHudSelectedLabel, new Rectangle(0,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,100,16));
                ButlerHudTabLayout.AddControl(ButlerHudSelectedCount, new Rectangle(110,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,150,16));

                ButlerPackSpacesAvailable.Dispose();
                ButlerPackSpacesAvailable = new HudStaticText();

                ButlerPackSpaceAvailableLabel.Dispose();
                ButlerPackSpaceAvailableLabel = new HudStaticText();

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

                ButlerBurdenLabel.Dispose();
                ButlerBurdenLabel = new HudStaticText();
                ButlerBurdenLabel.Text = "Current Burden: ";

                ButlerBurden.Dispose();
                ButlerBurden = new HudStaticText();
                ButlerHudTabLayout.AddControl(ButlerBurdenLabel, new Rectangle(0, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 100, 16));
                ButlerHudTabLayout.AddControl(ButlerBurden, new Rectangle(110, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 150, 16));

                UpdateButlerHudList();

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 17
0
        private void RenderArmorTabLayout()
        {
            try
            {
               lblToonArmorName = new HudStaticText();
               lblToonArmorName.FontHeight = nmenuFontHeight;
                lblToonLevel = new HudStaticText();
                lblToonLevel.FontHeight = nmenuFontHeight;
                lblToonMaster = new HudStaticText();
                lblToonMaster.FontHeight = nmenuFontHeight;
                ArmorHudList = new HudList();

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

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

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

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

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

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

            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 18
0
        private void RenderChiefGearFoundryTab()
        {
            try
            {
                //Left Column

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

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

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

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

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

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

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

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

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

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

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

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

                //Right Column

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

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

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

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

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

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

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

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

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

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

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

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

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

                _UpdateFoundryControlPanel();
            }catch(Exception ex){LogError(ex);}
        }
Ejemplo n.º 19
0
        private void RenderKillTaskPopUp()
        {
            try
            {
                KTPopView = new HudView(KTHolder.TaskName, 320, 500, null);
                KTPopView.UserAlphaChangeable = false;
                KTPopView.ShowInBar = false;
                KTPopView.UserResizeable = true;
                KTPopView.Visible = true;
                KTPopView.Ghosted = false;
                KTPopView.UserClickThroughable = false;
                KTPopView.UserMinimizable = true;
                KTPopView.UserGhostable = false;

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

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

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

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

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

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

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

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

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

                KTPopMobsList.Click += KTPopMobsList_Click;

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

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

                KTPopMobAddButton.Hit += KTPopMobAddButton_Hit;

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

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

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

                KTPopNPCList.Click += KTPopNPCList_Click;

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

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

                KTPopNPCAddButton.Hit += KTPopNPCAddButton_Hit;

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

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

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

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

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

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

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

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

                KTPopView.VisibleChanged += KTPopView_VisibleChanged;

            }catch(Exception ex){LogError(ex);}
        }
Ejemplo n.º 20
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);}
        }
Ejemplo n.º 21
0
        private void AlterTaskHud()
        {
            try
            {

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                UpdateTaskPanel();

            }catch(Exception ex){LogError(ex);}
        }
Ejemplo n.º 22
0
        private void RenderChiefGearInspectPageSalvage()
        {
            try
            {
                lstNotifySalvage = new HudList();
                lstNotifySalvageListRow = new HudList.HudListRowAccessor();
                ChiefGearInspectPageSalvage.AddControl(lstNotifySalvage, new Rectangle(5, 5, 260, 300));
                lstNotifySalvage.AddColumn(typeof(HudCheckBox), 5, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 130, null);
                 lstNotifySalvage.AddColumn(typeof(HudStaticText), 60, null);
                 lstNotifySalvage.AddColumn(typeof(HudStaticText), 1, null);

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

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

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

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

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

                SubscribeChiefGearInspectPageSalvage();

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

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

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

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

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

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

                SubscribeChiefGearInspectPageMobs();

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 24
0
        public CombatTrackerGUIInfo(HudList hudList)
        {
            try
            {
                hudList.ClearColumnsAndRows();

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

                HudList.HudListRowAccessor newRow;

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

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

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

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

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

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

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

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

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

                hudList.AddRow();

                newRow = hudList.AddRow();
                ((HudStaticText)newRow[0]).Text     = "Total";
                totalMeleeMissileText               = ((HudStaticText)newRow[1]);
                totalMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
                totalMagicText = ((HudStaticText)newRow[2]);
                totalMagicText.TextAlignment    = VirindiViewService.WriteTextFormats.Right;
                ((HudStaticText)newRow[3]).Text = "Total";
                totalDmgText = ((HudStaticText)newRow[4]);
                totalDmgText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
            }
            catch (Exception ex) { Debug.LogException(ex); }
        }
Ejemplo n.º 25
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;
        }
Ejemplo n.º 26
0
        private void RenderInventoryTabLayout()
        {
            try
            {
                lblInventoryClass = new HudStaticText();
                lblInventoryClass.FontHeight = nmenuFontHeight;
                lblInventoryClass.Text = "Class";
                ControlGroup InventoryClasses = new ControlGroup();
                cboInventoryClasses = new HudCombo(InventoryClasses);
                cboInventoryClasses.Change += (sender, index) => cboInventoryClasses_Change(sender, index);
                int i=0;
                foreach (IDNameLoadable info in ClassInvList)
                {
                    cboInventoryClasses.AddItem(info.name,i);
                    i++;
                }
                lblMyChoice = new HudStaticText();
                lblMyChoice.FontHeight = nmenuFontHeight;
                lblMyChoice.Text = "Search:";

                txtMyChoice = new HudTextBox();

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                bInventoryMainTab = true;

            }

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

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

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

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

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

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

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

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

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

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

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

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

                SubscribeChiefGearInspectPageMenuTabViewPageSearchRuleReqSpellsEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 28
0
        private void RenderChiefGearInspectPageSearchRules()
        {
            try
            {
                lstRules = new HudList();
                LstRulesHudListRow = new HudList.HudListRowAccessor();
                ChiefGearInspectPageSearchRules.AddControl(lstRules, new Rectangle(5, 5, 480, 90));
                lstRules.AddColumn(typeof(HudCheckBox), 5, null);
                lstRules.AddColumn(typeof(HudStaticText), 20, null);
                lstRules.AddColumn(typeof(HudStaticText), 350, null);
                lstRules.AddColumn(typeof(HudPictureBox), 12, null);
                lstRules.AddColumn(typeof(HudStaticText), 1, null);
                _UpdateRulesTabs();
                WriteToChat("I have been at hud making list rules and now am back after trying to populate list.");
                btnRuleClear = new HudButton();
                btnRuleClear.Text = "Reset Values";
                ChiefGearInspectPageSearchRules.AddControl(btnRuleClear, new Rectangle(10, 110, 110, 20));

                btnRuleNew = new HudButton();
                btnRuleNew.Text = "Add New Rule";
                ChiefGearInspectPageSearchRules.AddControl(btnRuleNew, new Rectangle(130, 110, 110, 20));

                btnRuleClone = new HudButton();
                btnRuleClone.Text = "Clone Current Rule";
                ChiefGearInspectPageSearchRules.AddControl(btnRuleClone, new Rectangle(250, 110, 110, 20));

                btnRuleUpdate = new HudButton();
                btnRuleUpdate.Text = "Save Rule Changes";
                ChiefGearInspectPageSearchRules.AddControl(btnRuleUpdate, new Rectangle(370, 110, 110, 20));

                //Set up for adding menu and choices to ChiefGearInspectPageSearchRules
                ChiefGearInspectPageMenuTabView = new HudTabView();
                ChiefGearInspectPageSearchRules.AddControl(ChiefGearInspectPageMenuTabView, new Rectangle(0, 140, 520, 390));
                ChiefGearInspectPageMenuTabMain = new HudFixedLayout();
                ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabMain, "Main");
                ChiefGearInspectPageMenuTabProperties = new HudFixedLayout();
                ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabProperties, "Properties");
                ChiefGearInspectPageMenuTabAppearance = new HudFixedLayout();
                ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabAppearance, "Appearance");
                ChiefGearInspectPageMenuTabReqSpells = new HudFixedLayout();
                ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabReqSpells, "Req Spells");
                ChiefGearInspectPageMenuTabAdvanced = new HudFixedLayout();
                ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabAdvanced, "Advanced");

                bChiefGearInspectPageSearchRules = true;
                RenderChiefGearInspectPageMenuTabMain();

                SubscribeChiefGearInspectSearchRuleEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 29
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);}
        }
Ejemplo n.º 30
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);}
        }
Ejemplo n.º 31
0
        private void RenderChiefGearInspectPageTrophies()
        {
            try
            {
                WriteToChat("I am in function to render trophy hud.");

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

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

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

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

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

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

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

                SubscribeChiefGearInspectPageTrophies();

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 32
0
        private void AlterTacticianHud()
        {
            try
            {
                TacticianDiplayList.Click -= TacticianDiplayList_Click;

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

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

                TacticianDiplayList.Click += TacticianDiplayList_Click;

                UpdateTactician();
            }catch(Exception ex){LogError(ex);}
        }
Ejemplo n.º 33
0
        private void RenderChiefGearInspectPageMenuTabAppearance()
        {
            try
            {
                HudStaticText lblRuleArmorTypes = new HudStaticText();
                //   lblChiefGearSwitch.FontHeight = nmenuFontHeight;
                lblRuleArmorTypes.Text = "Armor Models";
                ChiefGearInspectPageMenuTabAppearance.AddControl(lblRuleArmorTypes, new Rectangle(5, 0, 100, 16));

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

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

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

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 34
0
		public CombatTrackerGUIInfo(HudList hudList)
		{
			try
			{
				hudList.ClearColumnsAndRows();

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

				HudList.HudListRowAccessor newRow;

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

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

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

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

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

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

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

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

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

				hudList.AddRow();

				newRow = hudList.AddRow();
				((HudStaticText)newRow[0]).Text = "Total";
				totalMeleeMissileText = ((HudStaticText)newRow[1]);
				totalMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				totalMagicText = ((HudStaticText)newRow[2]);
				totalMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
				((HudStaticText)newRow[3]).Text = "Total";
				totalDmgText = ((HudStaticText)newRow[4]);
				totalDmgText.TextAlignment = VirindiViewService.WriteTextFormats.Right;
			}
			catch (Exception ex) { Debug.LogException(ex); }
		}
Ejemplo n.º 35
0
        private void RenderChiefGearInspectPageMenuTabMain()
        {
            try
            {
                if (ChiefGearInspectPageMenuTabMain != null) { DisposeChiefGearInspectPageMenuTabMain(); }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

                bChiefGearInspectPageTabViewMain = true;
                SubscribeChiefGearInspectPageMenuTabViewPageSearchRuleMainEvents();

            }
            catch (Exception ex) { LogError(ex); }
        }
Ejemplo n.º 36
0
        private void RenderArmorUpdateTabLayout()
        {
            try
            {
               lblToonArmorUpdateName = new HudStaticText();
                lblToonArmorUpdateName.FontHeight = nmenuFontHeight;
                lblToonArmorUpdateName.Text = "";
                lblToonArmorUpdateLevel = new HudStaticText();
                lblToonArmorUpdateLevel.FontHeight = nmenuFontHeight;
                lblToonArmorUpdateMaster = new HudStaticText();
                lblToonArmorUpdateMaster.FontHeight = nmenuFontHeight;
                ArmorUpdateHudList = new HudList();
                ArmorUpdateHudListRow = new HudList.HudListRowAccessor();
                ArmorAvailableList = new HudList();
                ArmorAvailableListRow = new HudList.HudListRowAccessor();
                armorSelectFilename = currDir + @"\armorSelected.xml";
            //    WriteToChat("Height: " + ArmorHudFirstHeight + ", Width: " + ArmorHudWidth);

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

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

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

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

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

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

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

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

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

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

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

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

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

            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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