public void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { this.c = new HudList(); layout.AddControl(this.c, new Rectangle(0, 0, 300, 0x146)); this.c.AddColumn(typeof(HudPictureBox), 0x10, "clx"); this.c.AddColumn(typeof(HudStaticText), 0x270f, "cln"); this.a(); this.c.add_Click(new HudList.delClickedControl(this, (IntPtr)this.a)); this.g.Clear(); this.f = new HudCombo(layout.get_Group()); layout.AddControl(this.f, new Rectangle(4, 330, 150, 0x10)); foreach (int num in cl.GetTypeIDs <T>()) { this.g.Add(num); this.f.AddItem(cl.Create <T>(num).g(), null); } HudButton button = new HudButton(); layout.AddControl(button, new Rectangle(0x9e, 330, 100, 0x10)); button.set_Text("Add..."); button.add_Hit(new EventHandler(this.b)); } }
public override void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { int y = 4; this.d = new HudStaticText(); layout.AddControl(this.d, new Rectangle(4, y, 0x124, 0x10)); this.d.set_Text(this.a.k()); y += 20; this.c.Clear(); this.b = new HudCombo(layout.get_Group()); layout.AddControl(this.b, new Rectangle(4, y, 150, 0x10)); foreach (int num2 in cl.GetTypeIDs <fl>()) { this.c.Add(num2); fl fl = cl.Create <fl>(num2); this.b.AddItem(fl.g(), null); if (fl.f() == this.a.f()) { this.b.set_Current(this.b.get_Count() - 1); } } this.b.add_Change(new EventHandler(this.a)); HudButton button = new HudButton(); layout.AddControl(button, new Rectangle(0x9e, y, 100, 0x10)); button.set_Text("Edit"); button.add_Hit(new EventHandler(this.c)); } }
public override void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { this.a = new HudTextBox(); layout.AddControl(this.a, new Rectangle(4, 0xb7, 0x124, 0x10)); this.a.set_Text(this.a()); this.a.add_Change(new EventHandler(this.a)); } }
private void b(object A_0, EventArgs A_1) { if ((this.m.get_Current() >= 0) && (this.m.get_Current() < this.o.Count)) { this.j.Dispose(); this.g.b = cl.a(this.o[this.m.get_Current()]); this.j = new HudFixedLayout(); this.h.AddControl(this.j, new Rectangle(0x134, 0x2c, 300, 350)); this.g.b.j(this.j); [email protected](); } }
private void c(object A_0, EventArgs A_1) { if ((this.l.get_Current() >= 0) && (this.l.get_Current() < this.n.Count)) { this.i.Dispose(); this.g.a = cl.a(this.n[this.l.get_Current()]); this.i = new HudFixedLayout(); this.h.AddControl(this.i, new Rectangle(4, 0x2c, 300, 350)); this.g.a.j(this.i); [email protected](); } }
private void e() { if (this.f != null) { this.f.Dispose(); this.f = null; } this.e = false; this.g = null; this.j = null; this.i = null; }
public void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { this.b = new HudTextBox(); layout.AddControl(this.b, new Rectangle(4, 0xb7, 0x124, 0x10)); this.b.set_Text(this.a.ToString()); this.b.add_Change(new EventHandler(this.a)); this.b.add_LostFocus(new EventHandler(this.b)); } }
private void a(d8 A_0) { fl a = A_0.a; b3 b = A_0.b; this.g = A_0; this.e = true; this.f = new HudView("Virindi Tank Edit Meta Rule", 0x264, 0x1a2, new ACImage()); this.f.set_UserMinimizable(false); this.f.set_UserGhostable(false); this.f.LoadUserSettings(); this.h = new HudFixedLayout(); this.f.get_Controls().set_HeadControl(this.h); HudButton button = new HudButton(); this.h.AddControl(button, new Rectangle(4, 0x18e, 0x40, 0x10)); button.set_Text("Close"); this.l = new HudCombo(this.f.get_Controls()); this.m = new HudCombo(this.f.get_Controls()); this.h.AddControl(this.l, new Rectangle(4, 4, 300, 0x10)); this.h.AddControl(this.m, new Rectangle(0x134, 4, 300, 0x10)); this.b(); this.k = new HudCombo(this.f.get_Controls()); this.h.AddControl(this.k, new Rectangle(4, 0x18, 0x94, 0x10)); this.k.add_Change(new EventHandler(this.e)); this.a(); HudButton button2 = new HudButton(); this.h.AddControl(button2, new Rectangle(0x9c, 0x18, 0x94, 0x10)); button2.set_Text("New State..."); button2.add_Hit(new EventHandler(this.d)); this.h.AddControl(this.d(), new Rectangle(3, 0x2b, 1, 0x161)); this.h.AddControl(this.c(), new Rectangle(4, 0x2b, 0x12d, 1)); this.h.AddControl(this.c(), new Rectangle(4, 0x18b, 0x12d, 1)); this.h.AddControl(this.d(), new Rectangle(0x131, 0x2b, 1, 0x161)); this.h.AddControl(this.d(), new Rectangle(0x261, 0x2b, 1, 0x161)); this.h.AddControl(this.d(), new Rectangle(0x133, 0x2b, 1, 0x161)); this.h.AddControl(this.c(), new Rectangle(0x134, 0x2b, 0x12d, 1)); this.h.AddControl(this.c(), new Rectangle(0x134, 0x18b, 0x12d, 1)); this.i = new HudFixedLayout(); this.j = new HudFixedLayout(); this.h.AddControl(this.i, new Rectangle(4, 0x2c, 300, 350)); this.h.AddControl(this.j, new Rectangle(0x134, 0x2c, 300, 350)); a.j(this.i); b.j(this.j); button.add_Hit(new EventHandler(this.a)); this.l.add_Change(new EventHandler(this.c)); this.m.add_Change(new EventHandler(this.b)); this.f.set_Visible(true); }
//List<HudB> public PopoutWindow() { VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser(); parser.ParseFromResource("ChaosHelper.popoutView.xml", out popoutproperties, out popoutcontrols); popoutview = new VirindiViewService.HudView(popoutproperties, popoutcontrols); popoutview.ShowInBar = false; popoutview.Visible = false; popoutview.UserMinimizable = true; popoutTempLayout = popoutview != null ? (HudFixedLayout)popoutview["popout"] : new HudFixedLayout(); //popoutview.VisibleChanged += Popoutview_VisibleChanged; }
public override void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { this.b = new HudStaticText(); layout.AddControl(this.b, new Rectangle(4, 4, 0x124, 0x10)); this.b.set_Text(this.k()); HudButton button = new HudButton(); layout.AddControl(button, new Rectangle(4, 0x18, 200, 0x10)); button.set_Text("Set Current"); button.add_Hit(new EventHandler(this.a)); } }
public void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { this.b = new HudCombo(layout.get_Group()); layout.AddControl(this.b, new Rectangle(4, 0xb7, 0x94, 0x10)); this.a(); this.b.add_Change(new EventHandler(this.b)); HudButton button = new HudButton(); layout.AddControl(button, new Rectangle(0x9c, 0xb7, 0x94, 0x10)); button.set_Text("New State..."); button.add_Hit(new EventHandler(this.a)); } }
private void a(object A_0, int A_1, int A_2) { if ((A_1 >= 0) && (A_1 < this.a.Count)) { switch (A_2) { case 0: this.a.RemoveAt(A_1); this.a(); [email protected](); if (this.h != null) { this.h.c(); } return; case 1: { if (this.b != null) { this.b.Dispose(); } T local = this.a[A_1]; this.b = new HudView("Edit " + MultipleBase <T> .a((b1)local), 300, 0x176, new ACImage(Color.Red)); this.b.set_UserMinimizable(false); this.b.set_UserGhostable(false); this.b.LoadUserSettings(); this.b.set_Visible(true); this.d = new HudFixedLayout(); this.b.get_Controls().set_HeadControl(this.d); HudButton button = new HudButton(); this.d.AddControl(button, new Rectangle(4, 0x162, 150, 0x10)); button.set_Text("Close"); button.add_Hit(new EventHandler(this.a)); this.e = new HudFixedLayout(); this.d.AddControl(this.e, new Rectangle(0, 0, 300, 350)); local.j(this.e); return; } } } }
public override void a(object A_0) { HudFixedLayout layout = A_0 as HudFixedLayout; if (layout != null) { int num = this.f(); this.a.Clear(); int y = 4; for (int i = 0; i < num; i++) { HudStaticText text = new HudStaticText(); layout.AddControl(text, new Rectangle(4, y, 0x124, 0x10)); y += 20; text.set_Text(this.a(i)); HudTextBox item = new HudTextBox(); layout.AddControl(item, new Rectangle(4, y, 0x124, 0x10)); y += 20; item.set_Text(this.b(i)); item.add_Change(new EventHandler(this.a)); this.a.Add(item); } } }
private void c(object A_0, EventArgs A_1) { if (this.e != null) { this.e.Dispose(); } fl a = this.a; this.e = new HudView("Edit " + b6.a((b1)a), 300, 0x176, new ACImage(Color.Red)); this.e.set_UserMinimizable(false); this.e.set_UserGhostable(false); this.e.LoadUserSettings(); this.e.set_Visible(true); this.f = new HudFixedLayout(); this.e.get_Controls().set_HeadControl(this.f); HudButton button = new HudButton(); this.f.AddControl(button, new Rectangle(4, 0x162, 150, 0x10)); button.set_Text("Close"); button.add_Hit(new EventHandler(this.b)); this.g = new HudFixedLayout(); this.f.AddControl(this.g, new Rectangle(0, 0, 300, 350)); a.j(this.g); }
private void RenderPortalGearHud() { try { if (DynamicPortalGearView != null) { DisposePortalGearHud(); } AssembleRecallSpellsList(); int PortalHudWidth = 0; if(TextRecallList.Count + PortalSpellList.Count + MiscRecallList.Count > RecallSpellList.Count) { PortalHudWidth = (TextRecallList.Count + PortalSpellList.Count + MiscRecallList.Count) * 30; } else { PortalHudWidth = (RecallSpellList.Count) * 30; } int PortalHudHeight = 70; if(RecallSpellList.Count == 0) { PortalHudHeight = 35; } DynamicPortalGearView = new VirindiViewService.HudView("", PortalHudWidth, PortalHudHeight, new ACImage(0x6AA2), false, "PortalGear"); DynamicPortalGearView.ShowInBar = false; DynamicPortalGearView.UserAlphaChangeable = false; DynamicPortalGearView.Visible = true; DynamicPortalGearView.UserClickThroughable = false; DynamicPortalGearView.UserGhostable = true; DynamicPortalGearView.UserMinimizable = true; DynamicPortalGearView.UserResizeable = false; DynamicPortalGearView.LoadUserSettings(); DynamicPortalGearTabView = new HudTabView(); DynamicPortalGearView.Controls.HeadControl = DynamicPortalGearTabView; DynamicPortalGearLayout = new HudFixedLayout(); DynamicPortalGearTabView.AddTab(DynamicPortalGearLayout, "Portals"); int shiftbase = 0; for(int i = 0; i < MiscRecallList.Count; i++) { DynamicPortalGearLayout.AddControl(MiscRecallList[i].PortalIcon, new Rectangle(i*30, 0, 25, 25)); if(MiscRecallList[i].Identifier == "caster") VirindiViewService.TooltipSystem.AssociateTooltip(MiscRecallList[i].PortalIcon, "Select Caster"); if(MiscRecallList[i].Identifier == "hubgem") VirindiViewService.TooltipSystem.AssociateTooltip(MiscRecallList[i].PortalIcon, "Facility Hub Gem"); } shiftbase = MiscRecallList.Count * 30; //Text based recall Tiles for(int i = 0; i < TextRecallList.Count; i++) { DynamicPortalGearLayout.AddControl(TextRecallList[i].PortalIcon, new Rectangle(shiftbase + i * 30, 0, 25, 25)); if(TextRecallList[i].Identifier == "atlifestone") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Lifestone Recall (/@ls)"); if(TextRecallList[i].Identifier == "athouse") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "House Recall (/@hr)"); if(TextRecallList[i].Identifier == "atmansion") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Mansion recall (/@hom)"); if(TextRecallList[i].Identifier == "atallegiance") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Allegiance Hometown (/@ah)"); if(TextRecallList[i].Identifier == "atmarket") VirindiViewService.TooltipSystem.AssociateTooltip(TextRecallList[i].PortalIcon, "Marketplace (/@mp)"); } shiftbase += TextRecallList.Count * 30; //Portal spell tiles if(PortalSpellList.Count > 0) { for(int i = 0; i < PortalSpellList.Count; i++) { DynamicPortalGearLayout.AddControl(PortalSpellList[i].PortalIcon, new Rectangle(shiftbase + i * 30, 0, 25, 25)); if(PortalSpellList[i].Identifier == "portalrecall") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Portal Recall"); if(PortalSpellList[i].Identifier == "lifestonetie") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Lifestone Tie"); if(PortalSpellList[i].Identifier == "lifestonerecall") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Lifestone Recall"); if(PortalSpellList[i].Identifier == "tieportalone") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Tie Portal I"); if(PortalSpellList[i].Identifier == "recallportalone") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Recall Portal I"); if(PortalSpellList[i].Identifier == "summonportalone") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Summon Portal I"); if(PortalSpellList[i].Identifier == "tieportaltwo") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Tie Portal II"); if(PortalSpellList[i].Identifier == "recallportaltwo") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Recall Portal II"); if(PortalSpellList[i].Identifier == "summonportaltwo") VirindiViewService.TooltipSystem.AssociateTooltip(PortalSpellList[i].PortalIcon, "Summon Portal II"); } } //Recall spell tiles if(RecallSpellList.Count > 0) { for(int i = 0; i < RecallSpellList.Count; i++) { DynamicPortalGearLayout.AddControl(RecallSpellList[i].PortalIcon, new Rectangle(i * 30, 30, 25, 25)); if(RecallSpellList[i].Identifier == "sanctuary") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Sanctuary Recall"); if(RecallSpellList[i].Identifier == "bananaland") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "BananaLand Recall"); if(RecallSpellList[i].Identifier == "colo") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Coloseum Recall"); if(RecallSpellList[i].Identifier == "aerlinthe") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Aerlinthe Recall"); if(RecallSpellList[i].Identifier == "caul") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Singularity Caul Recall"); if(RecallSpellList[i].Identifier == "bur") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Bur Recall"); if(RecallSpellList[i].Identifier == "olthoi") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Olthoi North Recall"); if(RecallSpellList[i].Identifier == "facility") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Facility Recall"); if(RecallSpellList[i].Identifier == "gearknight") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "GearKnight Resistance Camp Recall"); if(RecallSpellList[i].Identifier == "neftet") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Neftet Recall"); if(RecallSpellList[i].Identifier == "rynthid") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Rynthid Recall"); if(RecallSpellList[i].Identifier == "mhoire") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Mhoire Recall"); if(RecallSpellList[i].Identifier == "glendenwood") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Glendenwood Recall"); if(RecallSpellList[i].Identifier == "mtlethe") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Mount Lethe Recall"); if(RecallSpellList[i].Identifier == "ulgrim") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Ulgrim's Recall"); if(RecallSpellList[i].Identifier == "candeth") VirindiViewService.TooltipSystem.AssociateTooltip(RecallSpellList[i].PortalIcon, "Candeth Keep Recall"); } } DynamicPortalGearMissingLayout = new HudFixedLayout(); DynamicPortalGearTabView.AddTab(DynamicPortalGearMissingLayout, "Missing"); DynaicPortalGearMissingSpellsList = new HudList(); DynamicPortalGearMissingLayout.AddControl(DynaicPortalGearMissingSpellsList, new Rectangle(0,0,DynamicPortalGearView.Width, DynamicPortalGearView.Height)); DynaicPortalGearMissingSpellsList.AddColumn(typeof(HudStaticText),DynamicPortalGearView.Width,null); HudList.HudListRowAccessor nrow; foreach(string spell in MissingSpellsList) { nrow = DynaicPortalGearMissingSpellsList.AddRow(); ((HudStaticText)nrow[0]).Text = spell; } }catch(Exception ex){LogError(ex);} }
private void RenderChiefGearInspectTab() { try { ChiefGearInspectPageTabView = new HudTabView(); ChiefGearHudInspect.AddControl(ChiefGearInspectPageTabView, new Rectangle(5, 5, 495, 500)); ChiefGearInspectPageSearchRules = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageSearchRules, "Search Rules"); lstRules = new HudList(); lstRules.ControlHeight = 16; lstRules.AddColumn(typeof(HudCheckBox), 16, null); lstRules.AddColumn(typeof(HudStaticText), 20, null); lstRules.AddColumn(typeof(HudStaticText), 350, null); lstRules.AddColumn(typeof(HudPictureBox), 16, null); lstRules.AddColumn(typeof(HudStaticText), 1, null); ChiefGearInspectPageSearchRules.AddControl(lstRules, new Rectangle(5, 5, 480, 90)); 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)); ChiefGearInspectPageMenuTabView = new HudTabView(); ChiefGearInspectPageSearchRules.AddControl(ChiefGearInspectPageMenuTabView, new Rectangle(0, 140, 520, 390)); ChiefGearInspectPageMenuTabMain = new HudFixedLayout(); ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabMain, "Main"); RenderInspectMainTab(); ChiefGearInspectPageMenuTabProperties = new HudFixedLayout(); ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabProperties, "Properties"); RenderInspectorPropertiesTab(); ChiefGearInspectPageMenuTabAppearance = new HudFixedLayout(); ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabAppearance, "Appearance"); RenderInspectAppearanceTab(); ChiefGearInspectPageMenuTabReqSpells = new HudFixedLayout(); ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabReqSpells, "Req Spells"); RenderInspectSpellsTab(); ChiefGearInspectPageMenuTabAdvanced = new HudFixedLayout(); ChiefGearInspectPageMenuTabView.AddTab(ChiefGearInspectPageMenuTabAdvanced, "Advanced"); RenderInspectorAdvancedTab(); ChiefGearInspectPageTrophies = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageTrophies, "Trophies/NPCs"); RenderTrophyTab(); ChiefGearInspectPageMobs = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageMobs, "Mobs"); RenderMobTab(); ChiefGearInspectPageSalvage = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageSalvage, "Salvage"); RenderSalvageTab(); lstRules.Click += lstRules_Click; btnRuleClear.Hit += btnRuleClear_Hit; btnRuleUpdate.Hit += btnRuleUpdate_Hit; btnRuleClone.Hit += btnRuleClone_Hit; btnRuleNew.Hit += btnRuleNew_Hit; _UpdateRulesTabs(); }catch (Exception ex) { LogError(ex); } }
private void RenderDynamicRemoteGear() { try { if(DynamicGearRemoteView != null) { DisposeDynamicRemote(); } AssembleDGRControls(); int DGRViewHeight = 35 + 35 * DGRControlsList.Count + 35 + 10; DynamicGearRemoteView = new HudView("", 35, DGRViewHeight, GearGraphics.RemoteGearIcon, false, "RemoteGear"); DynamicGearRemoteView.ShowInBar = false; DynamicGearRemoteView.UserAlphaChangeable = false; DynamicGearRemoteView.Visible = true; DynamicGearRemoteView.UserClickThroughable = false; DynamicGearRemoteView.UserGhostable = true; DynamicGearRemoteView.UserMinimizable = false; DynamicGearRemoteView.UserResizeable = false; DynamicGearRemoteView.LoadUserSettings(); DynamicGearRemoteTabView = new HudTabView(); DynamicGearRemoteView.Controls.HeadControl = DynamicGearRemoteTabView; DynamicGearRemoteLayout = new HudFixedLayout(); DynamicGearRemoteTabView.AddTab(DynamicGearRemoteLayout, ""); DynamicGearRemoteClock = new HudStaticText(); DynamicGearRemoteLayout.AddControl(DynamicGearRemoteClock, new Rectangle(0,4,30,16)); DynamicGearRemoteClock.FontHeight = 8; SecondsTimer.Tick += DynamicGearClock; for(int i = 0; i < DGRControlsList.Count; i++) { DynamicGearRemoteLayout.AddControl(DGRControlsList[i].ControlPictureBox, new Rectangle(2, 35 + 35 * i, 25,25)); VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, DGRControlsList[i].ToolTipName); } DynamicRemoteFoundryButton = new HudImageButton(); DynamicRemoteFoundryButton.CanSticky = true; DynamicRemoteFoundryButton.Image_Down = CreateIconFromResource("FoundryOn.gif"); DynamicRemoteFoundryButton.Image_Up = CreateIconFromResource("FoundryOff.gif"); DynamicRemoteFoundryButton.Image_Background = GearGraphics.GB_BACKGROUND; DynamicGearRemoteLayout.AddControl(DynamicRemoteFoundryButton, new Rectangle(2,35 + 35 * DGRControlsList.Count, 25, 25)); if(mGeneralSettings.FoundrySettings.FoundyEnabled) {DynamicRemoteFoundryButton.StickyDown = true;} DynamicRemoteFoundryButton.StickyDownStateChanged += DynamicRemoteFoundryButton_Hit; }catch(Exception ex){LogError(ex);} }
private void RenderInventoryHud() { try { if (InventoryHudView != null) { DisposeInventoryHud(); } if (armorSettingsFilename == "" || armorSettingsFilename == null) { armorSettingsFilename = GearDir + @"\ArmorSettings.xml"; } if (nInventoryHudWidth == 0) { try { getArmorHudSettings(); } catch (Exception ex) { LogError(ex); } } if (nInventoryHudWidth == 0) { nInventoryHudWidth = nInventoryHudFirstWidth; } if (nInventoryHudHeight == 0) { nInventoryHudHeight = nInventoryHudFirstHeight; } InventoryHudView = new HudView("Gear", nInventoryHudWidth, nInventoryHudHeight, new ACImage(0x6AA5)); InventoryHudView.UserAlphaChangeable = false; InventoryHudView.ShowInBar = false; InventoryHudView.UserResizeable = false; InventoryHudView.Visible = true; InventoryHudView.Ghosted = false; InventoryHudView.UserMinimizable = true; InventoryHudView.UserClickThroughable = false; InventoryHudTabView = new HudTabView(); InventoryHudView.Controls.HeadControl = InventoryHudTabView; InventoryHudTabLayout = new HudFixedLayout(); InventoryHudTabView.AddTab(InventoryHudTabLayout,"Inventory"); InventoryHudView.LoadUserSettings(); InventoryHudSettings = new HudFixedLayout(); InventoryHudTabView.AddTab(InventoryHudSettings, "Settings"); InventoryHudTabView.OpenTabChange += InventoryHudTabView_OpenTabChange; InventoryHudView.Resize += InventoryHudView_Resize; InventoryHudView.UserResizeable = true; RenderInventoryTabLayout(); InventoryHudView.VisibleChanged += InventoryHudView_VisibleChanged; } catch (Exception ex) { LogError(ex); } return; }
private void RenderWorkersHud() { try { if (WorkersHudView != null) { DisposeWorkersHud(); } WorkersHudView = new HudView("GearWorkers", 400, 400, new ACImage(0x6AA5)); WorkersHudView.UserAlphaChangeable = false; WorkersHudView.ShowInBar = false; WorkersHudView.Visible = true; WorkersHudView.Ghosted = false; WorkersHudView.UserMinimizable = true; WorkersHudView.UserClickThroughable = false; WorkersHudView.LoadUserSettings(); WorkersHudTabView = new HudTabView(); WorkersHudView.Controls.HeadControl = WorkersHudTabView; WorkersTabLayout = new HudFixedLayout(); WorkersHudTabView.AddTab(WorkersTabLayout, "Gear Workers"); RenderWorkersHudTab(); WorkerSpecificsTabLayout = new HudFixedLayout(); WorkersHudTabView.AddTab(WorkerSpecificsTabLayout, "Worker Specifics"); RenderWorkerSpecificsTab(); } catch (Exception ex) { LogError(ex); } }
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; }
private void RenderChiefGearHud() { try { WriteToChat("I am in RenderChiefGearHud"); if (ChiefGearHudView != null) { DisposeChiefGearHud(); } ChiefGearHudTabView = new HudTabView(); ChiefGearHudView = new HudView("Gear Foundry", 500, 500, new ACImage(28170)); ChiefGearHudView.UserAlphaChangeable = false; ChiefGearHudView.ShowInBar = true; ChiefGearHudView.UserResizeable = false; ChiefGearHudView.Visible = true; ChiefGearHudView.Ghosted = false; ChiefGearHudView.UserMinimizable = true; ChiefGearHudView.UserClickThroughable = false; ChiefGearHudView.Controls.HeadControl = ChiefGearHudTabView; ChiefGearHudSettings = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudSettings, "Settings"); ChiefGearHudInspect = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudInspect, "Inspect"); ChiefGearHudSounds = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudSounds, "Sounds"); ChiefGearHudAbout = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudAbout, "About"); ChiefGearHudView.LoadUserSettings(); SubscribeChiefGearEvents(); RenderChiefGearHudSettings(); } catch (Exception ex) { LogError(ex); } return; }
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; }
void RenderInvDisplayHud() { try { if (InvDisplayHudView != null) { DisposeInvDisplayHudView(); } InvDisplayHudView = new HudView("Inventory PopUp", 230, 400, new ACImage(0x6AA5)); InvDisplayHudView.UserAlphaChangeable = false; InvDisplayHudView.ShowInBar = false; InvDisplayHudView.UserResizeable = false; InvDisplayHudView.Visible = true; InvDisplayHudView.UserMinimizable = true; InvDisplayHudView.UserClickThroughable = false; InvDisplayHudView.LoadUserSettings(); InvDisplayHudTabView = new HudTabView(); InvDisplayHudView.Controls.HeadControl = InvDisplayHudTabView; InvDisplayHudTabLayout = new HudFixedLayout(); InvDisplayHudTabView.AddTab(InvDisplayHudTabLayout, "Item Properties"); InvDisplayIcon = new HudPictureBox(); InvDisplayIcon.Image = new ACImage(Color.Black); InvDisplayHudTabLayout.AddControl(InvDisplayIcon, new Rectangle(0, 0, 20, 20)); InvDisplayList = new HudList(); InvDisplayList.AddColumn(typeof(HudStaticText), 190, null); InvDisplayHudTabLayout.AddControl(InvDisplayList, new Rectangle(0,25, 230, 400)); } catch (Exception ex) { LogError(ex); } }
public void RenderButlerHud() { try { if(ButlerHudView != null) { DisposeButlerHud(); } ButlerHudView = new HudView("GearButler", GearButlerSettings.ButlerHudWidth, GearButlerSettings.ButlerHudHeight, new ACImage(0x6AA3)); ButlerHudView.UserAlphaChangeable = false; ButlerHudView.ShowInBar = false; ButlerHudView.Visible = true; ButlerHudView.UserClickThroughable = false; ButlerHudView.UserMinimizable = true; ButlerHudView.UserResizeable = true; ButlerHudView.LoadUserSettings(); ButlerHudTabView = new HudTabView(); ButlerHudView.Controls.HeadControl = ButlerHudTabView; //ButlerTab ButlerHudTabLayout = new HudFixedLayout(); ButlerHudTabView.AddTab(ButlerHudTabLayout, "Butler"); ButlerHudCurrentSelectionLabel = new HudStaticText(); ButlerHudCurrentSelectionLabel.FontHeight = nmenuFontHeight; ButlerHudCurrentSelectionLabel.Text = "Current Selection"; ButlerHudCurrentSelectionLabel.TextAlignment = VirindiViewService.WriteTextFormats.Center; ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionLabel, new Rectangle(75, 0, 150, 16)); ButlerHudUseCurrentSelection = new HudButton(); ButlerHudUseCurrentSelection.Text = "Use"; ButlerHudTabLayout.AddControl(ButlerHudUseCurrentSelection, new Rectangle(5,5,50,20)); ButlerHudDestoryCurrentSelection = new HudButton(); ButlerHudDestoryCurrentSelection.Text = "Destroy"; ButlerHudTabLayout.AddControl(ButlerHudDestoryCurrentSelection, new Rectangle(245,5,50,20)); ButlerHudSalvageCurrentSelection = new HudButton(); ButlerHudSalvageCurrentSelection.Text = "Salvage"; ButlerHudTabLayout.AddControl(ButlerHudSalvageCurrentSelection, new Rectangle(245,30,50,20)); try { Decal.Interop.Filters.SkillInfo lockpickinfo = Core.CharacterFilter.Underlying.get_Skill((Decal.Interop.Filters.eSkillID)0x17); if(lockpickinfo.Training.ToString() == "eTrainSpecialized" || lockpickinfo.Training.ToString() == "eTrainTrained") { ButlerHudPickCurrentSelection = new HudButton(); ButlerHudPickCurrentSelection.Text = "Pick"; ButlerHudTabLayout.AddControl(ButlerHudPickCurrentSelection, new Rectangle(5,30,50,20)); } }catch(Exception ex){LogError(ex);} ButlerHudCurrentSelectionIcon = new HudImageStack(); ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionIcon, new Rectangle(135,20,30,30)); ButlerHudCurrentSelectionText = new HudStaticText(); ButlerHudCurrentSelectionText.FontHeight = nmenuFontHeight; ButlerHudCurrentSelectionText.Text = null; ButlerHudCurrentSelectionText.TextAlignment = VirindiViewService.WriteTextFormats.Center; ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionText, new Rectangle(0,50,300,16)); ButlerHudSearchBox = new HudTextBox(); ButlerHudSearchBox.Text = String.Empty; ButlerHudTabLayout.AddControl(ButlerHudSearchBox, new Rectangle(0,80,200,20)); ButlerHudSearchButton = new HudButton(); ButlerHudSearchButton.Text = "Search"; ButlerHudTabLayout.AddControl(ButlerHudSearchButton, new Rectangle(205,80,40,20)); ButlerHudClearSearchButton = new HudButton(); ButlerHudClearSearchButton.Text = "Reset"; ButlerHudTabLayout.AddControl(ButlerHudClearSearchButton, new Rectangle(250,80,40,20)); ButlerQuickSortLabel = new HudStaticText(); ButlerQuickSortLabel.FontHeight = 8; ButlerQuickSortLabel.Text = "QSort:"; ButlerHudTabLayout.AddControl(ButlerQuickSortLabel, new Rectangle(0,110,30,16)); ButlerQuickSortEquipped = new HudImageButton(); ButlerQuickSortEquipped.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortEquipped.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortEquipped.Image_Up = GearGraphics.GB_EQUIPPED_ICON; ButlerQuickSortEquipped.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortEquipped, new Rectangle(40,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortEquipped, "Equipped"); ButlerQuickSortUnequipped = new HudImageButton(); ButlerQuickSortUnequipped.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortUnequipped.Image_Up = GearGraphics.GB_UNEQUIPPED_ICON; ButlerQuickSortUnequipped.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortUnequipped.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortUnequipped, new Rectangle(60,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortUnequipped, "Unequipped"); ButlerQuickSortMelee = new HudImageButton(); ButlerQuickSortMelee.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortMelee.Image_Up = GearGraphics.GB_MELEE_ICON; ButlerQuickSortMelee.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortMelee.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortMelee, new Rectangle(100,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortMelee, "Melee Weapons"); ButlerQuickSortMissile = new HudImageButton(); ButlerQuickSortMissile.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortMissile.Image_Up = GearGraphics.GB_MISSILE_ICON; ButlerQuickSortMissile.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortMissile.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortMissile, new Rectangle(120,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortMissile, "Missile Weapons"); ButlerQuickSortCaster = new HudImageButton(); ButlerQuickSortCaster.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortCaster.Image_Up = GearGraphics.GB_CASTER_ICON; ButlerQuickSortCaster.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortCaster.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortCaster, new Rectangle(140,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortCaster, "Magical Casters"); ButlerQuickSortArmor = new HudImageButton(); ButlerQuickSortArmor.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortArmor.Image_Up = GearGraphics.GB_ARMOR_ICON; ButlerQuickSortArmor.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortArmor.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortArmor, new Rectangle(160,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortArmor, "Armor"); ButlerQuickSortKeys = new HudImageButton(); ButlerQuickSortKeys.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortKeys.Image_Up = GearGraphics.GB_KEY_ICON; ButlerQuickSortKeys.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortKeys.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortKeys, new Rectangle(180,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortKeys, "Keys"); ButlerQuickSortKeyrings = new HudImageButton(); ButlerQuickSortKeyrings.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortKeyrings.Image_Up = GearGraphics.GB_KEYRING_ICON; ButlerQuickSortKeyrings.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortKeyrings.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortKeyrings, new Rectangle(200,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortKeyrings, "Keyrings"); ButlerQuickSortLockpicks = new HudImageButton(); ButlerQuickSortLockpicks.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortLockpicks.Image_Up = GearGraphics.GB_LOCKPICK_ICON; ButlerQuickSortLockpicks.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortLockpicks.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortLockpicks, new Rectangle(220,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortLockpicks, "Lockpicks"); ButlerQuickSortManastones = new HudImageButton(); ButlerQuickSortManastones.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortManastones.Image_Up = GearGraphics.GB_MANASTONE_ICON; ButlerQuickSortManastones.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortManastones.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortManastones, new Rectangle(240,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortManastones, "Mana Stones"); ButlerQuickSortHealKit = new HudImageButton(); ButlerQuickSortHealKit.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortHealKit.Image_Up = GearGraphics.GB_HEALKIT_ICON; ButlerQuickSortHealKit.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortHealKit.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortHealKit, new Rectangle(260,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortHealKit, "Healing Kits"); ButlerQuickSortPotion = new HudImageButton(); ButlerQuickSortPotion.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortPotion.Image_Up = GearGraphics.GB_POTION_ICON; ButlerQuickSortPotion.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortPotion.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortPotion, new Rectangle(280,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortPotion, "Potions"); ButlerHudList = new HudList(); ButlerHudList.ControlHeight = 16; ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudStaticText), 175, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudStaticText), 1, null); ButlerHudTabLayout.AddControl(ButlerHudList, new Rectangle(0, 150, 300, 375)); ButlerHudSelectedLabel = new HudStaticText(); ButlerHudSelectedLabel.FontHeight = nmenuFontHeight; ButlerHudSelectedLabel.Text = "Items Selected: "; ButlerHudSelectedCount = new HudStaticText(); ButlerHudSelectedCount.FontHeight = nmenuFontHeight; ButlerHudTabLayout.AddControl(ButlerHudSelectedLabel, new Rectangle(0,520,100,16)); ButlerHudTabLayout.AddControl(ButlerHudSelectedCount, new Rectangle(110,520,150,16)); ButlerPackSpacesAvailable = new HudStaticText(); ButlerPackSpacesAvailable.FontHeight = nmenuFontHeight; ButlerPackSpaceAvailableLabel = new HudStaticText(); ButlerPackSpaceAvailableLabel.FontHeight = nmenuFontHeight; ButlerPackSpaceAvailableLabel.Text = "Inventory status: "; ButlerHudTabLayout.AddControl(ButlerPackSpaceAvailableLabel, new Rectangle(0,540,100,16)); ButlerHudTabLayout.AddControl(ButlerPackSpacesAvailable, new Rectangle(110,540,150,16)); ButlerBurdenLabel = new HudStaticText(); ButlerBurdenLabel.FontHeight = nmenuFontHeight; ButlerBurdenLabel.Text = "Current Burden: "; ButlerBurden = new HudStaticText(); ButlerBurden.FontHeight = nmenuFontHeight; ButlerHudTabLayout.AddControl(ButlerBurdenLabel, new Rectangle(0, 560, 100, 16)); ButlerHudTabLayout.AddControl(ButlerBurden, new Rectangle(110,560, 150, 16)); if(ButlerHudPickCurrentSelection != null) {ButlerHudPickCurrentSelection.Hit += ButlerHudPickCurrentSelection_Hit;} ButlerHudUseCurrentSelection.Hit += ButlerHudUseCurrentSelection_Hit; ButlerHudDestoryCurrentSelection.Hit += ButlerHudDestoryCurrenSelection_Hit; ButlerHudSalvageCurrentSelection.Hit += ButlerHudSalvageCurrentSelection_Hit; ButlerQuickSortEquipped.StickyDownStateChanged += ButlerQuickSortEquipped_Hit; ButlerQuickSortUnequipped.StickyDownStateChanged += ButlerQuickSortUnequipped_Hit; ButlerQuickSortMelee.StickyDownStateChanged += ButlerQuickSortMelee_Hit; ButlerQuickSortMissile.StickyDownStateChanged += ButlerQuickSortMissile_Hit; ButlerQuickSortCaster.StickyDownStateChanged += ButlerQuickSortCaster_Hit; ButlerQuickSortArmor.StickyDownStateChanged += ButlerQuickSortArmor_Hit; ButlerQuickSortKeys.StickyDownStateChanged += ButlerQuickSortKeys_Hit; ButlerQuickSortKeyrings.StickyDownStateChanged += ButlerQuickSortKeyrings_Hit; ButlerQuickSortLockpicks.StickyDownStateChanged += ButlerQuickSortLockpicks_Hit; ButlerQuickSortManastones.StickyDownStateChanged += ButlerQuickSortManastones_Hit; ButlerQuickSortHealKit.StickyDownStateChanged += ButlerQuickSortHealKit_Hit; ButlerQuickSortPotion.StickyDownStateChanged += ButlerQuickSortPotion_Hit; ButlerHudList.Click += (sender, row, col) => ButlerHudList_Click(sender, row, col); ButlerHudSearchButton.Hit += ButlerHudSearchButton_Click; ButlerHudClearSearchButton.Hit += ButlerHudClearSearchButton_Click; //MaidTab MaidTabLayout = new HudFixedLayout(); ButlerHudTabView.AddTab(MaidTabLayout, "Maid"); MaidStackInventory = new HudButton(); MaidStackInventory.Text = "Stack Inventory"; MaidTabLayout.AddControl(MaidStackInventory, new Rectangle(0,0,150,20)); MaidRingKeys = new HudButton(); MaidRingKeys.Text = "Ring Keys"; MaidTabLayout.AddControl(MaidRingKeys, new Rectangle(0,30,150,20)); MaidTradeAllSalvage = new HudButton(); MaidTradeAllSalvage.Text = "Window All Salvage"; MaidTabLayout.AddControl(MaidTradeAllSalvage, new Rectangle(0,60,150,20)); MaidTradeFilledSalvage = new HudButton(); MaidTradeFilledSalvage.Text = "Window Filled Salvage"; MaidTabLayout.AddControl(MaidTradeFilledSalvage, new Rectangle(0,90,150,20)); MaidTradeParialSalvage = new HudButton(); MaidTradeParialSalvage.Text = "Window Partial Salvage"; MaidTabLayout.AddControl(MaidTradeParialSalvage, new Rectangle(0,120,150,20)); MaidSalvageCombine = new HudButton(); MaidSalvageCombine.Text = "Combine Salvage Bags"; MaidTabLayout.AddControl(MaidSalvageCombine, new Rectangle(0,150,150,20)); MaidTradeAllEightComps = new HudButton(); MaidTradeAllEightComps.Text = "Window L8 Components"; MaidTabLayout.AddControl(MaidTradeAllEightComps, new Rectangle(0, 180, 150,20)); MaidCannibalizeEnable = new HudCheckBox(); MaidCannibalizeEnable.Text = "Enable Cannibalize Button"; MaidTabLayout.AddControl(MaidCannibalizeEnable, new Rectangle(0,210,150,20)); MaidStackInventory.Hit += MaidStackInventory_Hit; MaidRingKeys.Hit += MaidRingKeys_Hit; MaidTradeAllSalvage.Hit += MaidTradeAllSalvage_Hit; MaidTradeFilledSalvage.Hit += MaidTradeFilledSalvage_Hit; MaidTradeParialSalvage.Hit += MaidTradeParialSalvage_Hit; MaidSalvageCombine.Hit += MaidSalvageCombine_Hit; MaidCannibalizeEnable.Hit += MaidCannibalizeEnable_Hit; MaidTradeAllEightComps.Hit += MaidTradeAllEightComps_Hit; //ValetTab ValetTabLayout = new HudFixedLayout(); ButlerHudTabView.AddTab(ValetTabLayout, "Valet"); int split3horizontal = Convert.ToInt32((double)GearButlerSettings.ButlerHudWidth /(double)3); int splithalf = Convert.ToInt32((double)GearButlerSettings.ButlerHudWidth/(double)2); int halfsplit3horizontal = Convert.ToInt32((double)split3horizontal/(double)2); int splitbottomvertical = Convert.ToInt32(((double)100 - GearButlerSettings.ButlerHudHeight) /2); ValetDisrobe = new HudButton(); ValetDisrobe.Text = "Disrobe"; ValetTabLayout.AddControl(ValetDisrobe, new Rectangle(10,5,split3horizontal-20,20)); ValetEquipSuit = new HudButton(); ValetEquipSuit.Text = "Equip"; ValetTabLayout.AddControl(ValetEquipSuit, new Rectangle(splithalf - halfsplit3horizontal ,5,split3horizontal-20,20)); ValetCreateSuit = new HudButton(); ValetCreateSuit.Text = "Create"; ValetTabLayout.AddControl(ValetCreateSuit, new Rectangle(splithalf + halfsplit3horizontal,5,split3horizontal-20,20)); ValetTextBoxLabel = new HudStaticText(); ValetTextBoxLabel.Text = "Suit Label:"; ValetTabLayout.AddControl(ValetTextBoxLabel, new Rectangle(0,30,50,16)); ValetNameBox = new HudTextBox(); ValetNameBox.Text = String.Empty; ValetTabLayout.AddControl(ValetNameBox, new Rectangle(10,55,GearButlerSettings.ButlerHudWidth -20, 20)); ValetSuitListLabel = new HudStaticText(); ValetSuitListLabel.Text = "Suits:"; ValetTabLayout.AddControl(ValetSuitListLabel, new Rectangle(0,80,50,16)); ValetSuitList = new HudList(); ValetSuitList.AddColumn(typeof(HudPictureBox), 16, null); ValetSuitList.AddColumn(typeof(HudStaticText), GearButlerSettings.ButlerHudWidth - 80, null); ValetSuitList.AddColumn(typeof(HudPictureBox), 16, null); ValetSuitList.AddColumn(typeof(HudStaticText), 1, null); ValetTabLayout.AddControl(ValetSuitList, new Rectangle(0,100,GearButlerSettings.ButlerHudWidth - 20,100)); ValetSuitPiecesListLabel = new HudStaticText(); ValetSuitPiecesListLabel.Text = "Pieces:"; ValetTabLayout.AddControl(ValetSuitPiecesListLabel, new Rectangle(0,210,50,16)); ValetSuitPiecesList = new HudList(); ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 16, null); ValetSuitPiecesList.AddColumn(typeof(HudStaticText), GearButlerSettings.ButlerHudWidth - 80, null); ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 16, null); ValetSuitPiecesList.AddColumn(typeof(HudStaticText), 1, null); ValetTabLayout.AddControl(ValetSuitPiecesList, new Rectangle(0, 230 ,GearButlerSettings.ButlerHudWidth - 20,100)); ValetDisrobe.Hit += ValetDisrobe_Hit; ValetEquipSuit.Hit += ValetEquipSuit_Hit; ValetCreateSuit.Hit += ValetCreateSuit_Hit; ValetSuitList.Click += ValetSuitList_Click; ValetSuitPiecesList.Click += ValetSuitPiecesList_Click; ButlerHudView.Resize += ButlerHudView_Resize; ButlerHudView.VisibleChanged += ButlerHudView_VisibleChanged; UpdateButlerHudList(); UpdateValetHud(); }catch(Exception ex) {LogError(ex);} return; }
private void doCreateHud(VirindiViewService.HudView hud, Point p, HudFixedLayout head, HudButton badd, HudButton bremove) { try { hud.ShowInBar = false; hud.SpookyTabs = false; hud.Visible = true; hud.UserGhostable = false; //Do not know what this does; hud.Ghosted = false; hud.UserMinimizable = false; // ??--Don't know what useralphachangeable does hud.UserAlphaChangeable = false; hud.ShowIcon = false; // hud.ClickThrough = true; hud.Theme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent"); hud.Location = p; hud.Controls.HeadControl = head; badd.Text = "+"; badd.Visible = true; Rectangle recAdd = new Rectangle(0, 0, 12, 12); head.AddControl(badd, recAdd); bremove.Text = "-"; bremove.Visible = true; Rectangle recRemove = new Rectangle(15, 0, 12, 12); head.AddControl(bremove, recRemove); } catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); } }
private void RenderLandscapeHud() { try { if(LandscapeHudView != null) { DisposeLandscapeHud(); } LandscapeHudView = new HudView("GearSense", gsSettings.LandscapeHudWidth, gsSettings.LandscapeHudHeight, new ACImage(0x6AA5)); LandscapeHudView.UserAlphaChangeable = false; LandscapeHudView.ShowInBar = false; LandscapeHudView.Visible = true; LandscapeHudView.Ghosted = false; LandscapeHudView.UserMinimizable = true; LandscapeHudView.UserClickThroughable = false; if(gsSettings.bRenderMini) {LandscapeHudView.UserResizeable = false;} else{LandscapeHudView.UserResizeable = true;} LandscapeHudView.LoadUserSettings(); LandscapeHudTabView = new HudTabView(); LandscapeHudView.Controls.HeadControl = LandscapeHudTabView; LandscapeHudTabLayout = new HudFixedLayout(); LandscapeHudTabView.AddTab(LandscapeHudTabLayout, "Sense"); LandscapeHudSettings = new HudFixedLayout(); LandscapeHudTabView.AddTab(LandscapeHudSettings, "Set"); LandscapeHudList = new HudList(); LandscapeHudTabLayout.AddControl(LandscapeHudList, new Rectangle(0,0, gsSettings.LandscapeHudWidth,gsSettings.LandscapeHudHeight)); LandscapeHudList.ControlHeight = 16; LandscapeHudList.AddColumn(typeof(HudPictureBox), 14, null); LandscapeHudList.AddColumn(typeof(HudStaticText), gsSettings.LandscapeHudWidth - 60, null); LandscapeHudList.AddColumn(typeof(HudPictureBox), 14, null); LandscapeHudList.AddColumn(typeof(HudStaticText), 1, null); ShowAllMobs = new HudCheckBox(); ShowAllMobs.Text = "Trk All Mobs"; LandscapeHudSettings.AddControl(ShowAllMobs, new Rectangle(0,0,150,16)); ShowAllMobs.Checked = gsSettings.bShowAllMobs; ShowSelectedMobs = new HudCheckBox(); ShowSelectedMobs.Text = "Trk Mob List"; LandscapeHudSettings.AddControl(ShowSelectedMobs, new Rectangle(0,18,150,16)); ShowSelectedMobs.Checked = gsSettings.bShowSelectedMobs; ShowAllPlayers = new HudCheckBox(); ShowAllPlayers.Text = "Trk All Players"; LandscapeHudSettings.AddControl(ShowAllPlayers, new Rectangle(0,36,150,16)); ShowAllPlayers.Checked = gsSettings.bShowAllPlayers; ShowAllegancePlayers = new HudCheckBox(); ShowAllegancePlayers.Text = "Trk Allegiance"; LandscapeHudSettings.AddControl(ShowAllegancePlayers, new Rectangle(0,54,150,16)); ShowAllegancePlayers.Checked = gsSettings.bShowAllegancePlayers; ShowFellowPlayers = new HudCheckBox(); ShowFellowPlayers.Text = "Trk Fellows"; LandscapeHudSettings.AddControl(ShowFellowPlayers, new Rectangle(0,72,150,16)); ShowFellowPlayers.Checked = gsSettings.bShowFellowPlayers; ShowAllNPCs= new HudCheckBox(); ShowAllNPCs.Text = "Trk All NPCs"; LandscapeHudSettings.AddControl(ShowAllNPCs, new Rectangle(0,90,150,16)); ShowAllNPCs.Checked = gsSettings.bShowAllNPCs; ShowTrophies = new HudCheckBox(); ShowTrophies.Text = "Trk Trophy/NPC"; LandscapeHudSettings.AddControl(ShowTrophies, new Rectangle(0,108,150,16)); ShowTrophies.Checked = gsSettings.bShowTrophies; ShowLifeStones = new HudCheckBox(); ShowLifeStones.Text = "Trk LifeStones"; LandscapeHudSettings.AddControl(ShowLifeStones, new Rectangle(0,126,150,16)); ShowLifeStones.Checked = gsSettings.bShowLifeStones; ShowAllPortals= new HudCheckBox(); ShowAllPortals.Text = "Trk Portals"; LandscapeHudSettings.AddControl(ShowAllPortals, new Rectangle(0,144,150,16)); ShowAllPortals.Checked = gsSettings.bShowAllPortals; LandscapeForgetDistance = new HudTextBox(); ForgetLabel = new HudStaticText(); ForgetLabel.Text = "Forget Dist."; LandscapeForgetDistance.Text = gsSettings.LandscapeForgetDistance.ToString(); LandscapeHudSettings.AddControl(LandscapeForgetDistance, new Rectangle(0,162,45,16)); LandscapeHudSettings.AddControl(ForgetLabel, new Rectangle(50,162,150,16)); LandscapeRenderMini = new HudCheckBox(); LandscapeRenderMini.Text = "R. Mini."; LandscapeHudSettings.AddControl(LandscapeRenderMini, new Rectangle(0,180,150,16)); LandscapeRenderMini.Checked = gsSettings.bRenderMini; ShowAllMobs.Change += ShowAllMobs_Change; ShowSelectedMobs.Change += ShowSelectedMobs_Change; ShowAllPlayers.Change += ShowAllPlayers_Change; ShowFellowPlayers.Change += ShowFellowPlayers_Change; ShowAllegancePlayers.Change += ShowAllegancePlayers_Change; ShowAllNPCs.Change += ShowAllNPCs_Change; ShowTrophies.Change += ShowTrophies_Change; ShowLifeStones.Change += ShowLifeStones_Change; ShowAllPortals.Change += ShowAllPortals_Change; LandscapeForgetDistance.LostFocus += LandscapeForgetDistance_LostFocus; LandscapeRenderMini.Change += LandscapeRenderMini_Change; LandscapeHudList.Click += LandscapeHudList_Click; LandscapeHudView.Resize += LandscapeHudView_Resize; LandscapeHudView.VisibleChanged += LandscapeHudView_VisibleChanged; UpdateLandscapeHud(); }catch(Exception ex) {LogError(ex);} }
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); } }
private void RenderChiefGearHudInspect() { try { if (ChiefGearHudInspect != null) { DisposeChiefGearHudInspect(); } //Set up menu for functions in the Inspect page ChiefGearInspectPageTabView = new HudTabView(); ChiefGearHudInspect.AddControl(ChiefGearInspectPageTabView, new Rectangle(5, 5, 495, 500)); ChiefGearInspectPageSearchRules = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageSearchRules, "Search Rules"); ChiefGearInspectPageTrophies = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageTrophies, "Trophies/NPCs"); ChiefGearInspectPageMobs = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageMobs, "Mobs"); ChiefGearInspectPageSalvage = new HudFixedLayout(); ChiefGearInspectPageTabView.AddTab(ChiefGearInspectPageSalvage, "Salvage"); SubscribeChiefGearInspectEvents(); RenderChiefGearInspectPageSearchRules(); } catch (Exception ex) { LogError(ex); } }
private void RenderDynamicRemoteGear() { try { if(DynamicGearRemoteView != null) { DisposeDynamicRemote(); } AssembleDGRControls(); int DGRViewHeight = 35 + 35 * DGRControlsList.Count; DynamicGearRemoteView = new HudView("", 35, DGRViewHeight, GearGraphics.RemoteGearIcon, false, "RemoteGear"); DynamicGearRemoteView.ShowInBar = false; DynamicGearRemoteView.UserAlphaChangeable = false; DynamicGearRemoteView.Visible = true; DynamicGearRemoteView.UserClickThroughable = false; DynamicGearRemoteView.UserGhostable = true; DynamicGearRemoteView.UserMinimizable = false; DynamicGearRemoteView.UserResizeable = false; DynamicGearRemoteView.LoadUserSettings(); DynamicGearRemoteTabView = new HudTabView(); DynamicGearRemoteView.Controls.HeadControl = DynamicGearRemoteTabView; DynamicGearRemoteLayout = new HudFixedLayout(); DynamicGearRemoteTabView.AddTab(DynamicGearRemoteLayout, ""); DynamicGearRemoteClock = new HudStaticText(); DynamicGearRemoteLayout.AddControl(DynamicGearRemoteClock, new Rectangle(0,4,30,16)); DynamicGearRemoteClock.FontHeight = 8; MasterTimer.Tick += DynamicGearClock; for(int i = 0; i < DGRControlsList.Count; i++) { DynamicGearRemoteLayout.AddControl(DGRControlsList[i].ControlPictureBox, new Rectangle(2, 35 + 35 * i, 25,25)); if(DGRControlsList[i].ControlName == "Butler") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearButler"); if(DGRControlsList[i].ControlName == "Visection") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearVisection"); if(DGRControlsList[i].ControlName == "Inspector") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearInspector"); if(DGRControlsList[i].ControlName == "Sense") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearSense"); if(DGRControlsList[i].ControlName == "Tactician") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearTactician"); if(DGRControlsList[i].ControlName == "Inventory") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Gear"); if(DGRControlsList[i].ControlName == "Armor") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Armor"); if(DGRControlsList[i].ControlName == "VSG") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Vertical SwitchGear"); if(DGRControlsList[i].ControlName == "HSG") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "Horizontal SwitchGear"); if(DGRControlsList[i].ControlName == "Portal") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "PortalGear"); if(DGRControlsList[i].ControlName == "Tasker") VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, "GearTasker"); } }catch(Exception ex){LogError(ex);} }
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); } }
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);} }
void GenerateLayout(string layoutStyle) { string[] layout = Util.LoadLayout(layoutStyle); try { int currentRow = 1; int currentCol = 1; int padding = 0; int width = 0; int height = 0; int cols = 0; int rows = 0; HudFixedLayout tempLayout = new HudFixedLayout(); PopoutWindow tempPopoutwindow = new PopoutWindow(); int buttonWidth = 0; int buttonHeight = 0; string currentTab = ""; int button_count = 1; startingW = 335; startingH = 200; foreach (string line in layout) { string[] words = { "windowsize:", "buttonpadding:", "tab:", "cols:", "rows:", "button_" }; string temp = ""; view.ClientArea = new System.Drawing.Size(startingW, startingH); if (line.Contains("windowposition:")) { temp = line.Remove(0, "windowposition:".Length); string[] split = temp.Split(','); view.Location = new System.Drawing.Point(int.Parse(split[0]), int.Parse(split[1])); } else if (line.Contains("windowsize:")) { temp = line.Remove(0, "windowsize:".Length); string[] split = temp.Split(','); startingW = int.Parse(split[0]); startingH = int.Parse(split[1]); view.ClientArea = new System.Drawing.Size(startingW, startingW); } else if (line.Contains("windowstartopen:")) { temp = line.Remove(0, "windowstartopen:".Length); view.Visible = bool.Parse(temp); } else if (line.Contains("buttonpadding:")) { temp = line.Remove(0, words[1].Length); padding = int.Parse(temp.Trim()); } else if (line.Contains("tab:")) { button_count = 1; currentRow = 1; currentCol = 1; cols = 0; rows = 0; temp = line.Remove(0, words[2].Length).Trim(); tempLayout = new HudFixedLayout(); tempPopoutwindow = new PopoutWindow(); tempLayout.InternalName = temp; currentTab = temp; popoutWindows.Add(temp, tempPopoutwindow); TabView.AddTab(tempLayout, temp); } else if (line.Contains("tabvisible:")) { temp = line.Remove(0, "tabvisible:".Length); if (bool.Parse(temp)) { tempPopoutwindow.toggleVisibility(); } } else if (line.Contains("tabsize:")) { temp = line.Remove(0, "tabsize:".Length); string[] split = temp.Split(','); width = int.Parse(split[0].Trim()); height = int.Parse(split[1].Trim()); sizes.Add(new System.Drawing.Size(width, height)); tempPopoutwindow.SetWindowSize(new System.Drawing.Size(width, height - 25)); } else if (line.Contains("tabposition:")) { temp = line.Remove(0, "tabposition:".Length); string[] split = temp.Split(','); int tabx = int.Parse(split[0].Trim()); int taby = int.Parse(split[1].Trim()); locations.Add(new System.Drawing.Point(tabx, taby)); tempPopoutwindow.SetWindowPos(new System.Drawing.Point(tabx, taby)); } else if (line.Contains("cols:")) { temp = line.Remove(0, words[3].Length); cols = int.Parse(temp.Trim()); buttonWidth = (int)((width - (padding * (1 + cols))) / cols); } else if (line.Contains("rows:")) { temp = line.Remove(0, words[4].Length); rows = int.Parse(temp.Trim()); buttonHeight = (int)((height - (padding * (3 + rows))) / rows); } else if (line.Contains("Button")) { int span = int.Parse(line.Remove(0, words[5].Length + 3).Trim()); //Creates Button HudButton tempBtn = new HudButton(); HudButton tempPopBtn = new HudButton(); tempBtn.Text = currentTab + "_" + button_count.ToString("D2"); tempBtn.InternalName = currentTab + "_Button_" + button_count.ToString("D2"); tempPopBtn.Text = currentTab + "_" + button_count.ToString("D2"); tempPopBtn.InternalName = currentTab + "_Button_" + button_count.ToString("D2"); int x = (padding * (currentCol)) + (buttonWidth * (currentCol - 1)); int y = (padding * (currentRow)) + (buttonHeight * (currentRow - 1)); int btnW = (buttonWidth * span) + (padding * (span - 1)); int btnH = buttonHeight; tempLayout.AddControl(tempBtn, new System.Drawing.Rectangle(x, y, btnW, btnH)); popoutWindows[currentTab].AddButton(tempPopBtn, new System.Drawing.Rectangle(x, y, btnW, btnH)); currentCol += span; if (currentCol > cols) { currentCol = 1; currentRow++; } button_count++; } } CreatePopoutList(); } catch (Exception ex) { Util.WriteToChat("Error Loading Layout: " + ex.Message + "\n" + ex.StackTrace); } }
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);} }
private void RenderChiefGearHud() { try { if (ChiefGearHudView != null) { DisposeChiefGear(); } ChiefGearHudView = new HudView("Gear Foundry", 500, 500, new ACImage(28170)); ChiefGearHudView.UserAlphaChangeable = false; ChiefGearHudView.ShowInBar = true; ChiefGearHudView.UserResizeable = false; ChiefGearHudView.Visible = false; ChiefGearHudView.Ghosted = false; ChiefGearHudView.UserMinimizable = true; ChiefGearHudView.UserClickThroughable = false; ChiefGearHudView.LoadUserSettings(); ChiefGearHudTabView = new HudTabView(); ChiefGearHudView.Controls.HeadControl = ChiefGearHudTabView; ChiefGearHudSettings = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudSettings, "Settings"); RenderChiefGearSettingsTab(); ChiefGearHudInspect = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudInspect, "Inspect"); RenderChiefGearInspectTab(); ChiefGearHudFoundry = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudFoundry, "Foundry"); RenderChiefGearFoundryTab(); ChiefGearHudSounds = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudSounds, "Sounds"); RenderChiefGearSoundsTab(); ChiefGearHudAbout = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudAbout, "About"); lblAboutText1 = new HudStaticText(); lblAboutText1.Text = "GearFoundry is a community development "; ChiefGearHudAbout.AddControl(lblAboutText1, new Rectangle(20, 20, 450, 20)); lblAboutText1a = new HudStaticText(); lblAboutText1a.Text = "platform for multiple plugins."; ChiefGearHudAbout.AddControl(lblAboutText1a, new Rectangle(25, 40, 450, 20)); lblAboutText2 = new HudStaticText(); lblAboutText2.Text = "It consists of notifying, looting, inventorying "; ChiefGearHudAbout.AddControl(lblAboutText2, new Rectangle(20, 70, 450, 20)); lblAboutText2a = new HudStaticText(); lblAboutText2a.Text = "and other options."; ChiefGearHudAbout.AddControl(lblAboutText2a, new Rectangle(25, 90, 450, 20)); lblAboutText3 = new HudStaticText(); lblAboutText3.Text = "The inspiration for GearFoundry was drawn from "; ChiefGearHudAbout.AddControl(lblAboutText3, new Rectangle(20, 120, 450, 20)); lblAboutText3a = new HudStaticText(); lblAboutText3a.Text = "the original Alinco."; ChiefGearHudAbout.AddControl(lblAboutText3a, new Rectangle(25, 140, 450, 20)); lblAboutText4 = new HudStaticText(); lblAboutText4.Text = "Thanks to all who have assisted in development."; ChiefGearHudAbout.AddControl(lblAboutText4, new Rectangle(20, 170, 450, 20)); lblAboutText4a = new HudStaticText(); lblAboutText4a.Text = "SUPPORT EMAIL (bugs, fixes, suggestions):"; ChiefGearHudAbout.AddControl(lblAboutText4a, new Rectangle(25, 190, 450, 20)); lblEditionNumber = new HudStaticText(); lblEditionNumber.Text = "*****@*****.**"; ChiefGearHudAbout.AddControl(lblEditionNumber, new Rectangle(20, 220, 450, 20)); lblOwnRisk = new HudStaticText(); lblOwnRisk.Text = "USE AT YOUR OWN RISK!"; ChiefGearHudAbout.AddControl(lblOwnRisk, new Rectangle(20, 250, 450, 20)); } catch (Exception ex) { LogError(ex); } }
private void RenderItemHud() { try{ if(ItemHudView != null) { DisposeItemHud(); } ItemHudView = new HudView("Inspector", mGeneralSettings.GearWindowSettings.ItemHudWidth, mGeneralSettings.GearWindowSettings.ItemHudHeight, new ACImage(0x6AA8)); ItemHudView.UserAlphaChangeable = false; ItemHudView.UserMinimizable = true; ItemHudView.ShowInBar = false; ItemHudView.Visible = true; ItemHudView.UserAlphaChangeable = false; if(mGeneralSettings.GearInspectorSettings.RenderMini){ItemHudView.UserResizeable = false;} else{ItemHudView.UserResizeable = true;} ItemHudView.LoadUserSettings(); ItemHudTabView = new HudTabView(); ItemHudView.Controls.HeadControl = ItemHudTabView; ItemHudInspectorLayout = new HudFixedLayout(); ItemHudTabView.AddTab(ItemHudInspectorLayout, "Inspect"); ItemHudUstLayout = new HudFixedLayout(); ItemHudTabView.AddTab(ItemHudUstLayout, "Process"); ItemHudSettingsLayout = new HudFixedLayout(); ItemHudTabView.AddTab(ItemHudSettingsLayout, "Set"); ItemHudPendingText = new HudStaticText(); ItemHudPendingText.Text = LOListenHash.Count.ToString() + " IDs pending."; ItemHudInspectorLayout.AddControl(ItemHudPendingText, new Rectangle(0,0,120,16)); ItemHudInspectorList = new HudList(); ItemHudInspectorLayout.AddControl(ItemHudInspectorList, new Rectangle(0,20,mGeneralSettings.GearWindowSettings.ItemHudWidth,mGeneralSettings.GearWindowSettings.ItemHudHeight-20)); ItemHudInspectorList.ControlHeight = 16; ItemHudInspectorList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudInspectorList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ItemHudWidth - 60, null); ItemHudInspectorList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudInspectorList.AddColumn(typeof(HudStaticText), 1, null); ItemHudUstButton = new HudButton(); ItemHudUstButton.Text = "Proc. List"; ItemHudUstLayout.AddControl(ItemHudUstButton, new Rectangle(Convert.ToInt32((mGeneralSettings.GearWindowSettings.ItemHudWidth - 100) /2),0,100,20)); ItemHudUstList = new HudList(); ItemHudUstList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudUstList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ItemHudWidth - 60, null); ItemHudUstList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudUstList.AddColumn(typeof(HudStaticText), 1, null); ItemHudUstLayout.AddControl(ItemHudUstList, new Rectangle(0,30,mGeneralSettings.GearWindowSettings.ItemHudWidth,mGeneralSettings.GearWindowSettings.ItemHudHeight - 30)); InspectorIdentifySalvage = new HudCheckBox(); InspectorIdentifySalvage.Text = "Ident. Salv."; ItemHudSettingsLayout.AddControl(InspectorIdentifySalvage, new Rectangle(0, 17, 100, 16)); InspectorIdentifySalvage.Checked = mGeneralSettings.GearInspectorSettings.IdentifySalvage; InspectorCheckForL7Scrolls = new HudCheckBox(); InspectorCheckForL7Scrolls.Text = "Unk. L7 Spl."; ItemHudSettingsLayout.AddControl(InspectorCheckForL7Scrolls, new Rectangle(0, 85, 100, 16)); InspectorCheckForL7Scrolls.Checked = mGeneralSettings.GearInspectorSettings.CheckForL7Scrolls; InspectorLootByValue = new HudTextBox(); ItemHudSettingsLayout.AddControl(InspectorLootByValue, new Rectangle(0,102,45,16)); InspectorLootByValue.Text = mGeneralSettings.GearInspectorSettings.LootByValue.ToString(); InspectorHudValueLabel = new HudStaticText(); InspectorHudValueLabel.Text = "Value"; ItemHudSettingsLayout.AddControl(InspectorHudValueLabel, new Rectangle(50,102,100,16)); InspectorSalvageHighValue = new HudCheckBox(); InspectorSalvageHighValue.Text = "Salv. Value"; ItemHudSettingsLayout.AddControl(InspectorSalvageHighValue, new Rectangle(0,119,100,16)); InspectorSalvageHighValue.Checked = mGeneralSettings.GearInspectorSettings.SalvageHighValue; InspectorHudManaLabel = new HudStaticText(); InspectorHudManaLabel.Text = "ManaTanks"; ItemHudSettingsLayout.AddControl(InspectorHudManaLabel, new Rectangle(50,136,100,16)); InspectorLootByMana = new HudTextBox(); ItemHudSettingsLayout.AddControl(InspectorLootByMana, new Rectangle(0,136,45,16)); InspectorLootByMana.Text = mGeneralSettings.GearInspectorSettings.LootByMana.ToString(); InspectorRenderMini = new HudCheckBox(); InspectorRenderMini.Text = "R. Mini."; ItemHudSettingsLayout.AddControl(InspectorRenderMini, new Rectangle(0,153,100,16)); InspectorRenderMini.Checked = mGeneralSettings.GearInspectorSettings.RenderMini; InspectorGSStrings = new HudCheckBox(); InspectorGSStrings.Text = "GS Str."; ItemHudSettingsLayout.AddControl(InspectorGSStrings, new Rectangle(0,170,100,16)); InspectorGSStrings.Checked = mGeneralSettings.GearInspectorSettings.GSStrings; InspectorAlincoStrings = new HudCheckBox(); InspectorAlincoStrings.Text = "Alinco Str."; ItemHudSettingsLayout.AddControl(InspectorAlincoStrings, new Rectangle(0,187,100,16)); InspectorAlincoStrings.Checked = mGeneralSettings.GearInspectorSettings.AlincoStrings; ItemHudView.Resize += ItemHudView_Resize; ItemHudView.VisibleChanged += ItemHudView_VisisbleChanged; ItemHudInspectorList.Click += ItemHudInspectorList_Click; ItemHudUstList.Click += ItemHudUstList_Click; ItemHudUstButton.Hit += ItemHudUstButton_Hit; InspectorIdentifySalvage.Change += InspectorIdentifySalvage_Change; InspectorCheckForL7Scrolls.Change += InspectorCheckForL7Scrolls_Change; InspectorLootByValue.LostFocus += InspectorLootByValue_LostFocus; InspectorSalvageHighValue.Change += InspectorSalvageHighValue_Change; InspectorLootByMana.LostFocus += InspectorLootByMana_LostFocus; InspectorRenderMini.Change += InspectorRenderMini_Change; InspectorGSStrings.Change += InspectorGSStrings_Change; InspectorAlincoStrings.Change += InspectorAlincoStrings_Change; UpdateItemHud(); }catch(Exception ex) {LogError(ex);} }
private void RenderCurrentTargetDebuffBar() { try { if(CurrentTargetDebuffView != null) { DisposeCurrentTargetDebuffView(); } CurrentTargetDebuffView = new HudView("Current Target", 120, 40, new ACImage(0x6AA3)); CurrentTargetDebuffView.UserAlphaChangeable = false; CurrentTargetDebuffView.ShowInBar = false; CurrentTargetDebuffView.UserResizeable = false; CurrentTargetDebuffView.Visible = true; CurrentTargetDebuffView.UserClickThroughable = false; CurrentTargetDebuffView.UserMinimizable = true; CurrentTargetDebuffView.UserGhostable = true; CurrentTargetDebuffView.LoadUserSettings(); CurrentTargetDebuffTabView = new HudTabView(); CurrentTargetDebuffView.Controls.HeadControl = CurrentTargetDebuffTabView; CurrentTargetDebuffLayout = new HudFixedLayout(); CurrentTargetDebuffTabView.AddTab(CurrentTargetDebuffLayout, "Debuffs"); CurrentTargetDebuffList = new List<HudImageStack>(); CurrentTargetDebuffView.VisibleChanged += CurrentTargetDebuffView_VisibleChanged; }catch(Exception ex){LogError(ex);} }
private void RenderCorpseHud() { try { if(CorpseHudView != null) { DisposeCorpseHud(); } CorpseHudView = new HudView("GearVisection", mGeneralSettings.GearWindowSettings.CorpseHudWidth, mGeneralSettings.GearWindowSettings.CorpseHudHeight, new ACImage(0x6AA4)); CorpseHudView.UserAlphaChangeable = false; CorpseHudView.ShowInBar = false; if(mGeneralSettings.GearVisectionSettings.RenderMini){CorpseHudView.UserResizeable = false;} else{CorpseHudView.UserResizeable = true;} CorpseHudView.Visible = true; CorpseHudView.Ghosted = false; CorpseHudView.UserClickThroughable = false; CorpseHudView.UserMinimizable = true; CorpseHudView.LoadUserSettings(); CorpseHudTabView = new HudTabView(); CorpseHudView.Controls.HeadControl = CorpseHudTabView; CorpseHudTabLayout = new HudFixedLayout(); CorpseHudTabView.AddTab(CorpseHudTabLayout, "Corpses"); CorpseHudList = new HudList(); CorpseHudTabLayout.AddControl(CorpseHudList, new Rectangle(0,0, mGeneralSettings.GearWindowSettings.CorpseHudWidth,mGeneralSettings.GearWindowSettings.CorpseHudHeight)); CorpseHudList.ControlHeight = 16; CorpseHudList.AddColumn(typeof(HudPictureBox), 16, null); CorpseHudList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.CorpseHudWidth - 60, null); CorpseHudList.AddColumn(typeof(HudPictureBox), 16, null); CorpseHudList.AddColumn(typeof(HudStaticText), 1, null); CorpseHudSettingsTab = new HudFixedLayout(); CorpseHudTabView.AddTab(CorpseHudSettingsTab, "Set"); AllCorpses = new HudCheckBox(); AllCorpses.Text = "Trk All"; CorpseHudSettingsTab.AddControl(AllCorpses, new Rectangle(0,0,150,16)); AllCorpses.Checked = mGeneralSettings.GearVisectionSettings.bAllCorpses; KillsBySelf = new HudCheckBox(); KillsBySelf.Text = "Trk Self"; CorpseHudSettingsTab.AddControl(KillsBySelf, new Rectangle(0,18,150,16)); KillsBySelf.Checked = mGeneralSettings.GearVisectionSettings.bKillsBySelf; KillsByFellows = new HudCheckBox(); KillsByFellows.Text = "Trk Fellows"; CorpseHudSettingsTab.AddControl(KillsByFellows, new Rectangle(0,36,150,16)); KillsByFellows.Checked = mGeneralSettings.GearVisectionSettings.bKillsByFellows; DeadMes = new HudCheckBox(); DeadMes.Text = "Trk DeadMe"; CorpseHudSettingsTab.AddControl(DeadMes, new Rectangle(0,54,150,16)); DeadMes.Checked = mGeneralSettings.GearVisectionSettings.bDeadMes; Permitteds = new HudCheckBox(); Permitteds.Text = "Trk Permit"; CorpseHudSettingsTab.AddControl(Permitteds, new Rectangle(0,72,150,16)); Permitteds.Checked = mGeneralSettings.GearVisectionSettings.Permitteds; GVisRenderMini = new HudCheckBox(); GVisRenderMini.Text = "R. Mini"; CorpseHudSettingsTab.AddControl(GVisRenderMini, new Rectangle(0,90,150,16)); GVisRenderMini.Checked = mGeneralSettings.GearVisectionSettings.RenderMini; CorpseHudList.Click += CorpseHudList_Click; GVisRenderMini.Change += GVisRenderMini_Change; AllCorpses.Change += AllCorpses_Change; KillsBySelf.Change += KillsBySelf_Change; KillsByFellows.Change += KillsByFellows_Change; DeadMes.Change += DeadMes_Change; Permitteds.Change += Permitteds_Change; CorpseHudView.Resize += CorpseHudView_Resize; CorpseHudView.VisibleChanged += CorpseHudView_VisibleChanged; }catch(Exception ex){LogError(ex);} }
private void RenderCurrentTargetDebuffBar() { try { if(CurrentTargetDebuffView != null) { DisposeCurrentTargetDebuffView(); } CurrentTargetDebuffView = new HudView("Current Target", 200, 30, new ACImage(0x6AA3)); CurrentTargetDebuffView.UserAlphaChangeable = false; CurrentTargetDebuffView.ShowInBar = false; CurrentTargetDebuffView.UserResizeable = false; CurrentTargetDebuffView.Visible = true; CurrentTargetDebuffView.UserClickThroughable = false; CurrentTargetDebuffView.UserMinimizable = true; CurrentTargetDebuffView.UserGhostable = true; CurrentTargetDebuffView.LoadUserSettings(); CurrentTargetDebuffTabView = new HudTabView(); CurrentTargetDebuffView.Controls.HeadControl = CurrentTargetDebuffTabView; CurrentTargetDebuffLayout = new HudFixedLayout(); CurrentTargetDebuffTabView.AddTab(CurrentTargetDebuffLayout, "Debuffs"); CurrentTargetImageStackList = new List<HudImageStack>(); for(int i = 0; i < 10; i++) { CurrentTargetImageStackList.Add(new HudImageStack()); CurrentTargetImageStackList[i].Add(DebuffRectangle, new ACImage(Color.Black)); CurrentTargetDebuffLayout.AddControl(CurrentTargetImageStackList[i], new Rectangle(2+i*20,2,16,16)); } }catch(Exception ex){LogError(ex);} }
private void RenderActionBar() { try { if(ActionHudView != null){DisposeActionBar();} AssembleActionControls(); int ActionHudWidth = 35; int ActionHudHeight = 45 + 30 * (ActionIconList.Count - 1); ActionHudView = new HudView("Worm",ActionHudWidth, ActionHudHeight, GearGraphics.GA_Remote_Icon); ActionHudView.UserAlphaChangeable = false; ActionHudView.ShowInBar = false; ActionHudView.Visible = true; ActionHudView.UserClickThroughable = false; ActionHudView.UserMinimizable = false; ActionHudView.UserResizeable = false; ActionHudView.LoadUserSettings(); ActionHudTabView = new HudTabView(); ActionHudView.Controls.HeadControl = ActionHudTabView; ActionHudLayout = new HudFixedLayout(); ActionHudTabView.AddTab(ActionHudLayout, "Worm"); for(int i = 0; i < ActionIconList.Count; i++) { ActionIcons aicon = ActionIconList[i]; ActionHudLayout.AddControl(aicon.ActionIcon, new Rectangle(5, i*30,25,25)); if(aicon.Identifier == "weakenlock") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Weaken Lock"); if(aicon.Identifier == "picklock") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Pick Lock"); if(aicon.Identifier == "openchest") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Unlock Chest"); if(aicon.Identifier == "packinventory") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Pack Inventory"); if(aicon.Identifier == "autocarve") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Auto Carve Inventory Items"); if(aicon.Identifier == "tradecomps") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Trade L8 Comps"); if(aicon.Identifier == "selltradesalv") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Window Salvage"); if(aicon.Identifier == "fillmanas") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Mana Scarabs"); if(aicon.Identifier == "fillplats") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Plat Scarabs"); if(aicon.Identifier == "fillcomps") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Components"); if(aicon.Identifier == "tradenotes") VirindiViewService.TooltipSystem.AssociateTooltip(aicon.ActionIcon, "Buy Trade Notes"); } }catch(Exception ex){LogError(ex);} }
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);} }
private void RenderWorkersHud() { try { if (WorkersHudView != null) { DisposeWorkersHud(); } WorkersHudView = new HudView("GearWorkers", 400, 400, new ACImage(0x6AA5)); WorkersHudView.UserAlphaChangeable = false; WorkersHudView.ShowInBar = false; WorkersHudView.Visible = true; WorkersHudView.Ghosted = false; WorkersHudView.UserMinimizable = true; WorkersHudView.UserClickThroughable = false; WorkersHudTabView = new HudTabView(); WorkersHudView.Controls.HeadControl = WorkersHudTabView; WorkersHudTabLayout = new HudFixedLayout(); WorkersHudTabView.AddTab(WorkersHudTabLayout, "Gear Workers"); WorkersHudView.LoadUserSettings(); lblWorkers = new HudStaticText(); lblWorkers.Text = "Workers"; ControlGroup Workers = new ControlGroup(); cboWorkers = new HudCombo(Workers); cboWorkers.Change += (sender, index) => cboWorkers_Change(sender, index); var snames = cHarActors.GetCharacterNames().ToList().OrderBy(x => x); MyWorkers.AddRange(snames); for (int i = 0; i < MyWorkers.Count; i++) { cboWorkers.AddItem(MyWorkers[i], i); } lblWorkingNow = new HudStaticText(); lblWorkingNow.Text = "Current Gear Worker: "; WorkersHudTabLayout.AddControl(lblWorkers, new Rectangle(10, 15, 45, 16)); WorkersHudTabLayout.AddControl(cboWorkers, new Rectangle(60, 15, 100, 16)); WorkersHudTabLayout.AddControl(lblWorkingNow, new Rectangle(200, 0, 200, 16)); } catch (Exception ex) { LogError(ex); } }
private void RenderFocusHud() { try { if(FocusHudView != null) { DisposeFocusHud(); } FocusHudView = new HudView(String.Empty, 110, 130, new ACImage(0x6AA3)); FocusHudView.UserAlphaChangeable = false; FocusHudView.ShowInBar = false; FocusHudView.UserResizeable = false; FocusHudView.Visible = true; FocusHudView.UserClickThroughable = false; FocusHudView.UserMinimizable = true; FocusHudView.UserGhostable = true; FocusHudView.LoadUserSettings(); FocusHudTabView = new HudTabView(); FocusHudView.Controls.HeadControl = FocusHudTabView; FocusHudLayout = new HudFixedLayout(); FocusHudTabView.AddTab(FocusHudLayout, "Focus"); FocusTargetName = new HudStaticText(); FocusHudLayout.AddControl(FocusTargetName, new Rectangle(0,0,100,16)); FocusTargetName.Text = String.Empty; FocusTargetPicture = new HudPictureBox(); FocusHudLayout.AddControl(FocusTargetPicture, new Rectangle(20,20,60,60)); FocusTargetPicture.Image = new ACImage(Color.Black); FocusTargetHealth = new HudProgressBar(); FocusHudLayout.AddControl(FocusTargetHealth, new Rectangle(5,90,100,20)); FocusTargetHealth.ProgressEmpty = EmptyBar; FocusTargetHealth.ProgressFilled = RedBar; FocusTargetHealth.Position = 0; FocusTargetHealth.Max = 100; FocusTargetHealth.Min = 0; FocusHudView.VisibleChanged += FocusHudView_VisibleChanged; FocusTargetPicture.Hit += FocusTargetPicture_Hit; FiveSecondTimer.Tick += Focus_OnTimerDo; UpdateFocusHud(); }catch(Exception ex){LogError(ex);} }
//private void mQuickStackv0_Hit(object sender, System.EventArgs e) //{ // doQuickieChkWork(nQuickieIDv0, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); //} //private void chkQuickiev1_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev1.Checked && nQuickieIDv1 != 0) // { // doQuickieChkWork(nQuickieIDv1, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev1.Checked = false; // } //} //private void chkQuickiev2_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev2.Checked && nQuickieIDv2 != 0) // { // doQuickieChkWork(nQuickieIDv2, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev2.Checked = false; // } //} //private void chkQuickiev3_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev3.Checked && nQuickieIDv3 != 0) // { // doQuickieChkWork(nQuickieIDv3, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev3.Checked = false; // } //} //private void chkQuickiev4_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev4.Checked && nQuickieIDv4 != 0) // { // doQuickieChkWork(nQuickieIDv4, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev4.Checked = false; // } //} //private void chkQuickiev5_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev5.Checked && nQuickieIDv5 != 0) // { // doQuickieChkWork(nQuickieIDv5, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev5.Checked = false; // } //} //private void chkQuickiev6_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev6.Checked && nQuickieIDv6 != 0) // { // doQuickieChkWork(nQuickieIDv6, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev6.Checked = false; // } //} //private void chkQuickiev7_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev7.Checked && nQuickieIDv7 != 0) // { // doQuickieChkWork(nQuickieIDv7, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev7.Checked = false; // } //} //private void chkQuickiev8_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev8.Checked && nQuickieIDv8 != 0) // { // doQuickieChkWork(nQuickieIDv8, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev8.Checked = false; // } //} //private void chkQuickiev9_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev9.Checked && nQuickieIDv9 != 0) // { // doQuickieChkWork(nQuickieIDv9, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev9.Checked = false; // } //} //private void chkQuickiev10_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev10.Checked && nQuickieIDv10 != 0) // { // doQuickieChkWork(nQuickieIDv10, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev10.Checked = false; // } //} //private void chkQuickiev11_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev11.Checked && nQuickieIDv11 != 0) // { // doQuickieChkWork(nQuickieIDv11, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev11.Checked = false; // } //} //private void chkQuickiev12_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev12.Checked && nQuickieIDv12 != 0) // { // doQuickieChkWork(nQuickieIDv12, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev12.Checked = false; // } //} //private void chkQuickiev13_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev13.Checked && nQuickieIDv13 != 0) // { // doQuickieChkWork(nQuickieIDv13, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev13.Checked = false; // } //} //private void chkQuickiev14_Change(object sender, System.EventArgs e) //{ // if (chkQuickiev14.Checked && nQuickieIDv14 != 0) // { // doQuickieChkWork(nQuickieIDv14, xdocQuickSlotsv, quickSlotsvFilename, nquickiev, quickiesvHud); // chkQuickiev14.Checked = false; // } //} //private void chkQuickieh0_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh0.Checked && nQuickieIDh0 != 0) // { // doQuickieChkWork(nQuickieIDh0, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh0.Checked = false; // } //} //private void chkQuickieh1_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh1.Checked && nQuickieIDh1 != 0) // { // doQuickieChkWork(nQuickieIDh1, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh1.Checked = false; // } //} //private void chkQuickieh2_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh2.Checked && nQuickieIDh2 != 0) // { // doQuickieChkWork(nQuickieIDh2, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh2.Checked = false; // } //} //private void chkQuickieh3_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh3.Checked && nQuickieIDh3 != 0) // { // doQuickieChkWork(nQuickieIDh3, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh3.Checked = false; // } //} //private void chkQuickieh4_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh4.Checked && nQuickieIDh4 != 0) // { // doQuickieChkWork(nQuickieIDh4, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh4.Checked = false; // } //} //private void chkQuickieh5_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh5.Checked && nQuickieIDh5 != 0) // { // doQuickieChkWork(nQuickieIDh5, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh5.Checked = false; // } //} //private void chkQuickieh6_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh6.Checked && nQuickieIDh6 != 0) // { // doQuickieChkWork(nQuickieIDh6, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh6.Checked = false; // } //} //private void chkQuickieh7_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh7.Checked && nQuickieIDh7 != 0) // { // doQuickieChkWork(nQuickieIDh7, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickiev7.Checked = false; // } //} //private void chkQuickieh8_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh8.Checked && nQuickieIDh8 != 0) // { // doQuickieChkWork(nQuickieIDh8, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh8.Checked = false; // } //} //private void chkQuickieh9_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh9.Checked && nQuickieIDh9 != 0) // { // doQuickieChkWork(nQuickieIDh9, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh9.Checked = false; // } //} //private void chkQuickieh10_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh10.Checked && nQuickieIDh10 != 0) // { // doQuickieChkWork(nQuickieIDh10, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh10.Checked = false; // } //} //private void chkQuickieh11_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh11.Checked && nQuickieIDh11 != 0) // { // doQuickieChkWork(nQuickieIDh11, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh11.Checked = false; // } //} //private void chkQuickieh12_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh12.Checked && nQuickieIDh12 != 0) // { // doQuickieChkWork(nQuickieIDh12, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh12.Checked = false; // } //} //private void chkQuickieh13_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh13.Checked && nQuickieIDh13 != 0) // { // doQuickieChkWork(nQuickieIDh13, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh13.Checked = false; // } //} //private void chkQuickieh14_Change(object sender, System.EventArgs e) //{ // if (chkQuickieh14.Checked && nQuickieIDh14 != 0) // { // doQuickieChkWork(nQuickieIDh14, xdocQuickSlotsh, quickSlotshFilename, nquickieh, quickieshHud); // chkQuickieh14.Checked = false; // } //} private void fillHud(XDocument xdoc, string filename, QuickSlotData thisQuickie) { ACImage mQuickSlots; Rectangle rec = new Rectangle(0, 0, 19, 19); HudImageStack mQuickStacks = new HudImageStack(); try { if (thisQuickie.IconUnderlay != 0) { mQuickSlots = new ACImage(thisQuickie.IconUnderlay); mQuickStacks.Add(rec, mQuickSlots); } mQuickSlots = new ACImage(thisQuickie.Icon); mQuickStacks.Add(rec, mQuickSlots); if (thisQuickie.IconOverlay != 0) { mQuickSlots = new ACImage(0x6000000 + thisQuickie.IconOverlay); mQuickStacks.Add(rec, mQuickSlots); } } catch (Exception ex) { LogError(ex); } if (xdoc == xdocQuickSlotsv) { WriteToChat("I am ready to add new item to first box"); nquickiev = 0; switch (nquickiev) { case 0: try { WriteToChat("I have entered box 0"); mQuickStackv0 = mQuickStacks; mQuickTabViewv0 = new HudTabView(); quickiesv0TabLayout = new HudFixedLayout(); quickiesvHud_Head.AddControl(mQuickTabViewv0, new Rectangle(0, 50, 32, 32)); mQuickTabViewv0.AddTab(quickiesv0TabLayout, null); //TestTabLayout.CanScrollV = false; quickiesv0TabLayout.AddControl(mQuickStackv0, new Rectangle(0, 50, 30, 30)); nQuickieIDv0 = thisQuickie.Guid; nquickiev++; } catch (Exception ex) { LogError(ex); } break; // case 1: // mQuickStackv1 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv1, new Rectangle(10, 35, 20, 20)); // nQuickieIDv1 = thisQuickie.Guid; // nquickiev++; // break; // case 2: // mQuickStackv2 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv2, new Rectangle(10, 55, 20, 20)); // nQuickieIDv2 = thisQuickie.Guid; // nquickiev++; // break; // case 3: // mQuickStackv3 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv3, new Rectangle(10, 75, 20, 20)); // nQuickieIDv3 = thisQuickie.Guid; // nquickiev++; // break; // case 4: // mQuickStackv4 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv4, new Rectangle(10, 95, 20, 20)); // nQuickieIDv4 = thisQuickie.Guid; // nquickiev++; // break; // case 5: // mQuickStackv5 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv5, new Rectangle(10, 115, 20, 20)); // nQuickieIDv5 = thisQuickie.Guid; // nquickiev++; // break; // case 6: // mQuickStackv6 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv6, new Rectangle(10, 135, 20, 20)); // nQuickieIDv6 = thisQuickie.Guid; // nquickiev++; // break; // case 7: // mQuickStackv7 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv7, new Rectangle(10, 155, 20, 20)); // nQuickieIDv7 = thisQuickie.Guid; // nquickiev++; // break; // case 8: // mQuickStackv8 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv8, new Rectangle(10, 175, 20, 20)); // nQuickieIDv8 = thisQuickie.Guid; // nquickiev++; // break; // case 9: // mQuickStackv9 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv9, new Rectangle(10, 195, 20, 20)); // nQuickieIDv9 = thisQuickie.Guid; // nquickiev++; // break; // case 10: // mQuickStackv10 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv10, new Rectangle(10, 215, 20, 20)); // nQuickieIDv10 = thisQuickie.Guid; // nquickiev++; // break; // case 11: // mQuickStackv11 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv11, new Rectangle(10, 235, 20, 20)); // nQuickieIDv11 = thisQuickie.Guid; // nquickiev++; // break; // case 12: // mQuickStackv12 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv12, new Rectangle(10, 255, 20, 20)); // nQuickieIDv12 = thisQuickie.Guid; // nquickiev++; // break; // case 13: // mQuickStackv13 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv13, new Rectangle(10, 275, 20, 20)); // nQuickieIDv13 = thisQuickie.Guid; // nquickiev++; // break; // case 14: // mQuickStackv14 = mQuickStacks; // quickiesvHud_Head.AddControl(mQuickStackv14, new Rectangle(10, 295, 20, 20)); // nQuickieIDv14 = thisQuickie.Guid; // nquickiev++; // break; // default: // GearFoundry.PluginCore.WriteToChat("There are no more slots available."); // break; // } // } // else if (xdoc == xdocQuickSlotsh) // { // try // { // switch (nquickieh) // { // case 0: // mQuickStackh0 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh0, new Rectangle(30, 0, 20, 20)); // nQuickieIDh0 = thisQuickie.Guid; // nquickieh++; // break; // case 1: // mQuickStackh1 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh1, new Rectangle(50, 0, 20, 20)); // nQuickieIDh1 = thisQuickie.Guid; // nquickieh++; // break; // case 2: // mQuickStackh2 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh2, new Rectangle(70, 0, 20, 20)); // nQuickieIDh2 = thisQuickie.Guid; // nquickieh++; // break; // case 3: // mQuickStackh3 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh3, new Rectangle(90, 0, 20, 20)); // nQuickieIDh3 = thisQuickie.Guid; // nquickieh++; // break; // case 4: // mQuickStackh4 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh4, new Rectangle(110, 0, 20, 20)); // nQuickieIDh4 = thisQuickie.Guid; // nquickieh++; // break; // case 5: // mQuickStackh5 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh5, new Rectangle(130, 0, 20, 20)); // nQuickieIDh5 = thisQuickie.Guid; // nquickieh++; // break; // case 6: // mQuickStackh6 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh6, new Rectangle(150, 0, 20, 20)); // nQuickieIDh6 = thisQuickie.Guid; // nquickieh++; // break; // case 7: // mQuickStackh7 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh7, new Rectangle(170, 0, 20, 20)); // nQuickieIDh7 = thisQuickie.Guid; // nquickieh++; // break; // case 8: // mQuickStackh8 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh8, new Rectangle(190, 0, 20, 20)); // nQuickieIDh8 = thisQuickie.Guid; // nquickieh++; // break; // case 9: // mQuickStackh9 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh9, new Rectangle(210, 0, 20, 20)); // nQuickieIDh9 = thisQuickie.Guid; // nquickieh++; // break; // case 10: // mQuickStackv10 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh10, new Rectangle(230, 0, 20, 20)); // nQuickieIDv10 = thisQuickie.Guid; // nquickieh++; // break; // case 11: // mQuickStackv11 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh11, new Rectangle(250, 0, 20, 20)); // nQuickieIDh11 = thisQuickie.Guid; // nquickieh++; // break; // case 12: // mQuickStackh9 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh12, new Rectangle(270, 0, 20, 20)); // nQuickieIDh12 = thisQuickie.Guid; // nquickieh++; // break; // case 13: // mQuickStackv13 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh13, new Rectangle(290, 0, 20, 20)); // nQuickieIDv13 = thisQuickie.Guid; // nquickieh++; // break; // case 14: // mQuickStackv14 = mQuickStacks; // quickieshHud_Head.AddControl(mQuickStackh14, new Rectangle(310, 0, 20, 20)); // nQuickieIDh14 = thisQuickie.Guid; // nquickieh++; // break; default: GearFoundry.PluginCore.WriteToChat("There are no more slots available."); break; } //} //catch (Exception ex) { LogError(ex); } } }
private void RenderArmorHud() { try { if (ArmorHudView != null) { DisposeArmorHud(); } if (armorSettingsFilename == "" || armorSettingsFilename == null) { armorSettingsFilename = GearDir + @"\ArmorSettings.xml"; } if (genArmorFilename == "" || genArmorFilename == null) { genArmorFilename = currDir + @"\allToonsArmor.xml"; } if (!File.Exists(genArmorFilename)) { XDocument tempgenArmorDoc = new XDocument(new XElement("Objs")); tempgenArmorDoc.Save(genArmorFilename); tempgenArmorDoc = null; } if (ArmorHudWidth == 0) { getArmorHudSettings(); } if (ArmorHudWidth == 0 || ArmorHudWidth<988) { ArmorHudWidth = ArmorHudFirstWidth; } if (ArmorHudHeight == 0 || ArmorHudHeight<575) { ArmorHudHeight = ArmorHudFirstHeight; } ArmorHudView = new HudView("Armor", ArmorHudWidth, ArmorHudHeight, new ACImage(0x6AA5)); ArmorHudView.UserAlphaChangeable = false; ArmorHudView.ShowInBar = false; ArmorHudView.UserResizeable = false; ArmorHudView.Visible = true; ArmorHudView.Ghosted = false; ArmorHudView.UserMinimizable = true; ArmorHudView.UserClickThroughable = false; ArmorHudView.LoadUserSettings(); ArmorHudTabView = new HudTabView(); ArmorHudView.Controls.HeadControl = ArmorHudTabView; ArmorHudTabLayout = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorHudTabLayout, "Armor"); ArmorUpdateHudTabLayout = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorUpdateHudTabLayout, "Update Armor"); ArmorHudSettings = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorHudSettings, "Settings"); ArmorHudTabView.OpenTabChange += ArmorHudTabView_OpenTabChange; ArmorHudView.VisibleChanged += ArmorHudView_VisibleChanged; ArmorHudView.Resize += ArmorHudView_Resize; RenderArmorTabLayout(); } catch (Exception ex) { LogError(ex); } return; }
private void RenderArmorHud() { try { if (ArmorHudView != null) { DisposeArmorHud(); } ArmorHudView = new HudView("Armor", 988, 575, new ACImage(0x6AA5)); ArmorHudView.UserAlphaChangeable = false; ArmorHudView.ShowInBar = false; ArmorHudView.UserResizeable = false; ArmorHudView.Visible = true; ArmorHudView.Ghosted = false; ArmorHudView.UserMinimizable = true; ArmorHudView.UserClickThroughable = false; ArmorHudView.LoadUserSettings(); ArmorHudTabView = new HudTabView(); ArmorHudView.Controls.HeadControl = ArmorHudTabView; ArmorHudTabLayout = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorHudTabLayout, "Armor"); RenderArmorHudArmorTab(); ArmorUpdateHudTabLayout = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorUpdateHudTabLayout, "Update Armor"); RenderArmorHudUpdateArmorTab(); //ArmorHudSettings = new HudFixedLayout(); //ArmorHudTabView.AddTab(ArmorHudSettings, "Settings"); //RenderArmorHudSettingsTab(); } catch (Exception ex) { LogError(ex); } }