private void _processPlayerAdd(Player player) { bool enemy = player.Enemy; HudList playersView = enemy ? _enemyListView : _friendlyListView; int icon = enemy ? EnemyIcon : FriendlyIcon; D3DObj playerIcon = CoreManager.Current.D3DService.MarkObjectWithShape(player.Id, D3DShape.Sphere, Color.Red.ToArgb()); playerIcon.Scale(enemy ? 0.3f : 0.3f); playerIcon.Anchor(player.Id, 0.2f, 0.0f, 0.0f, 2.5f); playerIcon.Color = enemy ? Color.FromArgb(200, Color.Red).ToArgb() : Color.FromArgb(220, Color.LightBlue).ToArgb(); playerIcon.OrientToCamera(true); _playerIcons.Add(_playerIconFactory(player.Id, playerIcon)); HudList.HudListRowAccessor row = playersView.AddRow(); ((HudPictureBox)row[0]).Image = icon; ((HudStaticText)row[1]).Text = player.Name; ((HudStaticText)row[1]).TextColor = enemy ? Color.Red : Color.LightBlue; if (!enemy) { ((HudStaticText)row[1]).TextColor = Color.LightGreen; ((HudPictureBox)row[2]).Image = 100670841; ((HudPictureBox)row[3]).Image = 100670842; } }
public AllQuestsView(QuestManager questManager, HudList hudList, QuestFlagRepository questFlagRepository, PlayerData playerData, Action <Quest> thing, HudView questView) : base(hudList) { _questManager = questManager; _questFlagRepository = questFlagRepository; _playerData = playerData; _questClickCallback = thing; }
void CharacterFilter_LoginComplete(object sender, EventArgs e) { try { hudView = new HudView("Mag-HUD", 200, 80, new ACImage(Color.Black), false); hudView.Visible = true; hudView.UserMinimizable = false; hudView.ShowIcon = false; hudView.UserResizeable = true; //View.ClickThrough = true; hudView.Theme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent"); hudView.LoadUserSettings(); hudListHead = new HudList(); hudView.Controls.HeadControl = hudListHead; hudListHead.Padding = 0; // Default: 1 hudListHead.WPadding = 0; // Default: 7 hudListHead.WPaddingOuter = 0; // Default: 3 hudListHead.AddColumn(typeof(HudPictureBox), 16, null); hudListHead.AddColumn(typeof(HudStaticText), 999, null); HudList.HudListRowAccessor newRow = hudListHead.AddRow(); ((HudPictureBox)newRow[0]).Image = new ACImage(13107); // Major Mana Stone //((HudStaticText)newRow[1]).Text = "Cool Stuff Here 0 1 2 3 45 6 7 8sdf 8asdf 8asdf8asdf8asdf"; hudUpdateTimer.Interval = 1000; hudUpdateTimer.Start(); } catch (Exception ex) { Debug.LogException(ex); } }
public AccountServerCharacterGUI(MainView mainView) { try { loginText = mainView.LoginText; mainView.LoginAdd.Hit += new EventHandler(LoginAdd_Hit); loginList = mainView.LoginList; loginList.Click += new HudList.delClickedControl(loginList_Click); loginCompleteText = mainView.LoginCompleteText; mainView.LoginCompleteAdd.Hit += new EventHandler(LoginCompleteAdd_Hit); loginCompleteList = mainView.LoginCompleteList; loginCompleteList.Click += new HudList.delClickedControl(loginCompleteList_Click); periodicCommandText = mainView.PeriodicCommandText; periodicCommandInterval = mainView.PeriodicCommandInterval; periodicCommandOffset = mainView.PeriodicCommandOffset; mainView.PeriodicCommandAdd.Hit += new EventHandler(PeriodicCommandAdd_Hit); periodicCommandList = mainView.PeriodicCommandList; periodicCommandList.Click += new HudList.delClickedControl(periodicCommandList_Click); CoreManager.Current.CharacterFilter.Login += new EventHandler<Decal.Adapter.Wrappers.LoginEventArgs>(CharacterFilter_Login); } catch (Exception ex) { Debug.LogException(ex); } }
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 CorpseTrackerGUI(ITracker<TrackedCorpse> tracker, HudList hudList) { try { this.tracker = tracker; this.hudList = hudList; hudList.ClearColumnsAndRows(); hudList.AddColumn(typeof(HudStaticText), 53, null); hudList.AddColumn(typeof(HudStaticText), 162, null); hudList.AddColumn(typeof(HudStaticText), 100, null); hudList.AddColumn(typeof(HudStaticText), 0, null); HudList.HudListRowAccessor newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Time"; ((HudStaticText)newRow[1]).Text = "Name"; ((HudStaticText)newRow[2]).Text = "Coords"; ((HudStaticText)newRow[3]).Text = "Id"; tracker.ItemAdded += new Action<TrackedCorpse>(corpseTracker_ItemAdded); tracker.ItemChanged += new Action<TrackedCorpse>(corpseTracker_ItemChanged); tracker.ItemRemoved += new Action<TrackedCorpse>(corpseTracker_ItemRemoved); hudList.Click += new HudList.delClickedControl(hudList_Click); } catch (Exception ex) { Debug.LogException(ex); } }
public TinkeringToolsView(MainView mainView) { try { tinkeringMaterial = mainView.TinkeringMaterial; tinkeringMinimumPercent = mainView.TinkeringMinimumPercent; tinkeringTargetTotalTinks = mainView.TinkeringTargetTotalTinks; tinkeringList = mainView.TinkeringList; mainView.TinkeringAddSelectedItem.Hit += new EventHandler(TinkeringAddSelectedItem_Hit); mainView.TinkeringMaterial.AddItem("Brass", null); mainView.TinkeringMaterial.AddItem("Granite", null); mainView.TinkeringMaterial.AddItem("Green Garnet", null); mainView.TinkeringMaterial.AddItem("Iron", null); mainView.TinkeringMaterial.AddItem("Mahogany", null); mainView.TinkeringMaterial.AddItem("Steel", null); mainView.TinkeringMaterial.AddItem("Velvet", null); mainView.TinkeringMinimumPercent.Text = "100"; mainView.TinkeringStart.Hit += new EventHandler(TinkeringStart_Hit); mainView.TinkeringStop.Hit += new EventHandler(TinkeringStop_Hit); mainView.TinkeringList.Click += new VirindiViewService.Controls.HudList.delClickedControl(TinkeringList_Click); CoreManager.Current.WorldFilter.ChangeObject += new EventHandler<ChangeObjectEventArgs>(WorldFilter_ChangeObject); CoreManager.Current.EchoFilter.ServerDispatch += new EventHandler<NetworkMessageEventArgs>(EchoFilter_ServerDispatch); timer.Interval = 1000; timer.Tick += new EventHandler(timer_Tick); } catch (Exception ex) { Debug.LogException(ex); } }
public CorpseTrackerGUI(IItemTracker <TrackedCorpse> tracker, HudList hudList) { try { this.tracker = tracker; this.hudList = hudList; hudList.ClearColumnsAndRows(); hudList.AddColumn(typeof(HudStaticText), 53, null); hudList.AddColumn(typeof(HudStaticText), 162, null); hudList.AddColumn(typeof(HudStaticText), 100, null); hudList.AddColumn(typeof(HudStaticText), 0, null); HudList.HudListRowAccessor newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Time"; ((HudStaticText)newRow[1]).Text = "Name"; ((HudStaticText)newRow[2]).Text = "Coords"; ((HudStaticText)newRow[3]).Text = "Id"; tracker.ItemsAdded += new Action <System.Collections.Generic.ICollection <TrackedCorpse> >(corpseTracker_ItemsAdded); tracker.ItemChanged += new Action <TrackedCorpse>(corpseTracker_ItemChanged); tracker.ItemRemoved += new Action <TrackedCorpse>(corpseTracker_ItemRemoved); hudList.Click += new HudList.delClickedControl(hudList_Click); } catch (Exception ex) { Debug.LogException(ex); } }
public PlayerTrackerGUI(ITracker <TrackedPlayer> tracker, HudList hudList) { try { this.tracker = tracker; this.hudList = hudList; hudList.ClearColumnsAndRows(); hudList.AddColumn(typeof(HudStaticText), 75, null); hudList.AddColumn(typeof(HudStaticText), 140, null); hudList.AddColumn(typeof(HudStaticText), 100, null); hudList.AddColumn(typeof(HudStaticText), 0, null); HudList.HudListRowAccessor newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Time"; ((HudStaticText)newRow[1]).Text = "Name"; ((HudStaticText)newRow[2]).Text = "Coords"; ((HudStaticText)newRow[3]).Text = "Id"; tracker.ItemAdded += new Action <TrackedPlayer>(playerTracker_ItemAdded); tracker.ItemChanged += new Action <TrackedPlayer>(playerTracker_ItemChanged); tracker.ItemRemoved += new Action <TrackedPlayer>(playerTracker_ItemRemoved); hudList.Click += new HudList.delClickedControl(hudList_Click); } catch (Exception ex) { Debug.LogException(ex); } }
public TinkeringToolsView(MainView mainView) { try { tinkeringMaterial = mainView.TinkeringMaterial; tinkeringMinimumPercent = mainView.TinkeringMinimumPercent; tinkeringTargetTotalTinks = mainView.TinkeringTargetTotalTinks; tinkeringList = mainView.TinkeringList; mainView.TinkeringAddSelectedItem.Hit += new EventHandler(TinkeringAddSelectedItem_Hit); mainView.TinkeringMaterial.AddItem("Brass", null); mainView.TinkeringMaterial.AddItem("Granite", null); mainView.TinkeringMaterial.AddItem("Green Garnet", null); mainView.TinkeringMaterial.AddItem("Iron", null); mainView.TinkeringMaterial.AddItem("Mahogany", null); mainView.TinkeringMaterial.AddItem("Steel", null); mainView.TinkeringMaterial.AddItem("Velvet", null); mainView.TinkeringMinimumPercent.Text = "100"; mainView.TinkeringStart.Hit += new EventHandler(TinkeringStart_Hit); mainView.TinkeringStop.Hit += new EventHandler(TinkeringStop_Hit); mainView.TinkeringList.Click += new VirindiViewService.Controls.HudList.delClickedControl(TinkeringList_Click); CoreManager.Current.WorldFilter.ChangeObject += new EventHandler <ChangeObjectEventArgs>(WorldFilter_ChangeObject); CoreManager.Current.EchoFilter.ServerDispatch += new EventHandler <NetworkMessageEventArgs>(EchoFilter_ServerDispatch); timer.Interval = 1000; timer.Tick += new EventHandler(timer_Tick); } catch (Exception ex) { Debug.LogException(ex); } }
private void _processListView_Clicked(HudList listView, int row, int col) { try { HudList.HudListRowAccessor acc = listView[row]; string name = ((HudStaticText)acc[1]).Text; Player player = _playerManager.GetByName(name); if (player == null) { return; } _globals.Core.Actions.SelectItem(player.Id); if (player.Enemy) { return; } if (col == 2) { WorldObjectService.CastHeal(player.Id); } if (col == 3) { WorldObjectService.CastSpell(2082, player.Id); } } catch (Exception ex) { _logger.Error(ex); } }
public ServerGUI(MainView mainView) { try { loginText = mainView.ServerLoginText; mainView.ServerLoginAdd.Hit += new EventHandler(LoginAdd_Hit); loginList = mainView.ServerLoginList; loginList.Click += new HudList.delClickedControl(loginList_Click); loginCompleteText = mainView.ServerLoginCompleteText; mainView.ServerLoginCompleteAdd.Hit += new EventHandler(LoginCompleteAdd_Hit); loginCompleteList = mainView.ServerLoginCompleteList; loginCompleteList.Click += new HudList.delClickedControl(loginCompleteList_Click); periodicCommandText = mainView.ServerPeriodicCommandText; periodicCommandInterval = mainView.ServerPeriodicCommandInterval; periodicCommandOffset = mainView.ServerPeriodicCommandOffset; mainView.ServerPeriodicCommandAdd.Hit += new EventHandler(PeriodicCommandAdd_Hit); periodicCommandList = mainView.ServerPeriodicCommandList; periodicCommandList.Click += new HudList.delClickedControl(periodicCommandList_Click); CoreManager.Current.CharacterFilter.Login += new EventHandler <Decal.Adapter.Wrappers.LoginEventArgs>(CharacterFilter_Login); } catch (Exception ex) { Debug.LogException(ex); } }
public FavoriteQuestsView(QuestManager questManager, HudList hudList, QuestFlagRepository questFlagRepository, PlayerData playerData, Action <Quest> thing, HudView hudView) : base(hudList) { _questManager = questManager; _questFlagRepository = questFlagRepository; _playerData = playerData; _questClickCallback = thing; _hudView = hudView; _showCompleted = (HudCheckBox)_hudView["QuestFavoritesShowCompleted"]; }
public InventoryTrackerGUI(IItemTracker <TrackedProfitLoss> profitLossTracker, IItemTracker <TrackedInventory> inventoryTracker, HudList hudList) { try { this.profitLossTracker = profitLossTracker; this.inventoryTracker = inventoryTracker; this.hudList = hudList; hudList.ClearColumnsAndRows(); hudList.AddColumn(typeof(HudPictureBox), 16, null); hudList.AddColumn(typeof(HudStaticText), 55, null); hudList.AddColumn(typeof(HudStaticText), 35, null); hudList.AddColumn(typeof(HudStaticText), 65, null); hudList.AddColumn(typeof(HudStaticText), 65, null); hudList.AddColumn(typeof(HudStaticText), 40, null); HudList.HudListRowAccessor newRow = hudList.AddRow(); ((HudStaticText)newRow[3]).Text = "MMD/h ~5m"; ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[4]).Text = "MMD/h ~1h"; ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[1]).Text = "Peas"; newRow = hudList.AddRow(); ((HudStaticText)newRow[1]).Text = "Comps"; newRow = hudList.AddRow(); ((HudStaticText)newRow[1]).Text = "Salvage"; newRow = hudList.AddRow(); ((HudStaticText)newRow[1]).Text = "Net Profit"; hudList.AddRow(); newRow = hudList.AddRow(); ((HudStaticText)newRow[2]).Text = "Count"; ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Avg/h ~5m"; ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[4]).Text = "Avg/h ~1h"; ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[5]).Text = "(Hrs)"; ((HudStaticText)newRow[5]).TextAlignment = VirindiViewService.WriteTextFormats.Right; profitLossTracker.ItemsAdded += new Action <ICollection <TrackedProfitLoss> >(profitLossTracker_ItemsAdded); profitLossTracker.ItemChanged += new Action <TrackedProfitLoss>(profitLossTracker_ItemChanged); profitLossTracker.ItemRemoved += new Action <TrackedProfitLoss>(profitLossTracker_ItemRemoved); inventoryTracker.ItemsAdded += new Action <ICollection <TrackedInventory> >(consumableTracker_ItemsAdded); inventoryTracker.ItemChanged += new Action <TrackedInventory>(consumableTracker_ItemChanged); inventoryTracker.ItemRemoved += new Action <TrackedInventory>(consumableTracker_ItemRemoved); } catch (Exception ex) { Debug.LogException(ex); } }
public CombatTrackerGUI(CombatTracker combatTracker, HudList monsterList, HudList damageInfoList) { try { if (combatTracker == null) { return; } this.combatTracker = combatTracker; this.monsterList = monsterList; combatTrackerGUIInfo = new CombatTrackerGUIInfo(damageInfoList); monsterList.ClearColumnsAndRows(); // Each character is a max of 6 pixels wide monsterList.AddColumn(typeof(HudStaticText), 5, null); monsterList.AddColumn(typeof(HudStaticText), 111, null); monsterList.AddColumn(typeof(HudStaticText), 37, null); monsterList.AddColumn(typeof(HudStaticText), 55, null); // This cannot go any smaller without pruning text monsterList.AddColumn(typeof(HudStaticText), 77, null); HudList.HudListRowAccessor newRow = monsterList.AddRow(); ((HudStaticText)newRow[2]).Text = "KB's"; ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Dmg Rcvd"; ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[4]).Text = "Dmg Givn"; ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = monsterList.AddRow(); ((HudStaticText)newRow[0]).Text = "*"; ((HudStaticText)newRow[1]).Text = "All"; ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right; selectedRow = 1; monsterList.Click += new HudList.delClickedControl(monsterList_Click); combatTracker.InfoCleared += new Action <bool>(combatTracker_InfoCleared); combatTracker.StatsLoaded += new Action <List <CombatInfo> >(combatTracker_StatsLoaded); combatTracker.CombatInfoUpdated += new Action <CombatInfo>(combatTracker_CombatInfoUpdated); combatTracker.AetheriaInfoUpdated += new Action <AetheriaInfo>(combatTracker_AetheriaInfoUpdated); combatTracker.CloakInfoUpdated += new Action <CloakInfo>(combatTracker_CloakInfoUpdated); } catch (Exception ex) { Debug.LogException(ex); } }
public CombatTrackerGUI(CombatTracker combatTracker, HudList monsterList, HudList damageInfoList) { try { if (combatTracker == null) return; this.combatTracker = combatTracker; this.monsterList = monsterList; combatTrackerGUIInfo = new CombatTrackerGUIInfo(damageInfoList); monsterList.ClearColumnsAndRows(); // Each character is a max of 6 pixels wide monsterList.AddColumn(typeof(HudStaticText), 5, null); monsterList.AddColumn(typeof(HudStaticText), 111, null); monsterList.AddColumn(typeof(HudStaticText), 37, null); monsterList.AddColumn(typeof(HudStaticText), 55, null); // This cannot go any smaller without pruning text monsterList.AddColumn(typeof(HudStaticText), 77, null); HudList.HudListRowAccessor newRow = monsterList.AddRow(); ((HudStaticText)newRow[2]).Text = "KB's"; ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Dmg Rcvd"; ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[4]).Text = "Dmg Givn"; ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = monsterList.AddRow(); ((HudStaticText)newRow[0]).Text = "*"; ((HudStaticText)newRow[1]).Text = "All"; ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[4]).TextAlignment = VirindiViewService.WriteTextFormats.Right; selectedRow = 1; monsterList.Click += new HudList.delClickedControl(monsterList_Click); combatTracker.InfoCleared += new Action<bool>(combatTracker_InfoCleared); combatTracker.StatsLoaded += new Action<List<CombatInfo>>(combatTracker_StatsLoaded); combatTracker.CombatInfoUpdated += new Action<CombatInfo>(combatTracker_CombatInfoUpdated); combatTracker.AetheriaInfoUpdated += new Action<AetheriaInfo>(combatTracker_AetheriaInfoUpdated); combatTracker.CloakInfoUpdated += new Action<CloakInfo>(combatTracker_CloakInfoUpdated); } catch (Exception ex) { Debug.LogException(ex); } }
void AddOption(HudList hudList, Setting <bool> setting) { HudList.HudListRowAccessor newRow = hudList.AddRow(); ((HudCheckBox)newRow[0]).Checked = setting.Value; setting.Changed += obj => { ((HudCheckBox)newRow[0]).Checked = obj.Value; }; ((HudCheckBox)newRow[0]).Change += (s, e) => { try { setting.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } }; ((HudStaticText)newRow[1]).Text = setting.Description; }
public InventoryToolsView(MainView mainView, InventoryExporter inventoryExporter) { try { inventorySearch = mainView.InventorySearch; inventoryList = mainView.InventoryList; inventoryItemText = mainView.InventoryItemText; mainView.ClipboardWornEquipment.Hit += (s2, e2) => { try { inventoryExporter.ExportToClipboard(InventoryExporter.ExportGroups.WornEquipment); } catch (Exception ex) { Debug.LogException(ex); } }; mainView.ClipboardInventoryInfo.Hit += (s2, e2) => { try { inventoryExporter.ExportToClipboard(InventoryExporter.ExportGroups.Inventory); } catch (Exception ex) { Debug.LogException(ex); } }; inventorySearch.Change += new EventHandler(InventorySearch_Change); inventoryList.Click += new VirindiViewService.Controls.HudList.delClickedControl(InventoryList_Click); } catch (Exception ex) { Debug.LogException(ex); } }
private void RemoveWorldObject(int id, HudList hl) { try { for (int i = hl.RowCount - 1; i >= 0; i--) { HudList.HudListRowAccessor hudListRowAccessor = hl[i]; HudStaticText hudStaticText = (HudStaticText)hudListRowAccessor[5]; if (Convert.ToInt32(hudStaticText.Text) == id) { hl.RemoveRow(i); } } } catch (Exception ex) { Repo.RecordException(ex); } }
public void Init() { try { _logger.Info("Init()"); CreateFromXMLResource("Commander.Lib.Views.MainView.mainView.xml"); _debug = (HudCheckBox)view["DebugCheckBox"]; _logOnDeath = (HudCheckBox)view["LogOnDeath"]; _logOnVitae = (HudCheckBox)view["LogOnVitae"]; _vitaeLimit = (HudTextBox)view["VitaeLimit"]; _relog = (HudCheckBox)view["Relog"]; _relogDuration = (HudTextBox)view["RelogDuration"]; _enemyListView = (HudList)view["EnemyList"]; _friendlyListView = (HudList)view["FriendlyList"]; _enemySounds = (HudCheckBox)view["EnemySounds"]; _friendlySounds = (HudCheckBox)view["FriendlySounds"]; _friendlyIcon = (HudCheckBox)view["FriendlyIcon"]; _enemyIcon = (HudCheckBox)view["EnemyIcon"]; _settings = _settingsManager.Settings; _debug.Checked = _settings.Debug; _logOnDeath.Checked = _settings.LogOnDeath; _logOnVitae.Checked = _settings.LogOnVitae; _vitaeLimit.Text = _settings.VitaeLimit.ToString(); _relog.Checked = _settings.Relog; _relogDuration.Text = _settings.RelogDuration.ToString(); _enemySounds.Checked = _settings.EnemySounds; _friendlySounds.Checked = _settings.FriendlySounds; _friendlyIcon.Checked = _settings.FriendlyIcon; _enemyIcon.Checked = _settings.EnemyIcon; foreach (KeyValuePair <int, Player> entry in _playerManager.PlayersInstance()) { _processPlayerAdd(entry.Value); } _debuffObjects = new List <DebuffObj>(); _playerIcons = new List <PlayerIcon>(); RegisterEvents(); } catch (Exception ex) { _logger.Error(ex); } }
private void AlterCorpseTracker() { try { CorpseHudList.Click -= CorpseHudList_Click; CorpseHudList.Dispose(); CorpseHudList = new HudList(); CorpseHudTabLayout.AddControl(CorpseHudList, new Rectangle(0,0, mGeneralSettings.GearWindowSettings.CorpseHudWidth,mGeneralSettings.GearWindowSettings.CorpseHudHeight)); CorpseHudList.ControlHeight = 16; CorpseHudList.AddColumn(typeof(HudPictureBox), 16, null); CorpseHudList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.CorpseHudWidth - 60, null); CorpseHudList.AddColumn(typeof(HudPictureBox), 16, null); CorpseHudList.AddColumn(typeof(HudStaticText), 1, null); CorpseHudList.Click += CorpseHudList_Click; UpdateCorpseHud(); }catch(Exception ex){LogError(ex);} }
void CharacterFilter_Logoff(object sender, Decal.Adapter.Wrappers.LogoffEventArgs e) { try { hudUpdateTimer.Stop(); if (hudView != null) { hudView.Dispose(); hudView = null; } if (hudListHead != null) { hudListHead.Dispose(); hudListHead = null; } } catch (Exception ex) { Debug.LogException(ex); } }
public ChatLoggerGUI(ILogger <LoggedChat> logger, Settings.SettingsManager.ChatLogger.Group settings, HudList hudList) { try { this.logger = logger; this.settings = settings; this.hudList = hudList; hudList.ClearColumnsAndRows(); hudList.AddColumn(typeof(HudStaticText), 75, null); hudList.AddColumn(typeof(HudStaticText), 500, null); HudList.HudListRowAccessor newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Time"; ((HudStaticText)newRow[1]).Text = "Message"; logger.LogItem += new Action <LoggedChat>(chatLogger_LogItem); } catch (Exception ex) { Debug.LogException(ex); } }
private void _processPlayerRemove(Player player) { PlayerIcon playerIcon = _playerIcons.Find(icon => icon.Id == player.Id); if (playerIcon != null) { playerIcon.Icon.Dispose(); } _playerIcons.Remove(playerIcon); HudList playersView = player.Enemy ? _enemyListView : _friendlyListView; for (int i = 0; i < playersView.RowCount; i++) { HudStaticText name = (HudStaticText)playersView[i][1]; if (name.Text == player.Name) { playersView.RemoveRow(i); } } }
private void AlterLandscapeHud() { try { LandscapeHudList.Click -= LandscapeHudList_Click; LandscapeHudList.Dispose(); LandscapeHudList = new HudList(); LandscapeHudTabLayout.AddControl(LandscapeHudList, new Rectangle(0,0, mGeneralSettings.GearWindowSettings.LandscapeHudWidth,mGeneralSettings.GearWindowSettings.LandscapeHudHeight)); LandscapeHudList.ControlHeight = 16; LandscapeHudList.AddColumn(typeof(HudPictureBox), 14, null); LandscapeHudList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.LandscapeHudWidth - 60, null); LandscapeHudList.AddColumn(typeof(HudPictureBox), 14, null); LandscapeHudList.AddColumn(typeof(HudStaticText), 1, null); LandscapeHudList.Click -= LandscapeHudList_Click; LandscapeHudList.Click += LandscapeHudList_Click; UpdateLandscapeHud(); }catch(Exception ex){LogError(ex);} }
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);} }
public ConsumableTrackerGUI(ITracker<TrackedConsumable> tracker, HudList hudList) { try { this.tracker = tracker; this.hudList = hudList; hudList.ClearColumnsAndRows(); /*consumableList.AddColumn(typeof(HudStaticText), 100, null); consumableList.AddColumn(typeof(HudStaticText), 115, null); consumableList.AddColumn(typeof(HudStaticText), 100, null); HudList.HudListRowAccessor newRow = consumableList.AddRow(); ((HudStaticText)newRow[0]).Text = "Time"; ((HudStaticText)newRow[1]).Text = "Name"; ((HudStaticText)newRow[2]).Text = "Coords";*/ tracker.ItemAdded += new Action<TrackedConsumable>(consumableTracker_ItemAdded); tracker.ItemChanged += new Action<TrackedConsumable>(consumableTracker_ItemChanged); tracker.ItemRemoved += new Action<TrackedConsumable>(consumableTracker_ItemRemoved); } catch (Exception ex) { Debug.LogException(ex); } }
public ConsumableTrackerGUI(ITracker <TrackedConsumable> tracker, HudList hudList) { try { this.tracker = tracker; this.hudList = hudList; hudList.ClearColumnsAndRows(); /*consumableList.AddColumn(typeof(HudStaticText), 100, null); * consumableList.AddColumn(typeof(HudStaticText), 115, null); * consumableList.AddColumn(typeof(HudStaticText), 100, null); * * HudList.HudListRowAccessor newRow = consumableList.AddRow(); * ((HudStaticText)newRow[0]).Text = "Time"; * ((HudStaticText)newRow[1]).Text = "Name"; * ((HudStaticText)newRow[2]).Text = "Coords";*/ tracker.ItemAdded += new Action <TrackedConsumable>(consumableTracker_ItemAdded); tracker.ItemChanged += new Action <TrackedConsumable>(consumableTracker_ItemChanged); tracker.ItemRemoved += new Action <TrackedConsumable>(consumableTracker_ItemRemoved); } catch (Exception ex) { Debug.LogException(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 UpdateWorldObject(WorldObject obj, HudList hl) { try { if (obj.Container != 0) { RemoveWorldObject(obj.Id, hl); } else { for (int i = 0; i < hl.RowCount; i++) { HudList.HudListRowAccessor hudListRowAccessor = hl[i]; HudStaticText hudStaticText = (HudStaticText)hudListRowAccessor[5]; if (Convert.ToInt32(hudStaticText.Text) == obj.Id) { bool flag = false; if (!flag && hl.Equals(MainView.CorpseList) && obj.ObjectClass == ObjectClass.Corpse) { flag = true; } if (!flag && hl.Equals(MainView.PortalList) && obj.ObjectClass == ObjectClass.Portal) { flag = true; } if (!flag && obj.ObjectClass == ObjectClass.Player) { if (hl.Equals(MainView.GuildList) && obj.Id == lib.MyCore.CharacterFilter.Id) { flag = true; } else if (hl.Equals(MainView.GuildList) && IsFriend(obj)) { flag = true; } else if (hl.Equals(MainView.PlayerList) && IsEnemy(obj)) { flag = true; } else if (hl.Equals(MainView.GuildList) && obj.Values(LongValueKey.Monarch) == lib.moncheck && obj.Id != lib.MyCore.CharacterFilter.Id) { flag = true; } else if (hl.Equals(MainView.PlayerList) && obj.Values(LongValueKey.Monarch) != lib.moncheck && obj.Id != lib.MyCore.CharacterFilter.Id) { flag = true; } } if (flag) { UpdateRow(obj, hudListRowAccessor); } else { RemoveWorldObject(obj.Id, hl); } } } } } catch (Exception ex) { Repo.RecordException(ex); } }
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); } }
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 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); } }
public CombatTrackerGUIInfo(HudList hudList) { try { hudList.ClearColumnsAndRows(); // Each character is a max of 6 pixels wide hudList.AddColumn(typeof(HudStaticText), 40, null); hudList.AddColumn(typeof(HudStaticText), 52, null); hudList.AddColumn(typeof(HudStaticText), 52, null); hudList.AddColumn(typeof(HudStaticText), 45, null); // This cannot go any smaller without purning labels hudList.AddColumn(typeof(HudStaticText), 96, null); HudList.HudListRowAccessor newRow; newRow = hudList.AddRow(); ((HudStaticText)newRow[1]).Text = "Mel/Msl"; ((HudStaticText)newRow[1]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[2]).Text = "Magic"; ((HudStaticText)newRow[2]).TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Attacks"; attacksText = ((HudStaticText)newRow[4]); attacksText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Typeless"; typelessMeleeMissileText = ((HudStaticText)newRow[1]); typelessMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; typelessMagicText = ((HudStaticText)newRow[2]); typelessMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Evades"; evadesText = ((HudStaticText)newRow[4]); evadesText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Slash"; slashMeleeMissileText = ((HudStaticText)newRow[1]); slashMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; slashMagicText = ((HudStaticText)newRow[2]); slashMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Resists"; resistsText = ((HudStaticText)newRow[4]); resistsText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Pierce"; pierceMeleeMissileText = ((HudStaticText)newRow[1]); pierceMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; pierceMagicText = ((HudStaticText)newRow[2]); pierceMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "A.Surges"; aSurgesText = ((HudStaticText)newRow[4]); aSurgesText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Bludge"; bludgeMeleeMissileText = ((HudStaticText)newRow[1]); bludgeMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; bludgeMagicText = ((HudStaticText)newRow[2]); bludgeMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "C.Surges"; cSurgesText = ((HudStaticText)newRow[4]); cSurgesText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Fire"; fireMeleeMissileText = ((HudStaticText)newRow[1]); fireMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; fireMagicText = ((HudStaticText)newRow[2]); fireMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Cold"; coldMeleeMissileText = ((HudStaticText)newRow[1]); coldMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; coldMagicText = ((HudStaticText)newRow[2]); coldMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Av/Mx"; avgMaxText = ((HudStaticText)newRow[4]); avgMaxText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Acid"; acidMeleeMissileText = ((HudStaticText)newRow[1]); acidMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; acidMagicText = ((HudStaticText)newRow[2]); acidMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Crits"; critsText = ((HudStaticText)newRow[4]); critsText.TextAlignment = VirindiViewService.WriteTextFormats.Right; newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Electric"; electricMeleeMissileText = ((HudStaticText)newRow[1]); electricMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; electricMagicText = ((HudStaticText)newRow[2]); electricMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Av/Mx"; critsAvgMaxText = ((HudStaticText)newRow[4]); critsAvgMaxText.TextAlignment = VirindiViewService.WriteTextFormats.Right; hudList.AddRow(); newRow = hudList.AddRow(); ((HudStaticText)newRow[0]).Text = "Total"; totalMeleeMissileText = ((HudStaticText)newRow[1]); totalMeleeMissileText.TextAlignment = VirindiViewService.WriteTextFormats.Right; totalMagicText = ((HudStaticText)newRow[2]); totalMagicText.TextAlignment = VirindiViewService.WriteTextFormats.Right; ((HudStaticText)newRow[3]).Text = "Total"; totalDmgText = ((HudStaticText)newRow[4]); totalDmgText.TextAlignment = VirindiViewService.WriteTextFormats.Right; } catch (Exception ex) { Debug.LogException(ex); } }
void RenderWorkersDisplayHud() { try { if (WorkersDisplayHudView != null) { DisposeWorkersDisplayHudView(); } WorkersDisplayHudView = new HudView("Worker Info", 300, 500, new ACImage(0x6AA5)); WorkersDisplayHudView.UserAlphaChangeable = false; WorkersDisplayHudView.ShowInBar = false; WorkersDisplayHudView.UserResizeable = false; WorkersDisplayHudView.Visible = true; WorkersDisplayHudView.Ghosted = false; WorkersDisplayHudView.UserMinimizable = true; WorkersDisplayHudView.UserClickThroughable = false; WorkersDisplayHudTabView = new HudTabView(); WorkersDisplayHudView.Controls.HeadControl = WorkersDisplayHudTabView; WorkersDisplayHudTabLayout = new HudFixedLayout(); WorkersDisplayHudTabView.AddTab(WorkersDisplayHudTabLayout, "Worker Properties"); WorkersDisplayHudView.LoadUserSettings(); WorkersDisplayList = new HudList(); WorkersDisplayHudTabLayout.AddControl(WorkersDisplayList, new Rectangle(0, 0, 295, 570)); WorkersDisplayList.AddColumn(typeof(HudStaticText), 285, null); } catch (Exception ex) { LogError(ex); } }
private void RenderKillTaskPopUp() { try { KTPopView = new HudView(KTHolder.TaskName, 320, 500, null); KTPopView.UserAlphaChangeable = false; KTPopView.ShowInBar = false; KTPopView.UserResizeable = true; KTPopView.Visible = true; KTPopView.Ghosted = false; KTPopView.UserClickThroughable = false; KTPopView.UserMinimizable = true; KTPopView.UserGhostable = false; KTPopTabView = new HudTabView(); KTPopView.Controls.HeadControl = KTPopTabView; KTPopLayout = new HudFixedLayout(); KTPopTabView.AddTab(KTPopLayout, "Edit"); KTLabel1 = new HudStaticText(); KTPopLayout.AddControl(KTLabel1, new Rectangle(0,0,100,16)); KTLabel1.Text = "Kill Task Name:"; KTPopTaskName = new HudTextBox(); KTPopLayout.AddControl(KTPopTaskName, new Rectangle(0,20,mKTSet.HudWidth, 16)); KTPopTaskName.Text = KTHolder.TaskName; KTLabel2 = new HudStaticText(); KTPopLayout.AddControl(KTLabel2, new Rectangle(0,40,75,16)); KTLabel2.Text = "Number:"; KTPopCompleteCount = new HudTextBox(); KTPopLayout.AddControl(KTPopCompleteCount, new Rectangle(80,40,220,16)); KTPopCompleteCount.Text = KTHolder.CompleteCount.ToString(); KTLabel3 = new HudStaticText(); KTPopLayout.AddControl(KTLabel3, new Rectangle(0,60,100,16)); KTLabel3.Text = "Creature List:"; KTPopMobsList = new HudList(); KTPopLayout.AddControl(KTPopMobsList, new Rectangle(0,80,300,90)); KTPopMobsList.AddColumn(typeof(HudStaticText),250,null); KTPopMobsList.AddColumn(typeof(HudPictureBox),16,null); foreach(string mob in KTHolder.MobNames) { KTPopRow = KTPopMobsList.AddRow(); ((HudStaticText)KTPopRow[0]).Text = mob; ((HudPictureBox)KTPopRow[1]).Image = GearGraphics.RemoveCircle; } KTPopMobsList.Click += KTPopMobsList_Click; KTPopMobTxt = new HudTextBox(); KTPopLayout.AddControl(KTPopMobTxt, new Rectangle(0,180,250,16)); KTPopMobAddButton = new HudButton(); KTPopLayout.AddControl(KTPopMobAddButton, new Rectangle(260,180,40,16)); KTPopMobAddButton.Text = "Add"; KTPopMobAddButton.Hit += KTPopMobAddButton_Hit; KTLabel4 = new HudStaticText(); KTPopLayout.AddControl(KTLabel4, new Rectangle(0,200,100,16)); KTLabel4.Text = "NPC List:"; KTPopNPCList = new HudList(); KTPopLayout.AddControl(KTPopNPCList, new Rectangle(0,220,300,90)); KTPopNPCList.AddColumn(typeof(HudStaticText),250,null); KTPopNPCList.AddColumn(typeof(HudPictureBox),16,null); foreach(string mob in KTHolder.NPCNames) { KTPopRow = KTPopNPCList.AddRow(); ((HudStaticText)KTPopRow[0]).Text = mob; ((HudPictureBox)KTPopRow[1]).Image = GearGraphics.RemoveCircle; } KTPopNPCList.Click += KTPopNPCList_Click; KTPopNPCTxt = new HudTextBox(); KTPopLayout.AddControl(KTPopNPCTxt, new Rectangle(0,320,250,16)); KTPopNPCAddButton = new HudButton(); KTPopLayout.AddControl(KTPopNPCAddButton, new Rectangle(260,320,40,16)); KTPopNPCAddButton.Text = "Add"; KTPopNPCAddButton.Hit += KTPopNPCAddButton_Hit; KTLabel5 = new HudStaticText(); KTPopLayout.AddControl(KTLabel5, new Rectangle(0,340,75,16)); KTLabel5.Text = "NPC Info:"; KTPopNPCInfo = new HudTextBox(); KTPopLayout.AddControl(KTPopNPCInfo, new Rectangle(80,340,220,16)); KTPopNPCInfo.Text = KTHolder.NPCInfo; KTLabel6 = new HudStaticText(); KTPopLayout.AddControl(KTLabel6, new Rectangle(0,360,75,16)); KTLabel6.Text = "NPC Coords:"; KTPopNPCCoords = new HudTextBox(); KTPopLayout.AddControl(KTPopNPCCoords, new Rectangle(80,360,220,16)); KTPopNPCCoords.Text = KTHolder.NPCCoords; KTLabel7 = new HudStaticText(); KTPopLayout.AddControl(KTLabel7, new Rectangle(0,380,75,16)); KTLabel7.Text = "Flag Text:"; KTPopNPCFlagTxt = new HudTextBox(); KTPopLayout.AddControl(KTPopNPCFlagTxt, new Rectangle(80,380,220,16)); KTPopNPCFlagTxt.Text = KTHolder.NPCYellowFlagText; KTLabel8 = new HudStaticText(); KTPopLayout.AddControl(KTLabel8, new Rectangle(0, 400, 75,16)); KTLabel8.Text = "Comp. Text:"; KTPopNPCCompleteTxt = new HudTextBox(); KTPopLayout.AddControl(KTPopNPCCompleteTxt, new Rectangle(80,400,220,16)); KTPopNPCCompleteTxt.Text = KTHolder.NPCYellowCompleteText; KTPopView.VisibleChanged += KTPopView_VisibleChanged; }catch(Exception ex){LogError(ex);} }
private void AddWorldObject(WorldObject obj, HudList hl) { try { bool flag = false; for (int i = 0; i < hl.RowCount; i++) { HudList.HudListRowAccessor hudListRowAccessor = hl[i]; HudStaticText hudStaticText = (HudStaticText)hudListRowAccessor[5]; if (Convert.ToInt32(hudStaticText.Text) == obj.Id) { flag = true; break; } } if (flag) { UpdateWorldObject(obj, hl); } else { CoordsObject coordsObject = obj.Coordinates(); string text; if (coordsObject.NorthSouth >= 0.0) { text = string.Format("{0:N1}", coordsObject.NorthSouth) + "N, "; } else { text = string.Format("{0:N1}", coordsObject.NorthSouth * -1.0) + "S, "; } if (coordsObject.EastWest >= 0.0) { text = text + string.Format("{0:N1}", coordsObject.EastWest) + "E"; } else { text = text + string.Format("{0:N1}", coordsObject.EastWest * -1.0) + "W"; } double num = CoreManager.Current.WorldFilter.Distance(obj.Id, CoreManager.Current.CharacterFilter.Id) * 240.0; int num2 = 0; HudList.HudListRowAccessor hudListRowAccessor; if (hl.RowCount > 0) { num2 = hl.RowCount; for (int j = 0; j < hl.RowCount; j++) { hudListRowAccessor = hl[j]; HudStaticText hudStaticText2 = (HudStaticText)hudListRowAccessor[1]; if (hudStaticText2.Text.Trim().CompareTo(obj.Name.Trim()) > 0) { num2 = j; break; } } } hudListRowAccessor = hl.InsertRow(num2); ((HudPictureBox)hudListRowAccessor[0]).Image = obj.Icon; ((HudStaticText)hudListRowAccessor[1]).Text = obj.Name; ((HudStaticText)hudListRowAccessor[2]).Text = text; ((HudStaticText)hudListRowAccessor[3]).Text = string.Format("{0:N1}", num); ((HudPictureBox)hudListRowAccessor[4]).Image = 100667896; ((HudStaticText)hudListRowAccessor[5]).Text = obj.Id.ToString(); ((HudStaticText)hudListRowAccessor[5]).Visible = false; } } catch (Exception ex) { Repo.RecordException(ex); } }
private void DisposeButlerHud() { try { if(ButlerHudView == null) {return;} ButlerHudView.Resize -= ButlerHudView_Resize; ButlerHudView.VisibleChanged -= ButlerHudView_VisibleChanged; ValetTabLayout.Dispose(); ButlerHudTabLayout.Dispose(); ButlerHudTabView.Dispose(); ButlerHudView.Dispose(); try{ButlerHudPickCurrentSelection.Hit -= ButlerHudPickCurrentSelection_Hit;}catch{} 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; ButlerQuickSortStorage.StickyDownStateChanged -= ButlerQuickSortStorage_Hit; ButlerHudList.Click -= ButlerHudList_Click; ButlerHudSearchButton.Hit -= ButlerHudSearchButton_Click; ButlerHudClearSearchButton.Hit -= ButlerHudClearSearchButton_Click; ButlerHudSalvageCurrentSelection.Dispose(); ButlerHudDestoryCurrentSelection.Dispose(); ButlerHudUseCurrentSelection.Dispose(); ButlerHudCurrentSelectionLabel.Dispose(); try{ButlerHudPickCurrentSelection.Dispose();}catch{} ButlerHudCurrentSelectionIcon.Dispose(); ButlerHudCurrentSelectionText.Dispose(); ButlerHudSearchBox.Dispose(); ButlerHudSearchButton.Dispose(); ButlerHudClearSearchButton.Dispose(); ButlerQuickSortLabel.Dispose(); ButlerQuickSortEquipped.Dispose(); ButlerQuickSortUnequipped.Dispose(); ButlerQuickSortMelee.Dispose(); ButlerQuickSortMissile.Dispose(); ButlerQuickSortCaster.Dispose(); ButlerQuickSortArmor.Dispose(); ButlerQuickSortKeys.Dispose(); ButlerQuickSortKeyrings.Dispose(); ButlerQuickSortLockpicks.Dispose(); ButlerQuickSortManastones.Dispose(); ButlerQuickSortHealKit.Dispose(); ButlerQuickSortPotion.Dispose(); ButlerHudList.Dispose(); ButlerHudList = null; ButlerHudSelectedLabel.Dispose(); ButlerPackSpacesAvailable.Dispose(); ButlerBurdenLabel.Dispose(); //Valet Tab ValetEquipSuit.Hit -= ValetEquipSuit_Hit; ValetCreateSuit.Hit -= ValetCreateSuit_Hit; ValetSuitList.Click -= ValetSuitList_Click; ValetSuitPiecesList.Click -= ValetSuitPiecesList_Click; ValetEquipSuit.Dispose(); ValetCreateSuit.Dispose(); ValetTextBoxLabel.Dispose(); ValetNameBox.Dispose(); ValetSuitListLabel.Dispose(); ValetSuitList.Dispose(); ValetSuitPiecesListLabel.Dispose(); ValetSuitPiecesList.Dispose(); ButlerHudView = null; }catch(Exception ex) {LogError(ex);} return; }
private void DisposeArmorTabLayout() { try { if (!ArmorMainTab) { return; } ArmorHudList.Click -= (sender, row, col) => ArmorHudList_Click(sender, row, col); ArmorHudList = null; lblToonArmorName.Text = ""; lblToonArmorName = null; // lblToonLevel.Text = ""; // lblToonLevel = null; // lblToonMaster.Text = ""; // lblToonMaster = null; ClearMainArmorHudVariables(); ArmorMainTab = false; } catch (Exception ex) { LogError(ex); } }
private void RenderArmorTabLayout() { try { lblToonArmorName = new HudStaticText(); lblToonArmorName.FontHeight = nmenuFontHeight; lblToonLevel = new HudStaticText(); lblToonLevel.FontHeight = nmenuFontHeight; lblToonMaster = new HudStaticText(); lblToonMaster.FontHeight = nmenuFontHeight; ArmorHudList = new HudList(); ArmorHudTabLayout.AddControl(lblToonArmorName, new Rectangle(0, 0, 100, 50)); ArmorHudTabLayout.AddControl(lblToonLevel, new Rectangle(80,0,40,16)); ArmorHudTabLayout.AddControl(lblToonMaster, new Rectangle(150,0,60,16)); ArmorHudTabLayout.AddControl(ArmorHudList, new Rectangle(0,30, ArmorHudWidth, ArmorHudHeight-40)); //ArmorHudList.ControlHeight = Convert.ToInt32(.05*ArmorHudHeight); ArmorHudList.AddColumn(typeof(HudPictureBox), 20, null); ArmorHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.25 * ArmorHudWidth), null); ArmorHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.18 * ArmorHudWidth), null); ArmorHudList.AddColumn(typeof(HudStaticText), Convert.ToInt32(.52 * ArmorHudWidth), null); ArmorHudList.Click += (sender, row, col) => ArmorHudList_Click(sender, row, col); ArmorMainTab = true; try{ if (toonArmorName == "" || toonArmorName == "None") { toonArmorName = toonName; } lblToonArmorName.Text = toonArmorName; FillArmorHudList(); } catch (Exception ex) { LogError(ex); } } catch (Exception ex) { LogError(ex); } }
private void RenderTacticianHud() { try { if(TacticianHudView != null) { DisposeTacticianHud(); } TacticianHudView = new HudView("GearTactician", mGeneralSettings.GearWindowSettings.CombatHudWidth, mGeneralSettings.GearWindowSettings.CombatHudHeight, new ACImage(0x6AA8)); TacticianHudView.Visible = true; TacticianHudView.UserAlphaChangeable = false; TacticianHudView.ShowInBar = false; TacticianHudView.UserClickThroughable = false; TacticianHudView.UserMinimizable = true; TacticianHudView.UserResizeable = true; TacticianHudView.LoadUserSettings(); TacticianHudTabView = new HudTabView(); TacticianHudView.Controls.HeadControl = TacticianHudTabView; TacticianTabLayout = new HudFixedLayout(); TacticianHudTabView.AddTab(TacticianTabLayout, "GearTactician"); TacticianLabel1 = new HudStaticText(); TacticianTabLayout.AddControl(TacticianLabel1, new Rectangle(0,0,75,16)); TacticianLabel1.Text = "Health"; TacticianLabel2 = new HudStaticText(); TacticianTabLayout.AddControl(TacticianLabel2, new Rectangle(110,0,40,16)); TacticianLabel2.Text = "F"; TacticianLabel3 = new HudStaticText(); TacticianTabLayout.AddControl(TacticianLabel3, new Rectangle(TacticianHudView.Width - 100, 0,75,16)); TacticianLabel3.Text = "Active Debuffs"; TacticianDiplayList = new HudList(); TacticianTabLayout.AddControl(TacticianDiplayList, new Rectangle(0,20,TacticianHudView.Width, TacticianHudView.Height)); TacticianDiplayList.ControlHeight = 16; TacticianDiplayList.AddColumn(typeof(HudProgressBar), 100, null); TacticianDiplayList.AddColumn(typeof(HudButton), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudStaticText), 1, null); TacticianSettingsLayout = new HudFixedLayout(); TacticianHudTabView.AddTab(TacticianSettingsLayout, "Settings"); TacticianTrackCreature = new HudCheckBox(); TacticianTrackCreature.Text = "Creature Debuffs"; TacticianTrackCreature.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackCreatureDebuffs; TacticianSettingsLayout.AddControl(TacticianTrackCreature, new Rectangle(0,0,100,16)); TacticianTrackItem = new HudCheckBox(); TacticianTrackItem.Text = "Item Debuffs"; TacticianTrackItem.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackItemDebuffs; TacticianSettingsLayout.AddControl(TacticianTrackItem, new Rectangle(0,20,100,16)); TacticianTrackLife = new HudCheckBox(); TacticianTrackLife.Text = "Life Debuffs"; TacticianTrackLife.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackLifeDebuffs; TacticianSettingsLayout.AddControl(TacticianTrackLife, new Rectangle(0,40,100,16)); TacticianTrackVoid = new HudCheckBox(); TacticianTrackVoid.Text = "Void Debuffs"; TacticianTrackVoid.Checked = mGeneralSettings.GearTacticianSettings.bCombatHudTrackVoidDebuffs; TacticianSettingsLayout.AddControl(TacticianTrackVoid, new Rectangle(0,60,100,16)); TacticianShowAll = new HudCheckBox(); TacticianShowAll.Text = "Show All Mobs"; TacticianShowAll.Checked = mGeneralSettings.GearTacticianSettings.bShowAll; TacticianSettingsLayout.AddControl(TacticianShowAll, new Rectangle(0,80,100,16)); TacticianCurrentTargetBar = new HudCheckBox(); TacticianCurrentTargetBar.Text = "Show Current Target Bar"; TacticianCurrentTargetBar.Checked = mGeneralSettings.GearTacticianSettings.RenderCurrentTargetDebuffView; TacticianSettingsLayout.AddControl(TacticianCurrentTargetBar, new Rectangle(0,100,200,16)); TacticianDiplayList.Click += TacticianDiplayList_Click; TacticianHudView.VisibleChanged += TacticianHudView_VisibleChanged; TacticianHudView.Resize += TacticianHudView_Resize; TacticianTrackCreature.Change += TacticianTrackCreature_Change; TacticianTrackItem.Change += TacticianTrackItem_Change; TacticianTrackLife.Change += TacticianTrackLife_Change; TacticianTrackVoid.Change += TacticianTrackVoid_Change; TacticianShowAll.Change += TacticianShowAll_Change; TacticianCurrentTargetBar.Change += TacticianCurrentTargetBar_Chanage; UpdateTactician(); }catch(Exception ex){LogError(ex);} }
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 RenderWorkersHudTab() { try { WorkersHudView.VisibleChanged += WorkersHudView_VisibleChanged; lblWorkers = new HudStaticText(); lblWorkers.Text = "Workers"; lblWorkerLevel = new HudStaticText(); lblWorkerLevel.Text = "Level"; lblWorkerBurden = new HudStaticText(); lblWorkerBurden.Text = "Burden"; lblWorkerPackSpace = new HudStaticText(); lblWorkerPackSpace.Text = "Pack Space"; ControlGroup Workers = new ControlGroup(); cboWorkers = new HudCombo(Workers); MyWorkers = new List<string>(); cboWorkers.Change += (sender, index) => cboWorkers_Change(sender, index); if (MyWorkers.Count == 0) { var snames = cHarActors.GetCharacterNames().ToList().OrderBy(x => x); MyWorkers.AddRange(snames); } for (int i = 0; i < MyWorkers.Count; i++) { cboWorkers.AddItem(MyWorkers[i], i); } //lblWorkingNow = new HudStaticText(); //lblWorkingNow.Text = "Current Gear Worker: "; lstHudWorkers = new HudList(); lstHudWorkers.AddColumn(typeof(HudStaticText), 100, null);//name lstHudWorkers.AddColumn(typeof(HudStaticText), 60, null);//level lstHudWorkers.AddColumn(typeof(HudStaticText), 60, null);//Available pack space lstHudWorkers.AddColumn(typeof(HudStaticText), 60, null);//Burden lstHudWorkers.Click += (sender, row, col) => lstHudWorkers_Click(sender, row, col); WorkersTabLayout.AddControl(cboWorkers, new Rectangle(60, 5, 100, 16)); //WorkersTabLayout.AddControl(lblWorkingNow, new Rectangle(200, 5, 200, 16)); WorkersTabLayout.AddControl(lblWorkers, new Rectangle(10, 25, 45, 16)); WorkersTabLayout.AddControl(lblWorkerLevel, new Rectangle(120, 25, 45, 16)); WorkersTabLayout.AddControl(lblWorkerPackSpace, new Rectangle(160, 25, 60, 16)); WorkersTabLayout.AddControl(lblWorkerBurden, new Rectangle(250, 25, 45, 16)); WorkersTabLayout.AddControl(lstHudWorkers, new Rectangle(10, 40, 300, 300)); updateWorkersTabLayout(); } catch (Exception ex) { LogError(ex); } }
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);} }
protected UiListBase(HudList hudList) { _hudList = hudList; }
private void AlterTacticianHud() { try { TacticianDiplayList.Click -= TacticianDiplayList_Click; TacticianLabel3.Dispose(); TacticianLabel3 = new HudStaticText(); TacticianTabLayout.AddControl(TacticianLabel3, new Rectangle(TacticianHudView.Width - 100, 0,75,16)); TacticianLabel3.Text = "Active Debuffs"; TacticianDiplayList.Dispose(); TacticianDiplayList = new HudList(); TacticianTabLayout.AddControl(TacticianDiplayList, new Rectangle(0,20,TacticianHudView.Width, TacticianHudView.Height)); TacticianDiplayList.ControlHeight = 16; TacticianDiplayList.AddColumn(typeof(HudProgressBar), 100, null); TacticianDiplayList.AddColumn(typeof(HudButton), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudImageStack), 16, null); TacticianDiplayList.AddColumn(typeof(HudStaticText), 1, null); TacticianDiplayList.Click += TacticianDiplayList_Click; UpdateTactician(); }catch(Exception ex){LogError(ex);} }
private void UpdateArmorHuds(HudList hud) { try { hud.ClearRows(); HashSet<InventoryObject> SearchSet1 = new HashSet<InventoryObject>(); HashSet<InventoryObject> SearchSet2 = new HashSet<InventoryObject>(); HashSet<InventoryObject> SearchSet3 = new HashSet<InventoryObject>(); if (Search.ObjectClass != AObjectClass.Unknown) { SearchSet1 = nVenTory.GetByObjectClass(Search.ObjectClass); } if (Search.SearchSpellIds.Count > 0) { SearchSet2.UnionWith(nVenTory.GetBySpellIds(Search.SearchSpellIds)); } if (Search.SearchNames.Count > 0) foreach (string name in Search.SearchNames) { SearchSet3.UnionWith(nVenTory.GetByObjectName(@name)); } if (Search.SearchFragments.Count > 0) foreach (string fragment in Search.SearchFragments) { SearchSet3.UnionWith(nVenTory.GetByLowercaseFragment(@fragment)); } if (Search.ObjectClass != AObjectClass.Unknown && SearchSet1.Count == 0) { return; } if (Search.SearchSpellIds.Count > 0 && SearchSet2.Count == 0) { return; } if ((Search.SearchNames.Count > 0 || Search.SearchFragments.Count > 0) && SearchSet3.Count == 0) { return; } HashSet<InventoryObject> SearchInventoryItems = new HashSet<InventoryObject>(); if (Search.ObjectClass != AObjectClass.Unknown && Search.SearchSpellIds.Count > 0 && (Search.SearchNames.Count > 0 || Search.SearchFragments.Count > 0)) { SearchInventoryItems = SearchSet1; SearchInventoryItems.IntersectWith(SearchSet2); SearchInventoryItems.IntersectWith(SearchSet3); } else if (Search.ObjectClass != AObjectClass.Unknown && Search.SearchSpellIds.Count > 0 && Search.SearchNames.Count == 0 && Search.SearchFragments.Count == 0) { SearchInventoryItems = SearchSet1; SearchInventoryItems.IntersectWith(SearchSet2); } else if (Search.ObjectClass != AObjectClass.Unknown && Search.SearchSpellIds.Count == 0 && (Search.SearchNames.Count > 0 || Search.SearchFragments.Count > 0)) { SearchInventoryItems = SearchSet1; SearchInventoryItems.IntersectWith(SearchSet3); } else if (Search.ObjectClass == AObjectClass.Unknown && Search.SearchSpellIds.Count > 0 && (Search.SearchNames.Count > 0 || Search.SearchFragments.Count > 0)) { SearchInventoryItems = SearchSet2; SearchInventoryItems.IntersectWith(SearchSet3); } else if (Search.ObjectClass != AObjectClass.Unknown && Search.SearchSpellIds.Count == 0 && Search.SearchNames.Count == 0 && Search.SearchFragments.Count == 0) { SearchInventoryItems = SearchSet1; } else if (Search.ObjectClass == AObjectClass.Unknown && Search.SearchSpellIds.Count > 0 && Search.SearchNames.Count == 0 && Search.SearchFragments.Count == 0) { SearchInventoryItems = SearchSet2; } else if (Search.ObjectClass == AObjectClass.Unknown && Search.SearchSpellIds.Count == 0 && (Search.SearchNames.Count > 0 || Search.SearchFragments.Count > 0)) { SearchInventoryItems = SearchSet3; } if (Search.EquipSkill != 0) { SearchInventoryItems.RemoveWhere(x => x.EquipSkill != Search.EquipSkill); } if (Search.ArmorSet != 0) { SearchInventoryItems.RemoveWhere(x => x.ArmorSet != Search.ArmorSet); } if (Search.ArmorCoverage != 0) { SearchInventoryItems.RemoveWhere(x => x.Coverage != Search.ArmorCoverage); } if (Search.ArmorLevel != 0) { SearchInventoryItems.RemoveWhere(x => x.WieldReqValue != Search.ArmorLevel); } if (Search.ArmorRatings != 0) { SearchInventoryItems.RemoveWhere(x => x.aetherObject.Values((ALongValueKeys)Search.ArmorRatings) == 0); } if (Search.Material != 0) { SearchInventoryItems.RemoveWhere(x => x.Material != Search.Material); } if (SearchInventoryItems.Count == 0) { return; } HudList.HudListRowAccessor HudRow; foreach (InventoryObject io in SearchInventoryItems) { HudRow = hud.AddRow(); StringConstructor sc = new StringConstructor(io); ((HudPictureBox)HudRow[0]).Image = io.Icon + 0x6000000; ((HudStaticText)HudRow[1]).Text = sc.NameInfo; if (sc.SetInfo.Length > 1) ((HudStaticText)HudRow[2]).Text = sc.SetInfo.Substring(1); if (sc.RatingsInfo.Length > 1) ((HudStaticText)HudRow[3]).Text = sc.RatingsInfo.Substring(1); ((HudStaticText)HudRow[4]).Text = io.OwnerOrChest; ((HudStaticText)HudRow[5]).Text = sc.SpellInfo; ((HudStaticText)HudRow[6]).Text = io.Id.ToString(); } } catch (Exception ex) { LogError(ex); } }
void AddOption(HudList hudList, Setting<bool> setting) { HudList.HudListRowAccessor newRow = hudList.AddRow(); ((HudCheckBox)newRow[0]).Checked = setting.Value; setting.Changed += obj => { ((HudCheckBox)newRow[0]).Checked = obj.Value; }; ((HudCheckBox)newRow[0]).Change += (s, e) => { try { setting.Value = ((HudCheckBox)s).Checked; } catch (Exception ex) { Debug.LogException(ex); } }; ((HudStaticText)newRow[1]).Text = setting.Description; }
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 DateTime ButlerRenderTime = DateTime.MinValue; // private void BulterStorageOpened(object sender, ContainerOpenedEventArgs e) // { // try // { // if(ButlerHudView == null) {return;} // if(e.ItemGuid == 0) {return;} // if(AetherObjects.Collection[e.ItemGuid].Name != "Storage") {return;} // if(ButlerRenderTime == DateTime.MinValue) // { // ButlerRenderTime = DateTime.Now; // Core.RenderFrame += ButlerContainerTapback; // } // }catch(Exception ex){LogError(ex);} // } // private void ButlerContainerTapback(object sender, EventArgs e) // { // try // { // if((DateTime.Now - ButlerRenderTime).TotalMilliseconds < 350) {return;} // else // { // ButlerRenderTime = DateTime.MinValue; // Core.RenderFrame -= ButlerContainerTapback; // } // }catch(Exception ex){LogError(ex);} // } private void ButlerHudView_Resize(object sender, System.EventArgs e) { try { mGeneralSettings.GearWindowSettings.ButlerHudWidth = ButlerHudView.Width; mGeneralSettings.GearWindowSettings.ButlerHudHeight = ButlerHudView.Height; iLockerUpdate.bSubmitGeneralSettings = true; ButlerHudList.Click -= ButlerHudList_Click; ButlerHudList.Dispose(); ButlerHudList = new HudList(); ButlerHudList.ControlHeight = 16; ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudStaticText), 175, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudStaticText), 1, null); ButlerHudTabLayout.AddControl(ButlerHudList, new Rectangle(0, 150, 300, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 220)); ButlerHudList.Click += ButlerHudList_Click; ButlerHudSelectedLabel.Dispose(); ButlerHudSelectedLabel = new HudStaticText(); ButlerHudSelectedLabel.Text = "Items Selected: "; ButlerHudSelectedCount.Dispose(); ButlerHudSelectedCount = new HudStaticText(); ButlerHudTabLayout.AddControl(ButlerHudSelectedLabel, new Rectangle(0,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,100,16)); ButlerHudTabLayout.AddControl(ButlerHudSelectedCount, new Rectangle(110,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,150,16)); ButlerPackSpacesAvailable.Dispose(); ButlerPackSpacesAvailable = new HudStaticText(); ButlerPackSpaceAvailableLabel.Dispose(); ButlerPackSpaceAvailableLabel = new HudStaticText(); ButlerPackSpaceAvailableLabel.Text = "Inventory status: "; ButlerHudTabLayout.AddControl(ButlerPackSpaceAvailableLabel, new Rectangle(0,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 50 ,100,16)); ButlerHudTabLayout.AddControl(ButlerPackSpacesAvailable, new Rectangle(110, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 50 ,150,16)); ButlerBurdenLabel.Dispose(); ButlerBurdenLabel = new HudStaticText(); ButlerBurdenLabel.Text = "Current Burden: "; ButlerBurden.Dispose(); ButlerBurden = new HudStaticText(); ButlerHudTabLayout.AddControl(ButlerBurdenLabel, new Rectangle(0, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 100, 16)); ButlerHudTabLayout.AddControl(ButlerBurden, new Rectangle(110, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 150, 16)); UpdateButlerHudList(); } catch (Exception ex) { LogError(ex); } }
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); } }; } }
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; }