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 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 void ChangeBtnInfo(string name, bool visibility, string btnText) { HudButton temp = (HudButton)popoutview[name]; temp.Visible = visibility; temp.Text = btnText; }
public QuestFlagRepository(CoreManager core, HudView view) { Core = core; View = view; UIQuestListRefresh = (HudButton)View["QuestListRefresh"]; Core.ChatBoxMessage += Current_ChatBoxMessage; }
private void CreateView() { // new Decal3XMLParser().ParseFromResource("AceAdminLoaderTemplate.Views.MainView.xml", out properties, out controls); // new Decal3XMLParser().ParseFromResource("AceAdminTemplate.Views.MainView.xml", out properties, out controls); new Decal3XMLParser().ParseFromResource("AceAdminPluginTemplate.Views.MainView.xml", out properties, out controls); view = new VirindiViewService.HudView(properties, controls); EchoButton = (HudButton)view["EchoButton"]; EchoText = (HudTextBox)view["EchoText"]; EchoButton.Hit += EchoButton_Hit; }
public void showQuickPotions() { if (quickPotionButton == null || quickPotionButton.Length <= 0 || Game.game.currentDialog != null || inventoryVisible) { return; } GuiUtils.aspectRatio = GuiUtils.AspectRatio.AspectRatioFree; for (int i = 0; i < quickPotionButton.Length; i++) { HudButton btn = quickPotionButton[i]; if (Inventory.inventory.getItemAmmount(quickInventoryItems[i]) > 0) { btn.rect = interpolateRect(initPositionButtons, getFinalQuickPotionRect(nItems), quickPotionInterpolator); showHudButton(btn, true, delegate(Object o) { if (quickPotionState == QUICKPOTION_STATE.INPLACE) { selectedItem = quickInventoryItems[i]; Inventory.inventory.consume(selectedItem, 1); if (quickInventoryTotalPotions() == 0) { quickPotionState = QUICKPOTION_STATE.CLOSING; } } }); if (quickPotionState == QUICKPOTION_STATE.INPLACE) { Rect ammountRect = new Rect(btn.rect); ammountRect.x += quickPotionOffsets.x; ammountRect.y += quickPotionOffsets.y; ammountRect.width += quickPotionOffsets.width; ammountRect.height += quickPotionOffsets.height; GuiUtils.showImage(potionFontStyle.normal.background, ammountRect); GUIStyle style = new GUIStyle(); style.normal.textColor = Color.white; style.font = GuiUtils.styleInResolution(style, buttonSmall, buttonMidle, buttonBig, buttonBigXXL); style.alignment = TextAnchor.MiddleCenter; GuiUtils.showLabel(ammountRect, Inventory.inventory.getItemAmmount(quickInventoryItems[i]).ToString(), style); } nItems++; } } nItems = 0; }
public AdvertisementsTab(BotManagerView parent) { Parent = parent; NewAdvertisement = Parent.View != null ? (HudTextBox)Parent.View["NewAdvertisementText"] : new HudTextBox(); AddAdvertisement = Parent.View != null ? (HudButton)Parent.View["AddAdvertisement"] : new HudButton(); AddAdvertisement.Hit += AddAdvertisement_Hit; Advertisements = Parent.View != null ? (HudList)Parent.View["AdvertisementList"] : new HudList(); Advertisements.Click += Advertisements_Click; GetAdvertisements(); }
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); }
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)); } }
public GemsTab(BotManagerView parent) { Parent = parent; Gems = Parent.View != null ? (HudList)Parent.View["GemList"] : new HudList(); Gems.Click += Gems_Click; GemKeyword = Parent.View != null ? (HudTextBox)Parent.View["GemKeyword"] : new HudTextBox(); GemHeading = Parent.View != null ? (HudTextBox)Parent.View["GemHeading"] : new HudTextBox(); GemHeading.Change += GemHeading_Change; AddGem = Parent.View != null ? (HudButton)Parent.View["AddGem"] : new HudButton(); AddGem.Hit += AddGem_Hit; GetGems(); }
public EquipmentTab(BotManagerView parent) { Parent = parent; IdleEquipmentList = Parent.View != null ? (HudList)Parent.View["IdleEquipmentList"] : new HudList(); IdleEquipmentList.Click += IdleEquipmentList_Click; IdleAddEquipment = Parent.View != null ? (HudButton)Parent.View["IdleAddEquipment"] : new HudButton(); IdleAddEquipment.Hit += IdleAddEquipment_Hit; BuffEquipmentList = Parent.View != null ? (HudList)Parent.View["BuffEquipmentList"] : new HudList(); BuffEquipmentList.Click += BuffEquipmentList_Click; BuffAddEquipment = Parent.View != null ? (HudButton)Parent.View["BuffAddEquipment"] : new HudButton(); BuffAddEquipment.Hit += BuffAddEquipment_Hit; LoadSuits(); }
public void SetEvent(string name, EventHandler e) { HudButton temp = (HudButton)popoutview[name]; if (regEvents.ContainsKey(name)) { //Unregister the event handler temp.Hit -= regEvents[name]; //Store the event inside the dictionary so we can unregister it later regEvents[name] = e; } else { //Replace the event regEvents[name] = e; } temp.Hit += e; }
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; } } } }
void showHudButton(HudButton hb, bool enabled, ButtonDelegate cb) { GUIStyle style = new GUIStyle(); if (enabled) { style.normal.background = hb.enabled; if (hb.enabled != null) { showButton(hb.rect, "", style, true, cb); } } else { style.normal.background = hb.disabled; if (hb.disabled != null) { showButton(hb.rect, "", style, true, delegate(Object o){}); } } }
private void AlterItemHud() { try { ItemHudInspectorList.Click -= ItemHudInspectorList_Click; ItemHudUstList.Click -= ItemHudUstList_Click; ItemHudUstButton.Hit -= ItemHudUstButton_Hit; ItemHudInspectorList.Dispose(); ItemHudUstButton.Dispose(); ItemHudUstList.Dispose(); ItemHudInspectorList = new HudList(); ItemHudInspectorLayout.AddControl(ItemHudInspectorList, new Rectangle(0,0,mGeneralSettings.GearWindowSettings.ItemHudWidth,mGeneralSettings.GearWindowSettings.ItemHudHeight)); ItemHudInspectorList.ControlHeight = 16; ItemHudInspectorList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudInspectorList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ItemHudWidth - 60, null); ItemHudInspectorList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudInspectorList.AddColumn(typeof(HudStaticText), 1, null); ItemHudUstButton = new HudButton(); ItemHudUstButton.Text = "Proc. List"; ItemHudUstLayout.AddControl(ItemHudUstButton, new Rectangle(Convert.ToInt32((mGeneralSettings.GearWindowSettings.ItemHudWidth - 100) /2),0,100,20)); ItemHudUstList = new HudList(); ItemHudUstList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudUstList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ItemHudWidth - 60, null); ItemHudUstList.AddColumn(typeof(HudPictureBox), 16, null); ItemHudUstList.AddColumn(typeof(HudStaticText), 1, null); ItemHudUstLayout.AddControl(ItemHudUstList, new Rectangle(0,30,mGeneralSettings.GearWindowSettings.ItemHudWidth,mGeneralSettings.GearWindowSettings.ItemHudHeight - 30)); ItemHudInspectorList.Click += ItemHudInspectorList_Click; ItemHudUstList.Click += ItemHudUstList_Click; ItemHudUstButton.Hit += ItemHudUstButton_Hit; UpdateItemHud(); }catch(Exception ex){LogError(ex);} }
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 AlterTaskHud() { try { IncTaskLabel2.Dispose(); IncTaskLabel2 = new HudStaticText(); TaskIncompleteLayout.AddControl(IncTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth - mKTSet.HudWidth/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16)); IncTaskLabel2.Text = "Status"; TaskIncompleteList.Click -= TaskIncompleteList_Click; TaskIncompleteList.Dispose(); TaskIncompleteList = new HudList(); TaskIncompleteLayout.AddControl(TaskIncompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20)); TaskIncompleteList.ControlHeight = 16; TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null); //Mob/Item Name TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null); //Completion VirindiViewService.TooltipSystem.AssociateTooltip(TaskIncompleteList, "Click for task completion info."); TaskIncompleteList.Click += TaskIncompleteList_Click; CompTaskLabel2.Dispose(); CompTaskLabel2 = new HudStaticText(); TaskCompleteLayout.AddControl(CompTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth*2/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16)); CompTaskLabel2.Text = "Return"; TaskCompleteList.Click -= TaskCompleteList_Click; TaskCompleteList.Dispose(); TaskCompleteList = new HudList(); TaskCompleteLayout.AddControl(TaskCompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20)); TaskCompleteList.ControlHeight = 16; TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null); //Mob/Item Name TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null); //Completion VirindiViewService.TooltipSystem.AssociateTooltip(TaskCompleteList, "Click for turn in info."); TaskCompleteList.Click += TaskCompleteList_Click; KillTaskSelected.Dispose(); KillTaskSelected = new HudStaticText(); KillTaskLayout.AddControl(KillTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16)); KillTaskSelected.Text = String.Empty; KillTaskNew.Hit -= KillTaskNew_Hit; KillTaskNew.Dispose(); KillTaskNew = new HudButton(); KillTaskLayout.AddControl(KillTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16)); KillTaskNew.Text = "New"; KillTaskNew.Hit += KillTaskNew_Hit; KillTaskDelete.Hit -= KillTaskDelete_Hit; KillTaskDelete.Dispose(); KillTaskDelete = new HudButton(); KillTaskLayout.AddControl(KillTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16)); KillTaskDelete.Text = "Del"; KillTaskDelete.Hit += KillTaskDelete_Hit; KillTaskEdit.Hit -= KillTaskEdit_Hit; KillTaskEdit.Dispose(); KillTaskEdit = new HudButton(); KillTaskLayout.AddControl(KillTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16)); KillTaskEdit.Text = "Edit"; KillTaskEdit.Hit += KillTaskEdit_Hit; KillTaskList.Click -= KillTaskList_Click; KillTaskList.Dispose(); KillTaskList = new HudList(); KillTaskLayout.AddControl(KillTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight-20)); KillTaskList.ControlHeight = 16; KillTaskList.AddColumn(typeof(HudCheckBox), 16, null); //Track KillTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null); //TaskName VirindiViewService.TooltipSystem.AssociateTooltip(KillTaskList, "Enable Tracking or Click for info."); KillTaskList.Click += KillTaskList_Click; CollectTaskSelected.Dispose(); CollectTaskSelected = new HudStaticText(); CollectTaskLayout.AddControl(CollectTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16)); CollectTaskSelected.Text = String.Empty; CollectTaskNew.Hit -= CollectTaskNew_Hit; CollectTaskNew.Dispose(); CollectTaskNew = new HudButton(); CollectTaskLayout.AddControl(CollectTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16)); CollectTaskNew.Text = "New"; CollectTaskNew.Hit += CollectTaskNew_Hit; CollectTaskDelete.Hit -= CollectTaskDelete_Hit; CollectTaskDelete.Dispose(); CollectTaskDelete = new HudButton(); CollectTaskLayout.AddControl(CollectTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16)); CollectTaskDelete.Text = "Del"; CollectTaskDelete.Hit += CollectTaskDelete_Hit; CollectTaskEdit.Hit -= CollectTaskEdit_Hit; CollectTaskEdit.Dispose(); CollectTaskEdit = new HudButton(); CollectTaskLayout.AddControl(CollectTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16)); CollectTaskEdit.Text = "Edit"; CollectTaskEdit.Hit += CollectTaskEdit_Hit; CollectTaskList.Click -= CollectTaskList_Click; CollectTaskList.Dispose(); CollectTaskList = new HudList(); CollectTaskLayout.AddControl(CollectTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight)); CollectTaskList.ControlHeight = 16; CollectTaskList.AddColumn(typeof(HudCheckBox), 16, null); //Track CollectTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null); //TaskName VirindiViewService.TooltipSystem.AssociateTooltip(CollectTaskList, "Enable Tracking or Click for info."); CollectTaskList.Click += CollectTaskList_Click; UpdateTaskPanel(); }catch(Exception ex){LogError(ex);} }
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 RenderChiefGearFoundryTab() { try { //Left Column FoundryControltxt1 = new HudStaticText(); FoundryControltxt1.Text = "Foundry Actions List:"; ChiefGearHudFoundry.AddControl(FoundryControltxt1, new Rectangle(5,5,230,16)); FoundryControlsList = new HudList(); FoundryControlsList.AddColumn(typeof(HudCheckBox), 16, null); FoundryControlsList.AddColumn(typeof(HudStaticText), 190,null); ChiefGearHudFoundry.AddControl(FoundryControlsList, new Rectangle(5,25,230,125)); FoundryControltxt4 = new HudStaticText(); FoundryControltxt4.Text = "Ringable Keys List:"; ChiefGearHudFoundry.AddControl(FoundryControltxt4, new Rectangle(5,160,160,16)); FoundryKeyRingMatchList = new HudList(); FoundryKeyRingMatchList.AddColumn(typeof(HudStaticText), 190, null); FoundryKeyRingMatchList.AddColumn(typeof(HudPictureBox), 16, null); ChiefGearHudFoundry.AddControl(FoundryKeyRingMatchList, new Rectangle(5,180,230,75)); FoundryKeyringMatchRing = new HudStaticText(); FoundryKeyringMatchRing.Text = ""; ChiefGearHudFoundry.AddControl(FoundryKeyringMatchRing, new Rectangle(10, 260, 180, 20)); FoundryControltxt6 = new HudStaticText(); FoundryControltxt6.Text = "Key Name:Key Ring Name"; ChiefGearHudFoundry.AddControl(FoundryControltxt6, new Rectangle(5, 280, 180, 20)); FoundryKeyRingMatchEdit = new HudTextBox(); ChiefGearHudFoundry.AddControl(FoundryKeyRingMatchEdit, new Rectangle(5, 300, 180, 20)); FoundryKeyRingMatchAdd = new HudButton(); FoundryKeyRingMatchAdd.Text = "Add"; ChiefGearHudFoundry.AddControl(FoundryKeyRingMatchAdd, new Rectangle(195, 300, 45, 20)); FoundryControltxt5 = new HudStaticText(); FoundryControltxt5.Text = "Chest and Key Match Lists:"; ChiefGearHudFoundry.AddControl(FoundryControltxt5, new Rectangle(5,330,160,16)); FoundryChestMatchList = new HudList(); FoundryChestMatchList.AddColumn(typeof(HudStaticText), 190, null); FoundryChestMatchList.AddColumn(typeof(HudPictureBox), 16, null); ChiefGearHudFoundry.AddControl(FoundryChestMatchList, new Rectangle(5,350,230,75)); FoundryChestMatchEdit = new HudTextBox(); ChiefGearHudFoundry.AddControl(FoundryChestMatchEdit, new Rectangle(5, 435, 180, 20)); FoundryChestMatchAdd = new HudButton(); FoundryChestMatchAdd.Text = "Add"; ChiefGearHudFoundry.AddControl(FoundryChestMatchAdd, new Rectangle(195, 435, 45, 20)); //Right Column FoundryControltxt2 = new HudStaticText(); FoundryControltxt2.Text = "Foundry Crafting Combine List:"; ChiefGearHudFoundry.AddControl(FoundryControltxt2, new Rectangle(250,5,230,16)); FoundryCraftingCombineList = new HudList(); FoundryCraftingCombineList.AddColumn(typeof(HudStaticText), 190, null); FoundryCraftingCombineList.AddColumn(typeof(HudPictureBox), 16, null); ChiefGearHudFoundry.AddControl(FoundryCraftingCombineList, new Rectangle(250,25,230,75)); FoundryCombineEdit = new HudTextBox(); ChiefGearHudFoundry.AddControl(FoundryCombineEdit, new Rectangle(250, 105, 180, 20)); FoundryCombineAdd = new HudButton(); FoundryCombineAdd.Text = "Add"; ChiefGearHudFoundry.AddControl(FoundryCombineAdd, new Rectangle(440, 105, 40, 20)); FoundryControltxt3 = new HudStaticText(); FoundryControltxt3.Text = "Foundry Crafting Carve List:"; ChiefGearHudFoundry.AddControl(FoundryControltxt3, new Rectangle(250,130,230,16)); FoundryCraftingCarveList = new HudList(); FoundryCraftingCarveList.AddColumn(typeof(HudStaticText), 190, null); FoundryCraftingCarveList.AddColumn(typeof(HudPictureBox), 16, null); ChiefGearHudFoundry.AddControl(FoundryCraftingCarveList, new Rectangle(250,150,230,75)); FoundryCarveEdit = new HudTextBox(); ChiefGearHudFoundry.AddControl(FoundryCarveEdit, new Rectangle(250, 240, 180, 20)); FoundryCarveAdd = new HudButton(); FoundryCarveAdd.Text = "Add"; ChiefGearHudFoundry.AddControl(FoundryCarveAdd, new Rectangle(440, 240, 40, 20)); FoundryChestKeyMatchList = new HudList(); FoundryChestKeyMatchList.AddColumn(typeof(HudStaticText), 190, null); FoundryChestKeyMatchList.AddColumn(typeof(HudPictureBox), 16, null); ChiefGearHudFoundry.AddControl(FoundryChestKeyMatchList, new Rectangle(250,350,230,75)); FoundryChestMatchEdit2 = new HudTextBox(); ChiefGearHudFoundry.AddControl(FoundryChestMatchEdit2, new Rectangle(250,435, 180, 20)); FoundryChestMatchAdd2 = new HudButton(); FoundryChestMatchAdd2.Text = "Add"; ChiefGearHudFoundry.AddControl(FoundryChestMatchAdd2, new Rectangle(440, 435, 45, 20)); FoundryControlsList.Click += FoundryControlsList_Click; FoundryCraftingCombineList.Click += FoundryCraftingCombineList_Click; FoundryCombineAdd.Hit += FoundryCombineAdd_Hit; FoundryCraftingCarveList.Click += FoundryCraftingCarveList_Click; FoundryCarveAdd.Hit += FoundryCarveAdd_Hit; FoundryKeyRingMatchList.Click += FoundryKeyRingMatchList_Click; FoundryKeyRingMatchAdd.Hit += FoundryKeyRingMatchAdd_Hit; FoundryChestMatchList.Click += FoundryChestMatchList_Click; FoundryChestMatchAdd.Hit += FoundryChestMatchAdd_Hit; FoundryChestMatchAdd2.Hit += FoundryChestMatchEditAdd2_Hit; _UpdateFoundryControlPanel(); }catch(Exception ex){LogError(ex);} }
private void RenderInventorySettingsTabLayout() { try { btnInventoryUpdate = new HudButton(); btnInventoryUpdate.Text = "Update Inventory"; btnInventoryUpdate.Hit += (sender, index) => btnInventoryUpdate_Hit(sender, index); InventoryHudSettings.AddControl(btnInventoryUpdate, new Rectangle(20, 20, 150, 20)); btnInventoryComplete = new HudButton(); btnInventoryComplete.Text = "Do Complete Inventory"; btnInventoryComplete.Hit += (sender, index) => btnInventoryComplete_Hit(sender, index); InventoryHudSettings.AddControl(btnInventoryComplete, new Rectangle(20, 45, 150, 20)); btnInventoryStacks = new HudButton(); btnInventoryStacks.Text = "Redo stacks with Update"; btnInventoryStacks.Hit += (sender, index) => btnInventoryStacks_Hit(sender, index); InventoryHudSettings.AddControl(btnInventoryStacks, new Rectangle(20, 70, 150, 20)); bInventorySettingsTab = true; } catch (Exception ex) { LogError(ex); } }
private void DisposeInventorySettingsLayout() { try { if (!bInventorySettingsTab) { return; } btnInventoryUpdate.Hit -= (sender, index) => btnInventoryUpdate_Hit(sender, index); btnInventoryComplete.Hit -= (sender, index) => btnInventoryComplete_Hit(sender, index); btnInventoryStacks.Hit -= (sender, index) => btnInventoryStacks_Hit(sender, index); btnInventoryComplete = null; btnInventoryUpdate = null; btnInventoryStacks = null; bInventorySettingsTab = false; } catch { } }
private void RenderWorkerSpecificsTab() { try { lstHudWorkerSpecifics = new HudList(); lstHudWorkerSpecifics.AddColumn(typeof(HudStaticText), 150, null);//name lstHudWorkerSpecifics.AddColumn(typeof(HudStaticText), 40, null);//level // lstHudWorkerSpecifics.AddColumn(typeof(HudStaticText), 200, null);//Item Missing lstHudWorkerSpecifics.Click += (sender, row, col) => lstHudWorkerSpecifics_Click(sender, row, col); lblMissingPortals = new HudStaticText(); lblMissingPortals.Text = "Select Missing Portal"; lblMissingTitles = new HudStaticText(); lblMissingTitles.Text = "Select Missing Title"; lblWorkerSpecificLevel = new HudStaticText(); lblWorkerSpecificLevel.Text = "Select level of Worker"; lblToonMissing = new HudStaticText(); lblToonMissing.Text = "Worker lacks"; lblToonSpecificLevel = new HudStaticText(); lblToonSpecificLevel.Text = "Level"; btnClrSpecifics = new HudButton(); btnClrSpecifics.Text = "Clear List"; btnClrSpecifics.Hit += (sender, index) => btnClrSpecifics_Hit(sender, index); ControlGroup PossPortals = new ControlGroup(); cboPortals = new HudCombo(PossPortals); cboPortals.Change += (sender, index) => cboPortals_Change(sender, index); createPortalsList(); foreach (IDName info in Portals) { cboPortals.AddItem(info.name, info.ID); } ControlGroup PossTitles = new ControlGroup(); cboTitles = new HudCombo(PossTitles); cboTitles.Change += (sender, index) => cboTitles_Change(sender, index); createTitlesList(); foreach (IDName info in Titles) { cboTitles.AddItem(info.name, info.ID); } ControlGroup Level = new ControlGroup(); cboWorkerSpecificLevel = new HudCombo(Level); cboWorkerSpecificLevel.Change += (sender, index) => cboWorkerSpecificLevel_Change(sender, index); createSpecificLevelList(); foreach (IDName info in SpecificLevels) { cboWorkerSpecificLevel.AddItem(info.name, info.ID); } WorkerSpecificsTabLayout.AddControl(lblMissingPortals, new Rectangle(5, 40, 150, 16)); WorkerSpecificsTabLayout.AddControl(cboPortals, new Rectangle(160, 40, 180, 16)); //WorkerSpecificsTabLayout.AddControl(lblMissingTitles, new Rectangle(5, 20, 150, 16)); //WorkerSpecificsTabLayout.AddControl(cboTitles, new Rectangle(160, 20, 180, 16)); WorkerSpecificsTabLayout.AddControl(lblWorkerSpecificLevel, new Rectangle(5, 5, 150, 16)); WorkerSpecificsTabLayout.AddControl(cboWorkerSpecificLevel, new Rectangle(160, 5, 180, 16)); WorkerSpecificsTabLayout.AddControl(btnClrSpecifics, new Rectangle(5, 60, 60, 16)); WorkerSpecificsTabLayout.AddControl(lblToonMissing, new Rectangle(5, 80, 100, 16)); WorkerSpecificsTabLayout.AddControl(lblToonSpecificLevel, new Rectangle(160, 80, 50, 16)); WorkerSpecificsTabLayout.AddControl(lstHudWorkerSpecifics, new Rectangle(5, 100, 300, 300)); // UpdateWorkerSpecificsTab(); } catch (Exception ex) { LogError(ex); } }
private void RenderSalvageTab() { try { lstNotifySalvage = new HudList(); lstNotifySalvage.AddColumn(typeof(HudCheckBox), 16, null); lstNotifySalvage.AddColumn(typeof(HudPictureBox), 16, null); lstNotifySalvage.AddColumn(typeof(HudStaticText), 100, null); lstNotifySalvage.AddColumn(typeof(HudStaticText), 100, null); lstNotifySalvage.AddColumn(typeof(HudStaticText), 1, null); ChiefGearInspectPageSalvage.AddControl(lstNotifySalvage, new Rectangle(5, 5, 260, 300)); lblSalvagelblName = new HudStaticText(); lblSalvagelblName.Text = "Salvage Material: "; ChiefGearInspectPageSalvage.AddControl(lblSalvagelblName, new Rectangle(5,310, 250, 16)); lblSalvageName = new HudStaticText(); lblSalvageName.Text = ""; ChiefGearInspectPageSalvage.AddControl(lblSalvageName, new Rectangle(5, 330, 250, 16)); lblSalvageString = new HudStaticText(); lblSalvageString.Text= "Salvage Combine String: "; ChiefGearInspectPageSalvage.AddControl(lblSalvageString, new Rectangle(5, 360, 150, 16)); txtSalvageString = new HudTextBox(); txtSalvageString.Text = ""; ChiefGearInspectPageSalvage.AddControl(txtSalvageString, new Rectangle(5, 380, 150, 20)); btnUpdateSalvage = new HudButton(); btnUpdateSalvage.Text = "Update"; ChiefGearInspectPageSalvage.AddControl(btnUpdateSalvage, new Rectangle(5, 410, 90, 16)); chkSalvageEnabled = new HudCheckBox(); chkSalvageEnabled.Text = "Enabled"; ChiefGearInspectPageSalvage.AddControl(chkSalvageEnabled, new Rectangle(250, 410, 90, 16)); imgSalvageAuto = new HudPictureBox(); ChiefGearInspectPageSalvage.AddControl(imgSalvageAuto, new Rectangle(250, 360, 25, 25)); lstNotifySalvage.Click += lstNotifySalvage_Click; txtSalvageString.LostFocus += txtSalvageString_LostFocus; btnUpdateSalvage.Hit += btnUpdateSalvage_Hit; chkSalvageEnabled.Hit += chkSalvageEnabled_Hit; imgSalvageAuto.Hit += imgSalvageAuto_Hit; _UpdateSalvagePanel(); }catch(Exception ex){LogError(ex);} }
private void RenderInventoryHud() { try { if (InventoryHudView != null) { DisposeInventoryHud(); } InventoryHudView = new HudView("Gear", mGeneralSettings.GearWindowSettings.InventoryHudWidth, mGeneralSettings.GearWindowSettings.InventoryHudHeight, new ACImage(0x6AA5)); InventoryHudView.UserAlphaChangeable = false; InventoryHudView.ShowInBar = false; InventoryHudView.UserResizeable = false; InventoryHudView.Visible = true; InventoryHudView.Ghosted = false; InventoryHudView.UserMinimizable = true; InventoryHudView.UserClickThroughable = false; InventoryHudTabView = new HudTabView(); InventoryHudView.Controls.HeadControl = InventoryHudTabView; InventoryHudTabLayout = new HudFixedLayout(); InventoryHudTabView.AddTab(InventoryHudTabLayout, "Inventory"); InventoryHudView.LoadUserSettings(); lblInventoryClass = new HudStaticText(); lblInventoryClass.Text = "Class"; ControlGroup InventoryClasses = new ControlGroup(); cboInventoryClasses = new HudCombo(InventoryClasses); cboInventoryClasses.Change += (sender, index) => cboInventoryClasses_Change(sender, index); foreach (IDName info in tDataTable.ClassInvList) { cboInventoryClasses.AddItem(info.name, info.ID); } lblSearchRules = new HudStaticText(); lblSearchRules.Text = "Up to 3 names or spells. Use ';' to separate and '*' before name but not spells."; lblMyChoice = new HudStaticText(); lblMyChoice.Text = "Search:"; txtMyChoice = new HudTextBox(); txtMyChoice.LostFocus += txtMyChoice_LostFocus; //Searches for Weapons and Essences lblWeapons = new HudStaticText(); lblWeapons.Text = "Weapons/Essences"; lblMelee = new HudStaticText(); lblMelee.Text = "Mel:"; ControlGroup WieldAttribTypes = new ControlGroup(); cboWieldAttrib = new HudCombo(WieldAttribTypes); cboWieldAttrib.Change += (sender, index) => cboWieldAttrib_Change(sender, index); foreach (IDName info in tDataTable.MeleeTypeInvList) { cboWieldAttrib.AddItem(info.name, info.ID); } lblDamage = new HudStaticText(); lblDamage.Text = "Dam:"; ControlGroup DamageTypes = new ControlGroup(); cboDamageType = new HudCombo(DamageTypes); cboDamageType.Change += (sender, index) => cboDamageType_Change(sender, index); foreach (IDName info in tDataTable.ElementalInvList) { cboDamageType.AddItem(info.name, info.ID); } lblWield = new HudStaticText(); lblWield.Text = "Lev:"; ControlGroup WieldLevels = new ControlGroup(); cboLevel = new HudCombo(WieldLevels); cboLevel.Change += (sender, index) => cboLevel_Change(sender, index); foreach (IDName info in tDataTable.WeaponWieldInvList) { cboLevel.AddItem(info.name, info.ID); } lblEmbues = new HudStaticText(); lblEmbues.Text = "Emb:"; ControlGroup EmbueChoices = new ControlGroup(); cboEmbues = new HudCombo(EmbueChoices); cboEmbues.Change += (sender, index) => cboEmbues_Change(sender, index); foreach (IDName info in tDataTable.EmbueInvList) { cboEmbues.AddItem(info.name, info.ID); } lblMastery = new HudStaticText(); lblMastery.Text = "Mast:"; ControlGroup MasteryChoices = new ControlGroup(); cboMastery = new HudCombo(MasteryChoices); cboMastery.Change += (sender, index) => cboMastery_Change(sender, index); foreach (IDName info in tDataTable.MasteryIndex) { cboMastery.AddItem(info.name, info.ID); } //Armor/Clothing/Jewelry Searches lblArmor = new HudStaticText(); lblArmor.Text = "Armor/Clothing/Aetheria/Jewelry"; lblSet = new HudStaticText(); lblSet.Text = "Set:"; ControlGroup SetChoices = new ControlGroup(); cboArmorSet = new HudCombo(SetChoices); cboArmorSet.Change += (sender, index) => cboArmorSet_Change(sender, index); foreach (IDName info in tDataTable.ArmorSetsList) { cboArmorSet.AddItem(info.name, info.ID); } lblArmorWield = new HudStaticText(); lblArmorWield.Text = "Lev:"; ControlGroup ArmorLevels = new ControlGroup(); cboArmorLevel = new HudCombo(ArmorLevels); cboArmorLevel.Change += (sender, index) => cboArmorLevel_Change(sender, index); foreach (IDName info in tDataTable.ArmorLevelInvList) { cboArmorLevel.AddItem(info.name, info.ID); } lblCovers = new HudStaticText(); lblCovers.Text = "Cov:"; ControlGroup CoverageChoices = new ControlGroup(); cboCoverage = new HudCombo(CoverageChoices); cboCoverage.Change += (sender, index) => cboCoverage_Change(sender, index); foreach (IDName info in tDataTable.CoverageInvList) { cboCoverage.AddItem(info.name, info.ID); } lblRatings = new HudStaticText(); lblRatings.Text = "Rat:"; ControlGroup RatingChoices = new ControlGroup(); cboRatings = new HudCombo(RatingChoices); cboRatings.Change += (sender, index) => cboRatings_Change(sender, index); cboRatings.AddItem("None", 0); foreach (IDName info in tDataTable.RatingList) { cboRatings.AddItem(info.name, info.ID); } //Search for Salvage lblSalvage = new HudStaticText(); lblSalvage.Text = "Salvage"; lblMaterial = new HudStaticText(); lblMaterial.Text = "Mat:"; ControlGroup MaterialChoices = new ControlGroup(); cboMaterial = new HudCombo(MaterialChoices); cboMaterial.Change += (sender, index) => cboMaterial_Change(sender, index); foreach (IDName info in tDataTable.MaterialInvList) { cboMaterial.AddItem(info.name, info.ID); } lblWork = new HudStaticText(); lblWork.Text = "Work:"; ControlGroup WorkChoices = new ControlGroup(); cboSalvWork = new HudCombo(WorkChoices); cboSalvWork.Change += (sender, index) => cboSalvWork_Change(sender, index); foreach (IDName info in tDataTable.SalvageWorkInvList) { cboSalvWork.AddItem(info.name, info.ID); } btnClrInv = new HudButton(); btnClrInv.Text = "Clear List"; btnClrInv.Hit += (sender, index) => btnClrInv_Hit(sender, index); btnLstInv = new HudButton(); btnLstInv.Text = "Update Now!"; btnLstInv.Hit += (sender, index) => btnLstInv_Hit(sender, index); lstHudInventory = new HudList(); lstHudInventory.AddColumn(typeof(HudPictureBox), 20, null); lstHudInventory.AddColumn(typeof(HudStaticText), 150, null);//object lstHudInventory.AddColumn(typeof(HudStaticText), 100, null);//set lstHudInventory.AddColumn(typeof(HudStaticText), 75, null);//rating lstHudInventory.AddColumn(typeof(HudStaticText), 200, null);//toon holding lstHudInventory.AddColumn(typeof(HudStaticText), 1, null); lstHudInventory.Click += (sender, row, col) => lstHudInventory_Click(sender, row, col); InventoryHudTabLayout.AddControl(lblInventoryClass, new Rectangle(10, 15, 35, 16)); InventoryHudTabLayout.AddControl(cboInventoryClasses, new Rectangle(50, 15, 100, 16)); InventoryHudTabLayout.AddControl(lblSearchRules, new Rectangle(120, 0, 420, 16)); InventoryHudTabLayout.AddControl(lblMyChoice, new Rectangle(155, 20, 50, 16)); InventoryHudTabLayout.AddControl(txtMyChoice, new Rectangle(210, 20, 320, 16)); InventoryHudTabLayout.AddControl(lblWeapons, new Rectangle(10, 40, 150, 20)); InventoryHudTabLayout.AddControl(lblArmor, new Rectangle(160, 40, 210, 20)); InventoryHudTabLayout.AddControl(lblSalvage, new Rectangle(400, 40, 150, 20)); InventoryHudTabLayout.AddControl(lblMelee, new Rectangle(10, 60, 30, 16)); InventoryHudTabLayout.AddControl(cboWieldAttrib, new Rectangle(50, 60, 100, 16)); InventoryHudTabLayout.AddControl(lblSet, new Rectangle(160, 60, 30, 16)); InventoryHudTabLayout.AddControl(cboArmorSet, new Rectangle(200, 60, 190, 16)); InventoryHudTabLayout.AddControl(lblMaterial, new Rectangle(400, 60, 30, 16)); InventoryHudTabLayout.AddControl(cboMaterial, new Rectangle(440, 60, 150, 16)); InventoryHudTabLayout.AddControl(lblDamage, new Rectangle(10, 80, 30, 16)); InventoryHudTabLayout.AddControl(cboDamageType, new Rectangle(50, 80, 100, 16)); InventoryHudTabLayout.AddControl(lblArmorWield, new Rectangle(160, 80, 30, 16)); InventoryHudTabLayout.AddControl(cboArmorLevel, new Rectangle(200, 80, 190, 16)); InventoryHudTabLayout.AddControl(lblWork, new Rectangle(400, 80, 30, 16)); InventoryHudTabLayout.AddControl(cboSalvWork, new Rectangle(440, 80, 100, 16)); InventoryHudTabLayout.AddControl(lblWield, new Rectangle(10, 100, 30, 16)); InventoryHudTabLayout.AddControl(cboLevel, new Rectangle(50, 100, 100, 16)); InventoryHudTabLayout.AddControl(lblCovers, new Rectangle(160, 100, 30, 16)); InventoryHudTabLayout.AddControl(cboCoverage, new Rectangle(200, 100, 190, 16)); InventoryHudTabLayout.AddControl(lblRatings, new Rectangle(160, 120, 30, 16)); InventoryHudTabLayout.AddControl(cboRatings, new Rectangle(200, 120, 100, 16)); InventoryHudTabLayout.AddControl(lblEmbues, new Rectangle(10, 120, 30, 16)); InventoryHudTabLayout.AddControl(cboEmbues, new Rectangle(50, 120, 100, 16)); InventoryHudTabLayout.AddControl(lblMastery, new Rectangle(10, 140, 30, 16)); InventoryHudTabLayout.AddControl(cboMastery, new Rectangle(50, 140, 100, 16)); InventoryHudTabLayout.AddControl(btnLstInv, new Rectangle(410, 115, 100, 16)); InventoryHudTabLayout.AddControl(btnClrInv, new Rectangle(410, 140, 100, 16)); InventoryHudTabLayout.AddControl(lstHudInventory, new Rectangle(10, 160, 575, 330)); lblInventoryPending = new HudStaticText(); lblInventoryPending.Text = "Inventory Items Pending Id:"; InventoryHudTabLayout.AddControl(lblInventoryPending, new Rectangle(10, mGeneralSettings.GearWindowSettings.InventoryHudHeight - 35, 150, 16)); txtInventoryPending = new HudStaticText(); txtInventoryPending.Text = String.Empty; InventoryHudTabLayout.AddControl(txtInventoryPending, new Rectangle(175, mGeneralSettings.GearWindowSettings.InventoryHudHeight - 35, 50, 16)); InventoryHudView.VisibleChanged += InventoryHudView_VisibleChanged; } catch (Exception ex) { LogError(ex); } return; }
private void DisposeInventoryTabLayout() { try { if (InventoryHudView == null) { return; } clearListVariables(); cboInventoryClasses.Change -= (sender, index) => cboInventoryClasses_Change(sender, index); cboInventoryClasses.Dispose(); cboWieldAttrib.Change -= (sender, index) => cboWieldAttrib_Change(sender, index); cboWieldAttrib.Dispose(); cboArmorSet.Change -= (sender, index) => cboArmorSet_Change(sender, index); cboArmorSet.Dispose(); cboMaterial.Change -= (sender, index) => cboMaterial_Change(sender, index); cboMaterial.Dispose(); if (cboDamageType != null) { cboDamageType.Change -= (sender, index) => cboDamageType_Change(sender, index); cboDamageType = null; } if (cboArmorLevel != null) { cboArmorLevel.Change -= (sender, index) => cboArmorLevel_Change(sender, index); cboArmorLevel = null; } if (cboSalvWork != null) { cboSalvWork.Change -= (sender, index) => cboSalvWork_Change(sender, index); cboSalvWork = null; } if (cboLevel != null) { cboLevel.Change -= (sender, index) => cboLevel_Change(sender, index); cboLevel = null; } if (cboCoverage != null) { cboCoverage.Change -= (sender, index) => cboCoverage_Change(sender, index); cboCoverage = null; } if (cboRatings != null) { cboRatings.Change -= (sender, index) => cboRatings_Change(sender, index); cboRatings = null; } if (cboMastery != null) { cboMastery.Change -= (sender, index) => cboMastery_Change(sender, index); cboMastery = null; } if (lstHudInventory != null) { lstHudInventory.Click -= (sender, row, col) => lstHudInventory_Click(sender, row, col); lstHudInventory = null; } if (InventoryHudListRow != null) { InventoryHudListRow = null; } if (btnClrInv != null) { btnClrInv.Hit -= (sender, index) => btnClrInv_Hit(sender, index); btnClrInv = null; } if (btnLstInv != null) { btnLstInv.Hit -= (sender, index) => btnLstInv_Hit(sender, index); btnLstInv = null; } if (cboEmbues != null) { cboEmbues.Change -= (sender, index) => cboEmbues_Change(sender, index); cboEmbues = null; } if (txtMyChoice != null) { txtMyChoice.LostFocus -= txtMyChoice_LostFocus; txtMyChoice = null; } if (lblInventoryClass != null) { lblInventoryClass = null; } if (lblSearchRules != null) { lblSearchRules = null; } if (lblMyChoice != null) { lblMyChoice = null; } if (lblWeapons != null) { lblWeapons = null; } if (lblArmor != null) { lblArmor = null; } if (lblSalvage != null) { lblSalvage = null; } if (lblMelee != null) { lblMelee = null; } if (lblSet != null) { lblSet = null; } if (lblDamage != null) { lblDamage = null; } if (lblArmorWield != null) { lblArmorWield = null; } if (lblWork != null) { lblWork = null; } if (lblWield != null) { lblWield = null; } if (lblMaterial != null) { lblMaterial = null; } if (lblCovers != null) { lblCovers = null; } if (lblRatings != null) { lblRatings = null; } if (lblEmbues != null) { lblEmbues = null; } if (lblMastery != null) { lblMastery = null; } } catch (Exception ex) { LogError(ex); } }
public void RenderButlerHud() { try { if(ButlerHudView != null) { DisposeButlerHud(); } ButlerHudView = new HudView("GearButler", 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 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 RenderChiefGearInspectPageTrophies() { try { WriteToChat("I am in function to render trophy hud."); lstmyTrophies = new HudList(); lstmyTrophiesListRow = new HudList.HudListRowAccessor(); ChiefGearInspectPageTrophies.AddControl(lstmyTrophies, new Rectangle(5, 5, 260, 300)); lstmyTrophies.AddColumn(typeof(HudCheckBox), 5, null); lstmyTrophies.AddColumn(typeof(HudStaticText), 230, null); lstmyTrophies.AddColumn(typeof(HudPictureBox), 10, null); txtTrophyName = new HudTextBox(); txtTrophyName.Text = ""; ChiefGearInspectPageTrophies.AddControl(txtTrophyName, new Rectangle(8, 320, 150, 20)); btnUpdateTrophyItem = new HudButton(); btnUpdateTrophyItem.Text = "Update"; ChiefGearInspectPageTrophies.AddControl(btnUpdateTrophyItem, new Rectangle(190, 320, 90, 18)); btnAddTrophyItem = new HudButton(); btnAddTrophyItem.Text = "Add New Item"; ChiefGearInspectPageTrophies.AddControl(btnAddTrophyItem, new Rectangle(190, 360, 90, 18)); chkTrophyExact = new HudCheckBox(); chkTrophyExact.Text = "Exact Match"; ChiefGearInspectPageTrophies.AddControl(chkTrophyExact, new Rectangle(8, 370, 80, 16)); chkTrophyExact.Checked = false; txtTrophyMax = new HudTextBox(); txtTrophyMax.Text = ""; ChiefGearInspectPageTrophies.AddControl(txtTrophyMax, new Rectangle(5, 390, 100, 20)); HudStaticText lblMyItemsCountMax = new HudStaticText(); // lblChiefGearSwitch.FontHeight = nmenuFontHeight; lblMyItemsCountMax.Text = "Max # to Loot:"; ChiefGearInspectPageTrophies.AddControl(lblMyItemsCountMax, new Rectangle(110, 390, 100, 16)); SubscribeChiefGearInspectPageTrophies(); } catch (Exception ex) { LogError(ex); } }
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);} }
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 RenderArmorUpdateTabLayout() { try { lblToonArmorUpdateName = new HudStaticText(); lblToonArmorUpdateName.FontHeight = nmenuFontHeight; lblToonArmorUpdateName.Text = ""; lblToonArmorUpdateLevel = new HudStaticText(); lblToonArmorUpdateLevel.FontHeight = nmenuFontHeight; lblToonArmorUpdateMaster = new HudStaticText(); lblToonArmorUpdateMaster.FontHeight = nmenuFontHeight; ArmorUpdateHudList = new HudList(); ArmorUpdateHudListRow = new HudList.HudListRowAccessor(); ArmorAvailableList = new HudList(); ArmorAvailableListRow = new HudList.HudListRowAccessor(); armorSelectFilename = currDir + @"\armorSelected.xml"; // WriteToChat("Height: " + ArmorHudFirstHeight + ", Width: " + ArmorHudWidth); ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateName, new Rectangle(0, 0, 100, 50)); //ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateLevel, new Rectangle(120, 0, 40, 16)); //ArmorUpdateHudTabLayout.AddControl(lblToonArmorUpdateMaster, new Rectangle(150, 0, 60, 16)); ArmorUpdateHudTabLayout.AddControl(ArmorUpdateHudList, new Rectangle(0, 30, ArmorHudWidth, (ArmorHudHeight) / 3)); //ArmorHudList.ControlHeight = Convert.ToInt32(.05*ArmorHudHeight); ArmorUpdateHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.20 * ArmorHudWidth), null); ArmorUpdateHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.15 * ArmorHudWidth), null); ArmorUpdateHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.52 * ArmorHudWidth), null); ArmorUpdateHudList.Click += (sender, row, col) => ArmorUpdateHudList_Click(sender, row, col); ArmorUpdateHudTabLayout.AddControl(ArmorAvailableList, new Rectangle(0, (ArmorHudHeight)/3 + 50, ArmorHudWidth, (3*(ArmorHudHeight/8)))); //ArmorHudList.ControlHeight = Convert.ToInt32(.08*ArmorHudHeight); ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.15 * ArmorHudWidth), null); ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.15 * ArmorHudWidth), null); ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.10 * ArmorHudWidth), null); ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.10 * ArmorHudWidth), null); ArmorAvailableList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.52 * ArmorHudWidth), null); ArmorAvailableList.Click += (sender, row, col) => ArmorAvailableList_Click(sender, row, col); lblArmorUpdateCovers = new HudStaticText(); lblArmorUpdateCovers.FontHeight = nmenuFontHeight; lblArmorUpdateCovers.Text = "Cov:"; ControlGroup CoverageChoices = new ControlGroup(); cboArmorUpdateCovers = new HudCombo(CoverageChoices); cboArmorUpdateCovers.Change += (sender, index) => cboArmorUpdateCovers_Change(sender, index); int i = 0; foreach (IDNameLoadable info in CoverageInvList) { cboArmorUpdateCovers.AddItem(info.name, i); i++; } lblArmorUpdateSet = new HudStaticText(); lblArmorUpdateSet.FontHeight = nmenuFontHeight; lblArmorUpdateSet.Text = "Set:"; ControlGroup SetChoices = new ControlGroup(); cboArmorUpdateSet = new HudCombo(SetChoices); cboArmorUpdateSet.Change += (sender, index) => cboArmorUpdateSet_Change(sender, index); i = 0; foreach (IDNameLoadable info in ArmorSetsInvList) { cboArmorUpdateSet.AddItem(info.name, i); i++; } lblArmorUpdateChoice = new HudStaticText(); lblArmorUpdateChoice.FontHeight = nmenuFontHeight; lblArmorUpdateChoice.Text = "Search spells:"; lblArmorUpdateClass = new HudStaticText(); lblArmorUpdateClass.Text = "Armor,Jewelry, or Clothing"; txtArmorUpdateChoice = new HudTextBox(); txtArmorUpdateClass = new HudTextBox(); btnClearListArmorAvailable = new HudButton(); btnClearListArmorAvailable.Text = "Clear List"; btnClearListArmorAvailable.Hit += (sender, index) => btnClearListArmorAvailable_Hit(sender, index); btnListArmorAvailable = new HudButton(); btnListArmorAvailable.Text = "List Inventory"; btnListArmorAvailable.Hit += (sender, index) => btnListArmorAvailable_Hit(sender, index); ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateClass, new Rectangle(0, (5 * (ArmorHudHeight / 6)), ArmorHudWidth/6, 18)); ArmorUpdateHudTabLayout.AddControl(txtArmorUpdateClass, new Rectangle(ArmorHudWidth / 6, (5 * (ArmorHudHeight / 6)), 60, 18)); ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateChoice, new Rectangle(ArmorHudWidth/6 + 80, (5 * (ArmorHudHeight / 6)), 80, 18)); ArmorUpdateHudTabLayout.AddControl(txtArmorUpdateChoice, new Rectangle(ArmorHudWidth/3, (5*(ArmorHudHeight/6)), (ArmorHudWidth / 2), 18)); ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateCovers, new Rectangle(0, (5 * (ArmorHudHeight / 6)+30),(30), 18)); ArmorUpdateHudTabLayout.AddControl(cboArmorUpdateCovers, new Rectangle(40, (5 * (ArmorHudHeight / 6)+30), 200, 18)); ArmorUpdateHudTabLayout.AddControl(lblArmorUpdateSet, new Rectangle(ArmorHudWidth / 2, (5 * (ArmorHudHeight / 6)+30), (ArmorHudWidth / 2) + 30, 18)); ArmorUpdateHudTabLayout.AddControl(cboArmorUpdateSet, new Rectangle((ArmorHudWidth / 2) + 30, (5 * (ArmorHudHeight / 6)+30), (ArmorHudWidth / 2) + 100, 18)); ArmorUpdateHudTabLayout.AddControl(btnListArmorAvailable, new Rectangle(ArmorHudWidth/3, (5 * (ArmorHudHeight / 6)+60), 100, 18)); ArmorUpdateHudTabLayout.AddControl(btnClearListArmorAvailable, new Rectangle(ArmorHudWidth / 2, (5 * (ArmorHudHeight / 6)+60), 100, 18)); ArmorUpdateTab = true; if (toonArmorName == "" || toonArmorName == "None") { toonArmorName = toonName; } lblToonArmorUpdateName.Text = toonArmorName; toonArmorUpdateName = toonArmorName; FillArmorUpdateHudList(); } catch (Exception ex) { LogError(ex); } }
private void RenderMobTab() { try { lstmyMobs = new HudList(); lstmyMobs.AddColumn(typeof(HudCheckBox), 16, null); lstmyMobs.AddColumn(typeof(HudStaticText), 210, null); lstmyMobs.AddColumn(typeof(HudPictureBox), 16, null); ChiefGearInspectPageMobs.AddControl(lstmyMobs, new Rectangle(5, 5, 280, 300)); btnUncheckAllMob = new HudButton(); btnUncheckAllMob.Text = "Disable All"; ChiefGearInspectPageMobs.AddControl(btnUncheckAllMob, new Rectangle(310, 5, 120, 20)); txtmyMobName = new HudTextBox(); txtmyMobName.Text = ""; ChiefGearInspectPageMobs.AddControl(txtmyMobName, new Rectangle(8, 320, 150, 20)); chkmyMobEnabled = new HudCheckBox(); chkmyMobEnabled.Text = "Enabled"; ChiefGearInspectPageMobs.AddControl(chkmyMobEnabled, new Rectangle(360, 320, 90, 18)); btnAddSelectedMob = new HudButton(); btnAddSelectedMob.Text = "Add Selected Mob"; ChiefGearInspectPageMobs.AddControl(btnAddSelectedMob, new Rectangle(190, 320, 90, 18)); btnAddMob = new HudButton(); btnAddMob.Text = "Add New Mob"; ChiefGearInspectPageMobs.AddControl(btnAddMob, new Rectangle(190, 360, 90, 18)); lstmyMobs.Click += lstmyMobs_Click; chkmyMobEnabled.Change += chkmyMobEnabled_Change; txtmyMobName.LostFocus += txtmyMobName_LostFocus; btnAddSelectedMob.Hit += btnAddSelectedMob_Hit; btnAddMob.Hit += btnAddMob_Hit; btnUncheckAllMob.Hit += btnUncheckAllMob_Hit; _UpdateMobsTab(); }catch(Exception ex){LogError(ex);} }
private void DisposeArmorUpdateTabLayout() { try { if (!ArmorUpdateTab) { return; } ArmorUpdateHudList.Click -= (sender, row, col) => ArmorUpdateHudList_Click(sender, row, col); ArmorUpdateHudListRow = null; ArmorUpdateHudList.Dispose(); ArmorAvailableList.Click -= (sender, row, col) => ArmorAvailableList_Click(sender, row, col); ArmorAvailableListRow = null; ArmorAvailableList.Dispose(); lblToonArmorUpdateName.Text = ""; lblToonArmorUpdateName = null; toonArmorUpdateName = null; btnClearListArmorAvailable.Hit -= (sender, index) => btnClearListArmorAvailable_Hit(sender, index); btnListArmorAvailable.Hit -= (sender, index) => btnListArmorAvailable_Hit(sender, index); btnListArmorAvailable = null; btnClearListArmorAvailable = null; lblToonArmorUpdateLevel.Text = ""; lblToonArmorUpdateLevel = null; lblToonArmorUpdateMaster.Text = ""; lblToonArmorUpdateMaster = null; lblArmorUpdateChoice.Text = ""; lblArmorUpdateChoice = null; txtArmorUpdateChoice.Text = ""; txtArmorUpdateChoice = null; lblArmorUpdateClass.Text = ""; lblArmorUpdateClass = null; txtArmorUpdateClass.Text = ""; txtArmorUpdateClass= null; lblArmorUpdateCovers.Text = ""; lblArmorUpdateCovers = null; cboArmorUpdateCovers.Current = 0; cboArmorUpdateCovers = null; lblArmorUpdateSet.Text = ""; lblArmorUpdateSet = null; cboArmorUpdateSet.Current = 0; cboArmorUpdateSet = null; // lblToonArmorUpdateNameInfo.Text = ""; //lblToonArmorUpdateNameInfo = null; ClearArmorUpdateTabVariables(); ArmorUpdateTab = false; } catch (Exception ex) { LogError(ex); } }
private void DisposeInventoryTabLayout() { try { if (!bInventoryMainTab) { return; } clearListVariables(); cboInventoryClasses.Change -= (sender, index) => cboInventoryClasses_Change(sender, index); cboWieldAttrib.Change -= (sender, index) => cboWieldAttrib_Change(sender, index); cboArmorSet.Change -= (sender, index) => cboArmorSet_Change(sender, index); cboMaterial.Change -= (sender, index) => cboMaterial_Change(sender, index); cboDamageType.Change -= (sender, index) => cboDamageType_Change(sender, index); cboArmorLevel.Change -= (sender, index) => cboArmorLevel_Change(sender, index); cboSalvWork.Change -= (sender, index) => cboSalvWork_Change(sender, index); cboLevel.Change -= (sender, index) => cboLevel_Change(sender, index); cboCoverage.Change -= (sender, index) => cboCoverage_Change(sender, index); lstHudInventory.Click -= (sender, row, col) => lstHudInventory_Click(sender, row, col); btnClrInv.Hit -= (sender, index) => btnClrInv_Hit(sender, index); btnLstInv.Hit -= (sender, index) => btnLstInv_Hit(sender, index); cboEmbues.Change -= (sender, index) => cboEmbues_Change(sender, index); cboInventoryClasses = null; cboWieldAttrib = null; cboArmorSet = null; cboMaterial = null; cboDamageType = null; cboArmorLevel = null; cboSalvWork = null; cboLevel = null; cboCoverage = null; lstHudInventory = null; btnClrInv = null; btnLstInv = null; cboEmbues = null; bInventoryMainTab = false; } 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 RenderInventoryTabLayout() { try { lblInventoryClass = new HudStaticText(); lblInventoryClass.FontHeight = nmenuFontHeight; lblInventoryClass.Text = "Class"; ControlGroup InventoryClasses = new ControlGroup(); cboInventoryClasses = new HudCombo(InventoryClasses); cboInventoryClasses.Change += (sender, index) => cboInventoryClasses_Change(sender, index); int i=0; foreach (IDNameLoadable info in ClassInvList) { cboInventoryClasses.AddItem(info.name,i); i++; } lblMyChoice = new HudStaticText(); lblMyChoice.FontHeight = nmenuFontHeight; lblMyChoice.Text = "Search:"; txtMyChoice = new HudTextBox(); lblWeapons = new HudStaticText(); lblWeapons.FontHeight = 11; lblWeapons.Text = "Weapons"; lblWeapons.TextAlignment = VirindiViewService.WriteTextFormats.Center; lblArmor = new HudStaticText(); lblArmor.FontHeight = 11; lblArmor.Text = "Armor/Clothing/Aetheria"; lblArmor.TextAlignment = VirindiViewService.WriteTextFormats.Center; lblSalvage = new HudStaticText(); lblSalvage.FontHeight = 11; lblSalvage.Text = "Salvage"; lblSalvage.TextAlignment = VirindiViewService.WriteTextFormats.Center; lblMelee = new HudStaticText(); lblMelee.FontHeight = nmenuFontHeight; lblMelee.Text = "Mel:"; ControlGroup WieldAttribTypes = new ControlGroup(); cboWieldAttrib = new HudCombo(WieldAttribTypes); cboWieldAttrib.Change += (sender, index) => cboWieldAttrib_Change(sender, index); i = 0; foreach (IDNameLoadable info in MeleeTypeInvList) { cboWieldAttrib.AddItem(info.name, i); i++; } lblSet = new HudStaticText(); lblSet.FontHeight = nmenuFontHeight; lblSet.Text = "Set:"; ControlGroup SetChoices = new ControlGroup(); cboArmorSet = new HudCombo(SetChoices); cboArmorSet.Change += (sender, index) => cboArmorSet_Change(sender, index); i = 0; foreach (IDNameLoadable info in ArmorSetsInvList) { cboArmorSet.AddItem(info.name, i); i++; } lblMaterial = new HudStaticText(); lblMaterial.FontHeight = nmenuFontHeight; lblMaterial.Text = "Mat:"; ControlGroup MaterialChoices = new ControlGroup(); cboMaterial = new HudCombo(MaterialChoices); cboMaterial.Change += (sender, index) => cboMaterial_Change(sender, index); i = 0; foreach (IDNameLoadable info in MaterialInvList) { cboMaterial.AddItem(info.name, i); i++; } lblDamage = new HudStaticText(); lblDamage.FontHeight = nmenuFontHeight; lblDamage.Text = "Dam:"; ControlGroup DamageTypes = new ControlGroup(); cboDamageType = new HudCombo(DamageTypes); cboDamageType.Change += (sender, index) => cboDamageType_Change(sender, index); i = 0; foreach (IDNameLoadable info in ElementalInvList) { cboDamageType.AddItem(info.name, i); i++; } lblArmorWield = new HudStaticText(); lblArmorWield.FontHeight = nmenuFontHeight; lblArmorWield.Text = "Lev:"; ControlGroup ArmorLevels = new ControlGroup(); cboArmorLevel = new HudCombo(ArmorLevels); cboArmorLevel.Change += (sender, index) => cboArmorLevel_Change(sender, index); i = 0; foreach (IDNameLoadable info in ArmorLevelInvList) { cboArmorLevel.AddItem(info.name, i); i++; } lblWork = new HudStaticText(); lblWork.FontHeight = nmenuFontHeight; lblWork.Text = "Work:"; ControlGroup WorkChoices = new ControlGroup(); cboSalvWork = new HudCombo(WorkChoices); cboSalvWork.Change += (sender, index) => cboSalvWork_Change(sender, index); i = 0; foreach (IDNameLoadable info in SalvageWorkInvList) { cboSalvWork.AddItem(info.name, i); i++; } lblWield = new HudStaticText(); lblWield.FontHeight = nmenuFontHeight; lblWield.Text = "Lev:"; ControlGroup WieldLevels = new ControlGroup(); cboLevel = new HudCombo(WieldLevels); cboLevel.Change += (sender, index) => cboLevel_Change(sender, index); i = 0; foreach (IDNameLoadable info in WeaponWieldInvList) { cboLevel.AddItem(info.name, i); i++; } lblCovers = new HudStaticText(); lblCovers.FontHeight = nmenuFontHeight; lblCovers.Text = "Cov:"; ControlGroup CoverageChoices = new ControlGroup(); cboCoverage = new HudCombo(CoverageChoices); cboCoverage.Change += (sender, index) => cboCoverage_Change(sender, index); i = 0; foreach (IDNameLoadable info in CoverageInvList) { cboCoverage.AddItem(info.name, i); i++; } lblEmbues = new HudStaticText(); lblEmbues.FontHeight = nmenuFontHeight; lblEmbues.Text = "Emb:"; ControlGroup EmbueChoices = new ControlGroup(); cboEmbues = new HudCombo(EmbueChoices); cboEmbues.Change += (sender, index) => cboEmbues_Change(sender, index); i = 0; foreach (IDNameLoadable info in EmbueInvList) { cboEmbues.AddItem(info.name, i); i++; } btnClrInv = new HudButton(); btnClrInv.Text = "Clear List"; btnClrInv.Hit += (sender, index) => btnClrInv_Hit(sender, index); btnLstInv = new HudButton(); btnLstInv.Text = "List Inventory"; btnLstInv.Hit += (sender, index) => btnLstInv_Hit(sender, index); try { lstHudInventory = new HudList(); lstHudInventory.AddColumn(typeof(HudPictureBox), 20, null); lstHudInventory.AddColumn(typeof(HudStaticText), Convert.ToInt32(.5 * nInventoryHudWidth), null); lstHudInventory.AddColumn(typeof(HudStaticText), Convert.ToInt32(.44 * nInventoryHudWidth), null); lstHudInventory.AddColumn(typeof(HudStaticText), Convert.ToInt32(.001 * nInventoryHudWidth), null); lstHudInventory.Click += (sender, row, col) => lstHudInventory_Click(sender, row, col); } catch (Exception ex) { LogError(ex); } InventoryHudTabLayout.AddControl(lblInventoryClass, new Rectangle(10, 10, 30, 16)); InventoryHudTabLayout.AddControl(cboInventoryClasses, new Rectangle(45, 10, 100, 16)); InventoryHudTabLayout.AddControl(lblMyChoice, new Rectangle(155, 10, 100, 16)); InventoryHudTabLayout.AddControl(txtMyChoice, new Rectangle(260, 10, 280, 16)); InventoryHudTabLayout.AddControl(lblWeapons, new Rectangle(10,30,nInventoryHudWidth/3,20)); InventoryHudTabLayout.AddControl(lblArmor, new Rectangle(nInventoryHudWidth/3, 30, nInventoryHudWidth / 3, 20)); InventoryHudTabLayout.AddControl(lblSalvage, new Rectangle((2 * nInventoryHudWidth) / 3, 30, nInventoryHudWidth / 3, 20)); InventoryHudTabLayout.AddControl(lblMelee, new Rectangle(10, 50, 25, 16)); InventoryHudTabLayout.AddControl(cboWieldAttrib, new Rectangle(40, 50, 100, 16)); InventoryHudTabLayout.AddControl(lblSet, new Rectangle(nInventoryHudWidth/3, 50, 25, 16)); InventoryHudTabLayout.AddControl(cboArmorSet, new Rectangle(nInventoryHudWidth/ 3 + 30, 50, 150, 16)); InventoryHudTabLayout.AddControl(lblMaterial, new Rectangle((2 * nInventoryHudWidth) / 3, 50, 25, 16)); InventoryHudTabLayout.AddControl(cboMaterial, new Rectangle((2 * nInventoryHudWidth) / 3 + 30, 50, 150, 16)); InventoryHudTabLayout.AddControl(lblDamage, new Rectangle(10, 70, 25, 16)); InventoryHudTabLayout.AddControl(cboDamageType, new Rectangle(40, 70, 100, 16)); InventoryHudTabLayout.AddControl(lblArmorWield, new Rectangle(nInventoryHudWidth / 3, 70, 25, 16)); InventoryHudTabLayout.AddControl(cboArmorLevel, new Rectangle(nInventoryHudWidth / 3 + 30, 70, 100, 16)); InventoryHudTabLayout.AddControl(lblWork, new Rectangle((2 * nInventoryHudWidth) / 3, 70, 25, 16)); InventoryHudTabLayout.AddControl(cboSalvWork, new Rectangle((2 * nInventoryHudWidth) / 3 + 30, 70, 100, 16)); InventoryHudTabLayout.AddControl(lblWield, new Rectangle(10, 90, 25, 16)); InventoryHudTabLayout.AddControl(cboLevel, new Rectangle(40,90, 100, 16)); InventoryHudTabLayout.AddControl(lblCovers, new Rectangle(nInventoryHudWidth / 3, 90, 25, 16)); InventoryHudTabLayout.AddControl(cboCoverage, new Rectangle(nInventoryHudWidth / 3 + 30, 90, 100, 16)); InventoryHudTabLayout.AddControl(lblEmbues, new Rectangle(10, 110, 25, 16)); InventoryHudTabLayout.AddControl(cboEmbues, new Rectangle(40, 110, 100, 16)); InventoryHudTabLayout.AddControl(btnLstInv, new Rectangle((2* nInventoryHudWidth)/3,100,100,16)); InventoryHudTabLayout.AddControl(btnClrInv, new Rectangle((2 * nInventoryHudWidth) / 3, 120, 100, 16)); InventoryHudTabLayout.AddControl(lstHudInventory, new Rectangle(10, 150, nInventoryHudWidth, nInventoryHudHeight - 155)); bInventoryMainTab = true; } catch (Exception ex) { LogError(ex); } }
private void RenderTrophyTab() { try { lstmyTrophies = new HudList(); lstmyTrophies.AddColumn(typeof(HudCheckBox), 16, null); lstmyTrophies.AddColumn(typeof(HudStaticText), 210, null); lstmyTrophies.AddColumn(typeof(HudPictureBox), 16, null); ChiefGearInspectPageTrophies.AddControl(lstmyTrophies, new Rectangle(5, 5, 280, 300)); btnAddTrophyItem = new HudButton(); btnAddTrophyItem.Text = "Add New Item"; ChiefGearInspectPageTrophies.AddControl(btnAddTrophyItem, new Rectangle(5, 320, 120, 20)); btnTrophyAddSelected = new HudButton(); btnTrophyAddSelected.Text = "Add Selected Item"; ChiefGearInspectPageTrophies.AddControl(btnTrophyAddSelected, new Rectangle(135, 320, 120, 20)); btnTrophyUncheckAll = new HudButton(); btnTrophyUncheckAll.Text = "Disable All"; ChiefGearInspectPageTrophies.AddControl(btnTrophyUncheckAll, new Rectangle(310, 5, 120, 20)); chkTrophyEnabled = new HudCheckBox(); chkTrophyEnabled.Text = "Enabled"; ChiefGearInspectPageTrophies.AddControl(chkTrophyEnabled, new Rectangle(5, 350, 90, 16)); chkTrophyStartsWith = new HudCheckBox(); chkTrophyStartsWith.Text = "Starts With"; ChiefGearInspectPageTrophies.AddControl(chkTrophyStartsWith, new Rectangle(110, 350, 90, 16)); txtTrophyName = new HudTextBox(); txtTrophyName.Text = ""; ChiefGearInspectPageTrophies.AddControl(txtTrophyName, new Rectangle(5, 380, 280, 20)); txtTrophyMax = new HudTextBox(); txtTrophyMax.Text = ""; ChiefGearInspectPageTrophies.AddControl(txtTrophyMax, new Rectangle(110, 410, 50, 20)); lblMyItemsCountMax = new HudStaticText(); lblMyItemsCountMax.Text = "Loot Max:"; ChiefGearInspectPageTrophies.AddControl(lblMyItemsCountMax, new Rectangle(5, 410, 100, 16)); lstmyTrophies.Click += lstmyTrophies_Click; chkTrophyEnabled.Hit += chkTrophyEnabled_Hit; txtTrophyName.LostFocus += txtTrophyName_LostFocus; btnAddTrophyItem.Hit += btnAddTrophyItem_Hit; txtTrophyMax.LostFocus += txtTrophyMax_LostFocus; chkTrophyStartsWith.Change += chkTrophyStartsWith_Change; btnTrophyAddSelected.Hit += btnTrophyAddSelected_Hit; btnTrophyUncheckAll.Hit += btnTrophyUncheckAll_Hit; _UpdateTrophyTab(); }catch(Exception ex){LogError(ex);} }
private void RenderInspectAppearanceTab() { try { lblRuleArmorTypes = new HudStaticText(); lblRuleArmorTypes.Text = "Armor Models"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblRuleArmorTypes, new Rectangle(5, 0, 100, 16)); lstRuleArmorTypes = new HudList(); lstRuleArmorTypes.ControlHeight = 16; lstRuleArmorTypes.AddColumn(typeof(HudCheckBox), 16, null); lstRuleArmorTypes.AddColumn(typeof(HudStaticText), 195, null); lstRuleArmorTypes.AddColumn(typeof(HudStaticText), 1, null); ChiefGearInspectPageMenuTabAppearance.AddControl(lstRuleArmorTypes, new Rectangle(5, 20, 150, 255)); lblColorPalettes = new HudStaticText(); lblColorPalettes.Text = "Color Palettes"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblColorPalettes, new Rectangle(175, 0, 80, 16)); lblPalette0 = new HudStaticText(); lblPalette0.Text = "Palette #0:"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette0, new Rectangle(175, 30, 60, 16)); lblPalette1 = new HudStaticText(); lblPalette1.Text = "Palette #1:"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette1, new Rectangle(175, 60, 60, 16)); lblPalette2 = new HudStaticText(); lblPalette2.Text = "Palette #2:"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette2, new Rectangle(175, 90, 60, 16)); lblPalette3 = new HudStaticText(); lblPalette3.Text = "Palette #3:"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette3, new Rectangle(175, 120, 60, 16)); lblPalette4 = new HudStaticText(); lblPalette4.Text = "Palette #4:"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette4, new Rectangle(175, 150, 60, 16)); lblPalette5 = new HudStaticText(); lblPalette5.Text = "Palette #5:"; ChiefGearInspectPageMenuTabAppearance.AddControl(lblPalette5, new Rectangle(175, 180, 60, 16)); txtPalette0 = new HudTextBox(); ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette0, new Rectangle(235, 30, 60, 20)); txtPalette1 = new HudTextBox(); ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette1, new Rectangle(235, 60, 60, 20)); txtPalette2 = new HudTextBox(); ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette2, new Rectangle(235, 90, 60, 20)); txtPalette3 = new HudTextBox(); ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette3, new Rectangle(235, 120, 60, 20)); txtPalette4 = new HudTextBox(); ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette4, new Rectangle(235, 150, 60, 20)); txtPalette5 = new HudTextBox(); ChiefGearInspectPageMenuTabAppearance.AddControl(txtPalette5, new Rectangle(235, 180, 60, 20)); lblCurrentPalette = new HudStaticText(); lblCurrentPalette.Text = "C. Sel. Pals."; ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette, new Rectangle(310, 0, 80, 16)); lblCurrentPalette0 = new HudStaticText(); ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette0, new Rectangle(310, 30, 60, 20)); lblCurrentPalette1 = new HudStaticText(); ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette1, new Rectangle(310, 60, 60, 20)); lblCurrentPalette2 = new HudStaticText(); ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette2, new Rectangle(310, 90, 60, 20)); lblCurrentPalette3 = new HudStaticText(); ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette3, new Rectangle(310, 120, 60, 20)); lblCurrentPalette4 = new HudStaticText(); ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette4, new Rectangle(310, 150, 60, 20)); lblCurrentPalette5 = new HudStaticText(); ChiefGearInspectPageMenuTabAppearance.AddControl(lblCurrentPalette5, new Rectangle(310, 180, 60, 20)); btnReportPalettes = new HudButton(); btnReportPalettes.Text = "Report Palettes"; ChiefGearInspectPageMenuTabAppearance.AddControl(btnReportPalettes, new Rectangle(200, 220, 80, 20)); lstRuleArmorTypes.Click += lstRuleArmorTypes_Click; btnReportPalettes.Hit += btnReportPalettes_Hit; txtPalette0.LostFocus += txtPalette0_LostFocus; txtPalette1.LostFocus += txtPalette1_LostFocus; txtPalette2.LostFocus += txtPalette2_LostFocus; txtPalette3.LostFocus += txtPalette3_LostFocus; txtPalette4.LostFocus += txtPalette4_LostFocus; txtPalette5.LostFocus += txtPalette5_LostFocus; }catch(Exception ex){LogError(ex);} }
private void RenderChiefGearInspectPageMobs() { try { WriteToChat("I am in hud to render mobs"); lstmyMobs = new HudList(); lstmyMobsListRow = new HudList.HudListRowAccessor(); ChiefGearInspectPageMobs.AddControl(lstmyMobs, new Rectangle(5, 5, 260, 300)); lstmyMobs.AddColumn(typeof(HudCheckBox), 5, null); lstmyMobs.AddColumn(typeof(HudStaticText), 230, null); lstmyMobs.AddColumn(typeof(HudPictureBox), 10, null); txtmyMobName = new HudTextBox(); txtmyMobName.Text = ""; ChiefGearInspectPageMobs.AddControl(txtmyMobName, new Rectangle(8, 320, 150, 20)); btnUpdateMobItem = new HudButton(); btnUpdateMobItem.Text = "Update"; ChiefGearInspectPageMobs.AddControl(btnUpdateMobItem, new Rectangle(190, 320, 90, 18)); btnAddMobItem = new HudButton(); btnAddMobItem.Text = "Add New Mob"; ChiefGearInspectPageMobs.AddControl(btnAddMobItem, new Rectangle(190, 360, 90, 18)); chkmyMobExact = new HudCheckBox(); chkmyMobExact.Text = "Exact Match"; ChiefGearInspectPageMobs.AddControl(chkmyMobExact, new Rectangle(8, 370, 80, 16)); chkmyMobExact.Checked = false; SubscribeChiefGearInspectPageMobs(); } catch (Exception ex) { LogError(ex); } }
void LoadConfig(string configName) { for (int i = 0; i < ConfigChoice.Count; i++) { if (((HudStaticText)ConfigChoice[i]).Text == configName.Trim()) { ConfigChoice.Current = i; } } string[] configInfo = Util.GetConfig(configName.Trim()); if (configInfo != null) { foreach (string line in configInfo) { try { if (line.Contains("LAYOUT:")) { string layoutTemp = line.Remove(0, "LAYOUT:".Length).Trim(); GenerateLayout(layoutTemp); } else { string[] col = line.Split(','); if (view[col[0]].GetType() == typeof(HudButton)) { HudButton temp = (HudButton)view[col[0]]; string currentTabName = col[0].Substring(0, col[0].IndexOf('_')); //check if button exists if (temp != null) { //Check if button should be set to visible if (col[1].Contains("NOTSET")) { temp.Visible = false; popoutWindows[currentTabName].ChangeBtnInfo(col[0], false, ""); } //If button is an image button // Register the button event handler and make visible else { if (col[1].Contains("[") && col[1].Contains("]")) { //Remove button, replace with image button and register bindings //temp.Visible = false; string clean = col[1].Replace("[", ""); clean = clean.Replace("]", ""); //Format : [<icon id>|<text>] int iconImage = 0; if (!clean.Contains("|")) { iconImage = int.Parse(clean); VirindiViewService.ACImage tempImage = new VirindiViewService.ACImage(iconImage); popoutWindows[currentTabName].SetImage(col[0], tempImage); popoutWindows[currentTabName].ChangeBtnInfo(col[0], true, ""); temp.Image = tempImage; temp.Text = ""; } else { string[] imageSettings = clean.Split('|'); iconImage = int.Parse(imageSettings[0]); int iconBG = 0; if (imageSettings.Length > 1) { if (int.TryParse(imageSettings[1], out iconBG)) { popoutWindows[currentTabName].SetImage(col[0], new VirindiViewService.ACImage(iconImage)); popoutWindows[currentTabName].ChangeBtnInfo(col[0], true, ""); temp.Image = new VirindiViewService.ACImage(iconImage); temp.Image = new VirindiViewService.ACImage(iconBG); Util.WriteToChat("Adding Double Image"); if (imageSettings.Length == 3) { temp.Text = imageSettings[2]; } } else { VirindiViewService.ACImage tempImage = new VirindiViewService.ACImage(iconImage); popoutWindows[currentTabName].SetImage(col[0], tempImage); popoutWindows[currentTabName].ChangeBtnInfo(col[0], true, imageSettings[1]); temp.Image = tempImage; if (imageSettings.Length == 2) { temp.Text = imageSettings[1]; } } } } } else { temp.Text = col[1]; popoutWindows[currentTabName].ChangeBtnInfo(col[0], true, col[1]); } temp.Visible = true; //Creates the event handler for each button if (col[2].Contains("[player]")) { col[2] = col[2].Replace("[player]", Core.CharacterFilter.Name); } if (col[2].Contains("[loc]")) { col[2] = col[2].Replace("[loc]", Core.WorldFilter.GetByName(Core.CharacterFilter.Name).First.Coordinates().ToString()); } var regexItem = new Regex("^[a-zA-Z0-9 ]*$"); if (col[2].StartsWith("/") || regexItem.IsMatch(col[2])) { //if is a /tell command if (col.Length == 4 && col[2].StartsWith("/")) { EventHandler newEvent = new EventHandler((s, e) => ClickCommand(s, e, col[2] + "," + col[3])); EventHandler newPopupEvent = new EventHandler((s, e) => ClickCommand(s, e, col[2] + "," + col[3])); popoutWindows[currentTabName].SetEvent(col[0], newPopupEvent); if (regEvents.ContainsKey(col[0])) { //Unregister the event handler temp.Hit -= regEvents[col[0]]; //Store the event inside the dictionary so we can unregister it later regEvents[col[0]] = newEvent; } else { //Replace the event regEvents[col[0]] = newEvent; } //Register the event temp.Hit += newEvent; } //Handle / commands else if (col[2].StartsWith("/")) { EventHandler newEvent = new EventHandler((s, e) => ClickCommand(s, e, col[2])); EventHandler newPopupEvent = new EventHandler((s, e) => ClickCommand(s, e, col[2])); popoutWindows[currentTabName].SetEvent(col[0], newPopupEvent); if (regEvents.ContainsKey(col[0])) { //Unregister the event handler temp.Hit -= regEvents[col[0]]; //Store the event inside the dictionary so we can unregister it later regEvents[col[0]] = newEvent; } else { //Replace the event regEvents[col[0]] = newEvent; } //Register the event temp.Hit += newEvent; } //Handle raw text else { EventHandler newEvent = new EventHandler((s, e) => ClickCommand(s, e, chatLoc + " " + col[2])); EventHandler newPopupEvent = new EventHandler((s, e) => ClickCommand(s, e, chatLoc + " " + col[2])); popoutWindows[currentTabName].SetEvent(col[0], newPopupEvent); if (regEvents.ContainsKey(col[0])) { //Unregister the event handler temp.Hit -= regEvents[col[0]]; //Store the event inside the dictionary so we can unregister it later regEvents[col[0]] = newEvent; } else { //Replace the event regEvents[col[0]] = newEvent; } //Register the event temp.Hit += newEvent; } } else { EventHandler newEvent = new EventHandler((s, e) => ClickCommand(s, e, chatLoc + " " + col[2])); EventHandler newPopupEvent = new EventHandler((s, e) => ClickCommand(s, e, chatLoc + " " + col[2])); popoutWindows[currentTabName].SetEvent(col[0], newPopupEvent); if (regEvents.ContainsKey(col[0])) { //Unregister the event handler temp.Hit -= regEvents[col[0]]; //Store the event inside the dictionary so we can unregister it later regEvents[col[0]] = newEvent; } else { //Replace the event regEvents[col[0]] = newEvent; } //Register the event temp.Hit += newEvent; } } } } } } catch (Exception ex) { Util.WriteToChat("Error Loading Config at :" + line + "\n : Error: " + ex.Message + "\n" + ex.StackTrace); } } } else { Util.WriteToChat("Error Loading Config!"); } }
private void RenderChiefGearInspectPageSalvage() { try { lstNotifySalvage = new HudList(); lstNotifySalvageListRow = new HudList.HudListRowAccessor(); ChiefGearInspectPageSalvage.AddControl(lstNotifySalvage, new Rectangle(5, 5, 260, 300)); lstNotifySalvage.AddColumn(typeof(HudCheckBox), 5, null); lstNotifySalvage.AddColumn(typeof(HudStaticText), 130, null); lstNotifySalvage.AddColumn(typeof(HudStaticText), 60, null); lstNotifySalvage.AddColumn(typeof(HudStaticText), 1, null); HudStaticText lblSalvagelblName = new HudStaticText(); // lblChiefGearSwitch.FontHeight = nmenuFontHeight; lblSalvagelblName.Text = "Salvage Material: "; ChiefGearInspectPageSalvage.AddControl(lblSalvagelblName, new Rectangle(5,310, 250, 16)); lblSalvageName = new HudStaticText(); // lblChiefGearSwitch.FontHeight = nmenuFontHeight; lblSalvageName.Text = ""; ChiefGearInspectPageSalvage.AddControl(lblSalvageName, new Rectangle(5, 330, 250, 16)); HudStaticText lblSalvageString = new HudStaticText(); // lblChiefGearSwitch.FontHeight = nmenuFontHeight; lblSalvageString.Text= "Salvage Combine String: "; ChiefGearInspectPageSalvage.AddControl(lblSalvageString, new Rectangle(5, 360, 150, 16)); txtSalvageString = new HudTextBox(); txtSalvageString.Text = ""; ChiefGearInspectPageSalvage.AddControl(txtSalvageString, new Rectangle(5, 380, 150, 20)); btnUpdateSalvage = new HudButton(); btnUpdateSalvage.Text = "Update"; ChiefGearInspectPageSalvage.AddControl(btnUpdateSalvage, new Rectangle(5, 410, 90, 18)); SubscribeChiefGearInspectPageSalvage(); } catch (Exception ex) { LogError(ex); } }
private void 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 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 RenderArmorSettingsTabLayout() { try { xdocGenArmor = XDocument.Load(genArmorFilename); List<XElement> names = new List<XElement>(); IEnumerable<XElement> prenames = xdocGenArmor.Element("Objs").Descendants("Obj"); var lstsorted = from element in prenames orderby element.Element("ToonName").Value ascending select element; names.AddRange(lstsorted); ControlGroup myToonNames = new ControlGroup(); cboToonArmorName = new HudCombo(myToonNames); cboToonArmorName.Change += (sender,index) => cboToonArmorName_Change(sender,index); btnInventoryArmor = new HudButton(); btnInventoryArmor.Text = "Inventory Armor"; btnInventoryArmor.Hit += (sender,index) => btnInventoryArmor_Hit(sender,index); lstAllToonName = new List<string>(); try{ string name = ""; lstAllToonName.Add("None"); cboToonArmorName.AddItem("None", 0); foreach (XElement el in names) { name = el.Element("ToonName").Value; int i = 1; if (!lstAllToonName.Contains(name)) { try { lstAllToonName.Add(name); cboToonArmorName.AddItem(name, i); i++; } catch (Exception ex) { LogError(ex); } } } } catch (Exception ex) { LogError(ex); } lblToonSettingsNameInfo = new HudStaticText(); lblToonSettingsNameInfo.FontHeight = nmenuFontHeight; lblToonSettingsNameInfo.Text = "Name of toon whose armor to be studied:"; ArmorHudSettings.AddControl(btnInventoryArmor, new Rectangle(5, 30, 100, 20)); ArmorHudSettings.AddControl(lblToonSettingsNameInfo,new Rectangle(5,100,300,16)); ArmorHudSettings.AddControl(cboToonArmorName, new Rectangle(320, 100, 150, 16)); ArmorSettingsTab = true; xdocGenArmor = null; } catch (Exception ex) { LogError(ex); } }
public void AddButton(HudButton button, System.Drawing.Rectangle rect) { popoutTempLayout.AddControl(button, rect); }
private void DisposeArmorSettingsLayout() { try { if (!ArmorSettingsTab) { return; } btnInventoryArmor.Hit -= (sender, index) => btnInventoryArmor_Hit(sender, index); cboToonArmorName.Change -= (sender,index) => cboToonArmorName_Change(sender,index); btnInventoryArmor = null; lblToonArmorNameInfo.Text = ""; lblToonArmorNameInfo = null; cboToonArmorName = null; lstAllToonName = null; ArmorSettingsTab = false; } catch { } }
public void SetImage(string name, VirindiViewService.ACImage image) { HudButton temp = (HudButton)popoutview[name]; temp.Image = image; }
private void MaidCannibalizeEnable_Hit(object sender, EventArgs e) { try { WriteToChat("This will eat your stuff. You were warned."); if(MaidCannibalizeInventory == null) { MaidCannibalizeInventory = new HudButton(); MaidCannibalizeInventory.Text = "Cannibalize Inventory"; MaidTabLayout.AddControl(MaidCannibalizeInventory, new Rectangle(0,240,150,20)); MaidCannibalizeInventory.Hit += MaidCannibalizeInventory_Hit; } else { if(MaidCannibalizeInventory != null) {MaidCannibalizeInventory.Hit -= MaidCannibalizeInventory_Hit;} if(MaidCannibalizeInventory != null){MaidCannibalizeInventory.Dispose(); MaidCannibalizeInventory = null;} } }catch(Exception ex){LogError(ex);} }
public static void ViewInit() { VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser(); parser.ParseFromResource("mudsort.mainView.xml", out properties, out controls); View = new VirindiViewService.HudView(properties, controls); edtSourceContainer = View != null ? (HudTextBox)View["edtSourceContainer"] : new HudTextBox(); edtDestContainer = View != null ? (HudTextBox)View["edtDestContainer"] : new HudTextBox(); edtInsertion = View != null ? (HudTextBox)View["edtInsertion"] : new HudTextBox(); cmbObjClassFilters = View != null ? (HudCombo)View["cmbObjClassFilters"] : new HudCombo(new ControlGroup()); edtSortString = View != null ? (HudTextBox)View["edtSortString"] : new HudTextBox(); prgProgressBar = View != null ? (HudProgressBar)View["prgProgressBar"] : new HudProgressBar(); btnActivate = View != null ? (HudButton)View["btnActivate"] : new HudButton(); cmbSortListFilters = View != null ? (HudCombo)View["cmbSortListFilters"] : new HudCombo(new ControlGroup()); lstSortSettings = View != null ? (HudList)View["lstSortSettings"] : new HudList(); chkIdentifyOnLogin = View != null ? (HudCheckBox)View["chkIdentifyOnLogin"] : new HudCheckBox(); chkReverseSortList = View != null ? (HudCheckBox)View["chkReverseSortList"] : new HudCheckBox(); edtSavedSortString1 = View != null ? (HudTextBox)View["edtSavedSortString1"] : new HudTextBox(); edtSavedSortString2 = View != null ? (HudTextBox)View["edtSavedSortString2"] : new HudTextBox(); edtSavedSortString3 = View != null ? (HudTextBox)View["edtSavedSortString3"] : new HudTextBox(); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnSourceContainer"], "Sets the source Backpack/Person/Chest for sorting to your current Selection"); VirindiViewService.TooltipSystem.AssociateTooltip(edtSourceContainer, "The Backpack/Person/Chest the items will move from when sorted (Default = Your Character ID)"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnDestContainer"], "Sets the destination Backpack/Person/Chest for sorting to your current Selection"); VirindiViewService.TooltipSystem.AssociateTooltip(edtDestContainer, "The Backpack/Person/Chest the items will move to when sorted (Default = Your Character ID)"); VirindiViewService.TooltipSystem.AssociateTooltip(edtInsertion, "The slot # you wish to start inserting at when sorting (Default = 0)"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySortString"], "Copies the Sort String below to your clipboard"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSortString"], "Pastes the contents of your clipboard into the box below"); VirindiViewService.TooltipSystem.AssociateTooltip(edtSortString, "The Sort String to use when sorting. (Use Build tab to create a new one)"); VirindiViewService.TooltipSystem.AssociateTooltip(cmbObjClassFilters, "Limit sorting to specific types of items"); VirindiViewService.TooltipSystem.AssociateTooltip(btnActivate, "Begins the sorting process. Press again to cancel."); VirindiViewService.TooltipSystem.AssociateTooltip(cmbSortListFilters, "Limit filter based on key type"); VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderCode"], "Sort Flag Code (Used in Sort String)"); VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderName"], "Sort Flag Name"); VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderUp"], "Increase Sort Flag Priority"); VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderDown"], "Lower Sort Flag Priority"); VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderAdd"], "Add/Remove Sort Flag"); VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderOrder"], "Change Sort Flag Order (Trailing - in Sort String)"); VirindiViewService.TooltipSystem.AssociateTooltip(View["listHeaderKey"], "Sort Flag Key Type"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPropertyDump"], "Dump ALL properties of Selected Item to chat"); VirindiViewService.TooltipSystem.AssociateTooltip(View["edtSavedSortString1"], "Saved Sort String #1"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySavedSortString1"], "Copy Saved Sort String #1 to clipboard"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSavedSortString1"], "Paste contents of Clipboard into Saved Sort String #1"); VirindiViewService.TooltipSystem.AssociateTooltip(View["edtSavedSortString2"], "Saved Sort String #2"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySavedSortString2"], "Copy Saved Sort String #2 to clipboard"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSavedSortString2"], "Paste contents of Clipboard into Saved Sort String #2"); VirindiViewService.TooltipSystem.AssociateTooltip(View["edtSavedSortString3"], "Saved Sort String #3"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnCopySavedSortString3"], "Copy Saved Sort String #3 to clipboard"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnPasteSavedSortString3"], "Paste contents of Clipboard into Saved Sort String #3"); VirindiViewService.TooltipSystem.AssociateTooltip(View["btnSaveSettings"], "Save all settings"); if (View != null) { View.UserResizeable = true; chkIdentifyOnLogin.Checked = Properties.Settings.Default.IdentifyOnLogin; chkReverseSortList.Checked = Properties.Settings.Default.ReverseSortList; edtSortString.Text = Properties.Settings.Default.DefaultSortString; edtSavedSortString1.Text = Properties.Settings.Default.SavedSortString1; edtSavedSortString2.Text = Properties.Settings.Default.SavedSortString2; edtSavedSortString3.Text = Properties.Settings.Default.SavedSortString3; View["btnSourceContainer"].Hit += (s, e) => { PluginCore.getInstance().setSourceContainer(); }; View["btnDestContainer"].Hit += (s, e) => { PluginCore.getInstance().setDestContainer(); }; View["edtInsertion"].KeyEvent += (s, e) => { int slot = 0; try { slot = Convert.ToInt32(((HudTextBox)View["edtInsertion"]).Text); } catch (Exception ex) { Util.LogError(ex); } PluginCore.getInstance().containerDestSlot = slot; }; View["edtSortString"].KeyEvent += (s, e) => { try { Properties.Settings.Default.DefaultSortString = MainView.edtSortString.Text; Properties.Settings.Default.Save(); PluginCore.getInstance().createSortFlagListFromString(((HudTextBox)View["edtSortString"]).Text); PluginCore.getInstance().rebuildLstSortSettings(); } catch (Exception ex) { Util.LogError(ex); } }; View["btnCopySortString"].Hit += (s, e) => { try { System.Windows.Forms.Clipboard.SetText(edtSortString.Text); }catch (Exception ex) { Util.LogError(ex); } }; View["btnPasteSortString"].Hit += (s, e) => { edtSortString.Text = System.Windows.Forms.Clipboard.GetText(); PluginCore.getInstance().createSortFlagListFromString(edtSortString.Text); PluginCore.getInstance().rebuildLstSortSettings(); }; View["btnActivate"].Hit += (s, e) => { if (((HudButton)View["btnActivate"]).Text.Equals("Cancel")) { ((HudButton)View["btnActivate"]).Text = "Activate"; PluginCore.getInstance().cancel(); } else { ((HudButton)View["btnActivate"]).Text = "Cancel"; PluginCore.getInstance().activate(); } }; ((HudCombo)View["cmbSortListFilters"]).Change += (s, e) => { PluginCore.getInstance().createSortFlagListFromString(edtSortString.Text); PluginCore.getInstance().rebuildLstSortSettings(); }; ((HudList)View["lstSortSettings"]).Click += new HudList.delClickedControl(lstSortSettings_Selected); ((HudCheckBox)View["chkIdentifyOnLogin"]).Change += (s, e) => { Properties.Settings.Default.IdentifyOnLogin = ((HudCheckBox)View["chkIdentifyOnLogin"]).Checked; Properties.Settings.Default.Save(); }; ((HudCheckBox)View["chkReverseSortList"]).Change += (s, e) => { Properties.Settings.Default.ReverseSortList = ((HudCheckBox)View["chkReverseSortList"]).Checked; Properties.Settings.Default.Save(); }; View["btnPropertyDump"].Hit += (s, e) => { try { foreach (SortFlag sf in SortFlag.sortedFlagList.Values) { sf.propertyDumpSelection(); } } catch (Exception ex) { Util.LogError(ex); } }; edtSavedSortString1.KeyEvent += (s, e) => { try { Properties.Settings.Default.SavedSortString1 = edtSavedSortString1.Text; Properties.Settings.Default.Save(); } catch (Exception ex) { Util.LogError(ex); } }; edtSavedSortString2.KeyEvent += (s, e) => { try { Properties.Settings.Default.SavedSortString2 = edtSavedSortString2.Text; Properties.Settings.Default.Save(); } catch (Exception ex) { Util.LogError(ex); } }; edtSavedSortString3.KeyEvent += (s, e) => { try { Properties.Settings.Default.SavedSortString3 = edtSavedSortString3.Text; Properties.Settings.Default.Save(); } catch (Exception ex) { Util.LogError(ex); } }; View["btnCopySavedSortString1"].Hit += (s, e) => { try { System.Windows.Forms.Clipboard.SetText(edtSavedSortString1.Text); } catch (Exception ex) { Util.LogError(ex); } }; View["btnPasteSavedSortString1"].Hit += (s, e) => { try { edtSavedSortString1.Text = System.Windows.Forms.Clipboard.GetText(); } catch (Exception ex) { Util.LogError(ex); } }; View["btnCopySavedSortString2"].Hit += (s, e) => { try { System.Windows.Forms.Clipboard.SetText(edtSavedSortString2.Text); } catch (Exception ex) { Util.LogError(ex); } }; View["btnPasteSavedSortString2"].Hit += (s, e) => { try { edtSavedSortString2.Text = System.Windows.Forms.Clipboard.GetText(); } catch (Exception ex) { Util.LogError(ex); } }; View["btnCopySavedSortString3"].Hit += (s, e) => { try { System.Windows.Forms.Clipboard.SetText(edtSavedSortString3.Text); } catch (Exception ex) { Util.LogError(ex); } }; View["btnPasteSavedSortString3"].Hit += (s, e) => { try { edtSavedSortString3.Text = System.Windows.Forms.Clipboard.GetText(); } catch (Exception ex) { Util.LogError(ex); } }; View["btnSaveSettings"].Hit += (s, e) => { try { Properties.Settings.Default.Save(); Util.WriteToChat("Settings Saved!"); } catch (Exception ex) { Util.LogError(ex); } }; } }