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 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 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 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); } }
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); } }
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); } }
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); } }
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); } }