private void Awake() { if (instance == null) { instance = this; } }
void DismissWorker() { SetFadeoutTimer(null); UIView.Animate(0.3, 0, UIViewAnimationOptions.CurveEaseIn | UIViewAnimationOptions.AllowUserInteraction, delegate { HudView.Transform.Scale(0.8f, 0.8f); this.Alpha = 0; }, delegate { if (Alpha == 0) { InvokeOnMainThread(delegate { NSNotificationCenter.DefaultCenter.RemoveObserver(this); CancelRingLayerAnimation(); StringLabel.RemoveFromSuperview(); SpinnerView.RemoveFromSuperview(); ImageView.RemoveFromSuperview(); CancelHudButton.RemoveFromSuperview(); StringLabel = null; SpinnerView = null; ImageView = null; CancelHudButton = null; HudView.RemoveFromSuperview(); HudView = null; OverlayView.RemoveFromSuperview(); OverlayView = null; this.RemoveFromSuperview(); }); } }); }
void BiologProgress_BiologEntryScanned(BiologEntry unlockedEntry, bool notify) { if (notify) { HudView.Hide(() => BiologView.Show(() => { })); } }
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 HudController( HudView view, GameStateModel gameStateModel, FlightStatsModel flightStatsModel, ProfileModel profileModel, UserInputModel userInputModel, CameraConfig cameraConfig) : base(view) { _view = view; _view.Initialize(); _gameStateModel = gameStateModel; _flightStatsModel = flightStatsModel; _profileModel = profileModel; _userInputModel = userInputModel; _cameraConfig = cameraConfig; _view.OnPauseButtonClicked .Subscribe(_ => _userInputModel.OnPause.Execute()) .AddTo(Disposer); SetupGameStateModel(); SetupFlightStatsModel(); SetupProfileModel(); }
private void b(object A_0, EventArgs A_1) { if (this.e != null) { this.e.Dispose(); this.e = null; } }
public void Initialize(Decal.Adapter.Wrappers.PluginHost p, string pXML, string pWindowKey) { VirindiViewService.XMLParsers.Decal3XMLParser ps = new VirindiViewService.XMLParsers.Decal3XMLParser(); ViewProperties iprop; ControlGroup igroup; ps.ParseFromResource(pXML, out iprop, out igroup); myView = new VirindiViewService.HudView(iprop, igroup, pWindowKey); }
public QuestFlagRepository(CoreManager core, HudView view) { Core = core; View = view; UIQuestListRefresh = (HudButton)View["QuestListRefresh"]; Core.ChatBoxMessage += Current_ChatBoxMessage; }
public void InitializeRawXML(PluginHost p, string pXML, string pWindowKey) { ViewProperties properties; ControlGroup group; new Decal3XMLParser().Parse(pXML, ref properties, ref group); this.a = new HudView(properties, group, pWindowKey); }
public void Initialize(PluginHost p, string pXML) { ViewProperties properties; ControlGroup group; new Decal3XMLParser().ParseFromResource(pXML, ref properties, ref group); this.a = new HudView(properties, group); }
private void a(object A_0, EventArgs A_1) { if (this.b != null) { this.b.Dispose(); this.b = null; } }
public void InitializeRawXML(Decal.Adapter.Wrappers.PluginHost p, string pXML, string pWindowKey) { VirindiViewService.XMLParsers.Decal3XMLParser ps = new VirindiViewService.XMLParsers.Decal3XMLParser(); ViewProperties iprop; ControlGroup igroup; ps.Parse(pXML, out iprop, out igroup); myView = new VirindiViewService.HudView(iprop, igroup, pWindowKey); }
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"]; }
private void b() { HudView underlying = ((View)this.a).Underlying; underlying.set_UserMinimizable(false); underlying.set_UserGhostable(false); underlying.set_UserAlphaChangeable(false); underlying.set_ShowInBar(false); underlying.set_ForcedZOrder(10); }
void Start() { view = HudView.instance; view.UpdateFire(currentFire); PlayerParticleHandler.instance.onFireExtinct += IncreaseFire; PlayerDistanceController.instance.onIncreaseDistance += IncreaseDistance; ReloadHandler.instance.onClickRetry += ResetCounters; AchievementsController inst = AchievementsController.instance; inst.onReachAchievement += OnReachAchievement; }
private void CreateView() { // new Decal3XMLParser().ParseFromResource("AceAdminLoaderTemplate.Views.MainView.xml", out properties, out controls); // new Decal3XMLParser().ParseFromResource("AceAdminTemplate.Views.MainView.xml", out properties, out controls); new Decal3XMLParser().ParseFromResource("AceAdminPluginTemplate.Views.MainView.xml", out properties, out controls); view = new VirindiViewService.HudView(properties, controls); EchoButton = (HudButton)view["EchoButton"]; EchoText = (HudTextBox)view["EchoText"]; EchoButton.Hit += EchoButton_Hit; }
public AskWaterRightsBuyerInteraction( WaterWarsController controller, HudView sellerHud, HudView buyerHud, int salePrice, int amount) : base(controller, sellerHud, buyerHud) { if (!m_controller.Game.Players.TryGetValue(sellerHud.UserId, out m_seller)) return; if (!m_controller.Game.Players.TryGetValue(buyerHud.UserId, out m_buyer)) return; m_amount = amount; m_salePrice = salePrice; AskBuyer(); }
private void e() { if (this.f != null) { this.f.Dispose(); this.f = null; } this.e = false; this.g = null; this.j = null; this.i = null; }
void DismissWorker() { SetFadeoutTimer(null); SetProgressTimer(null); UIView.Animate(0.3, 0, UIViewAnimationOptions.CurveEaseIn | UIViewAnimationOptions.AllowUserInteraction, delegate { HudView.Transform.Scale(0.8f, 0.8f); if (isClear) { HudView.Alpha = 0f; } else { Alpha = 0f; } }, delegate { if (Alpha == 0f || HudView.Alpha == 0f) { InvokeOnMainThread(delegate { Alpha = 0f; HudView.Alpha = 0f; //Removing observers UnRegisterNotifications(); NSNotificationCenter.DefaultCenter.RemoveObserver(this); Ring.ResetStyle(UIColor.White); CancelRingLayerAnimation(); StringLabel.RemoveFromSuperview(); SpinnerView.RemoveFromSuperview(); ImageView.RemoveFromSuperview(); if (_cancelHud != null) { _cancelHud.RemoveFromSuperview(); } StringLabel = null; SpinnerView = null; ImageView = null; _cancelHud = null; HudView.RemoveFromSuperview(); HudView = null; OverlayView.RemoveFromSuperview(); OverlayView = null; this.RemoveFromSuperview(); }); } }); }
/// <summary> /// Register the hud /// </summary> /// <param name="playerId"></param> /// <param name="part"></param> protected HudView RegisterHud(UUID playerId, SceneObjectPart part) { HudView hud; lock (m_localIdToHud) { HudView oldHud = null; // If a player logs in directly to the region, this will get fired both by the attachment and by the // make root agent procedure. if (m_playerIdToHud.ContainsKey(playerId)) { oldHud = DeregisterHudByPlayerId(playerId); } m_log.DebugFormat("[WATER WARS]: Registering hud {0} {1} for {2}", part.Name, part.LocalId, playerId); hud = new HudView(m_controller, part.ParentGroup.Scene, playerId); hud.Initialize(part); m_localIdToHud[part.LocalId] = hud; m_playerIdToHud[playerId] = hud; if (oldHud != null) { hud.SetTickerFromPreviousHud(oldHud); } if (!m_controller.State.UpdateHudStatus(playerId)) { ResetHud(playerId); } // An experiment in trying to resolve hud display problems by forcing an update. Unfortunately, works // occasionally but not at all often. /* * Timer forceUpdateTimer = new Timer(2000); * forceUpdateTimer.AutoReset = false; * forceUpdateTimer.Elapsed += new ElapsedEventHandler( * delegate(object source, ElapsedEventArgs e) * { * m_log.InfoFormat("[WATER WARS]: Forcing hud client update for {0}", playerId); * part.ParentGroup.SendGroupFullUpdate(); * } * ); * forceUpdateTimer.Start(); */ return(hud); } }
/// <summary> /// Send ticker text to the given user. /// </summary> /// This is usually called via the Events code. /// <param name="userId"></param> /// <param name="text"></param> public void SendTickerText(UUID userId, string text) { lock (m_localIdToHud) { // The player might not actually be wearing the hud if (m_playerIdToHud.ContainsKey(userId)) { // This logic should arguably be in the view itself HudView hud = m_playerIdToHud[userId]; hud.AddTextToTick(text); } } }
public AskLandBuyerInteraction( WaterWarsController controller, HudView playerHud, HudView targetPlayerHud, BuyPoint bp, int salePrice, RightsType rightsToSell) : base(controller, playerHud, targetPlayerHud) { m_bp = bp; if (!m_controller.Game.Players.TryGetValue(playerHud.UserId, out m_p)) return; if (!m_controller.Game.Players.TryGetValue(targetPlayerHud.UserId, out m_targetPlayer)) return; m_salePrice = salePrice; m_rightsToSell = rightsToSell; AskBuyer(); }
protected override void OnActivate() { base.OnActivate(); _view = UIRoot.I.GetView<HudView>(); EventController.I.Subscribe("PauseClicked", this); EventController.I.Subscribe("ChangeCameraClicked", this); UIRoot.I.GetView<HudView>().SetVisible(true); if (_firstStart) { GA.I.LogScreen("Level" + GameSaver.I.CurrentLevel); } }
protected override void OnActivate() { base.OnActivate(); _view = UIRoot.I.GetView <HudView>(); EventController.I.Subscribe("PauseClicked", this); EventController.I.Subscribe("ChangeCameraClicked", this); UIRoot.I.GetView <HudView>().SetVisible(true); if (_firstStart) { GA.I.LogScreen("Level" + GameSaver.I.CurrentLevel); } }
private void a(d8 A_0) { fl a = A_0.a; b3 b = A_0.b; this.g = A_0; this.e = true; this.f = new HudView("Virindi Tank Edit Meta Rule", 0x264, 0x1a2, new ACImage()); this.f.set_UserMinimizable(false); this.f.set_UserGhostable(false); this.f.LoadUserSettings(); this.h = new HudFixedLayout(); this.f.get_Controls().set_HeadControl(this.h); HudButton button = new HudButton(); this.h.AddControl(button, new Rectangle(4, 0x18e, 0x40, 0x10)); button.set_Text("Close"); this.l = new HudCombo(this.f.get_Controls()); this.m = new HudCombo(this.f.get_Controls()); this.h.AddControl(this.l, new Rectangle(4, 4, 300, 0x10)); this.h.AddControl(this.m, new Rectangle(0x134, 4, 300, 0x10)); this.b(); this.k = new HudCombo(this.f.get_Controls()); this.h.AddControl(this.k, new Rectangle(4, 0x18, 0x94, 0x10)); this.k.add_Change(new EventHandler(this.e)); this.a(); HudButton button2 = new HudButton(); this.h.AddControl(button2, new Rectangle(0x9c, 0x18, 0x94, 0x10)); button2.set_Text("New State..."); button2.add_Hit(new EventHandler(this.d)); this.h.AddControl(this.d(), new Rectangle(3, 0x2b, 1, 0x161)); this.h.AddControl(this.c(), new Rectangle(4, 0x2b, 0x12d, 1)); this.h.AddControl(this.c(), new Rectangle(4, 0x18b, 0x12d, 1)); this.h.AddControl(this.d(), new Rectangle(0x131, 0x2b, 1, 0x161)); this.h.AddControl(this.d(), new Rectangle(0x261, 0x2b, 1, 0x161)); this.h.AddControl(this.d(), new Rectangle(0x133, 0x2b, 1, 0x161)); this.h.AddControl(this.c(), new Rectangle(0x134, 0x2b, 0x12d, 1)); this.h.AddControl(this.c(), new Rectangle(0x134, 0x18b, 0x12d, 1)); this.i = new HudFixedLayout(); this.j = new HudFixedLayout(); this.h.AddControl(this.i, new Rectangle(4, 0x2c, 300, 350)); this.h.AddControl(this.j, new Rectangle(0x134, 0x2c, 300, 350)); a.j(this.i); b.j(this.j); button.add_Hit(new EventHandler(this.a)); this.l.add_Change(new EventHandler(this.c)); this.m.add_Change(new EventHandler(this.b)); this.f.set_Visible(true); }
/// <summary> /// Send a player's current status message to their HUD. Nothing happens if no suitable hud is registered /// </summary> /// <param name="playerId"></param> /// <param name="message"></param> public void SendHudStatus(Player player, string message) { lock (m_localIdToHud) { // The player might not actually be wearing the hud if (m_playerIdToHud.ContainsKey(player.Uuid)) { // This logic should arguably be in the view itself HudView hud = m_playerIdToHud[player.Uuid]; hud.DevelopmentRightsOwned = player.DevelopmentRightsOwned.Count; hud.Money = player.Money; hud.Water = player.Water; hud.WaterEntitlement = player.WaterEntitlement; hud.Status = message; } } }
/// <summary> /// Deregister a hud by its local id /// </summary> /// <param name="localId"></param> /// <returns>The deregistered hud, null if there was no hud registered for this local id.</returns> protected HudView DeregisterHudByLocalId(uint localId) { lock (m_localIdToHud) { if (m_localIdToHud.ContainsKey(localId)) { HudView hud = m_localIdToHud[localId]; m_localIdToHud.Remove(localId); m_playerIdToHud.Remove(hud.UserId); hud.Close(); return(hud); } } return(null); }
public AskWaterBuyerInteraction( WaterWarsController controller, HudView playerHud, HudView targetPlayerHud, int amount, int salePrice) : base(controller, playerHud, targetPlayerHud) { if (!m_controller.Game.Players.TryGetValue(playerHud.UserId, out m_player)) { return; } if (!m_controller.Game.Players.TryGetValue(targetPlayerHud.UserId, out m_targetPlayer)) { return; } m_salePrice = salePrice; m_waterToSell = amount; AskBuyer(); }
public AskWaterRightsBuyerInteraction( WaterWarsController controller, HudView sellerHud, HudView buyerHud, int salePrice, int amount) : base(controller, sellerHud, buyerHud) { if (!m_controller.Game.Players.TryGetValue(sellerHud.UserId, out m_seller)) { return; } if (!m_controller.Game.Players.TryGetValue(buyerHud.UserId, out m_buyer)) { return; } m_amount = amount; m_salePrice = salePrice; AskBuyer(); }
public BotManagerView(Machine machine) { try { Machine = machine; VirindiViewService.XMLParsers.Decal3XMLParser parser = new VirindiViewService.XMLParsers.Decal3XMLParser(); parser.ParseFromResource("ACManager.Views.botManagerView.xml", out ViewProperties Properties, out ControlGroup Controls); View = new HudView(Properties, Controls); ConfigTab = new ConfigTab(this); PortalsTab = new PortalsTab(this); GemsTab = new GemsTab(this); AdvertisementsTab = new AdvertisementsTab(this); InventoryTab = new InventoryTab(this); EquipmentTab = new EquipmentTab(this); } catch (Exception ex) { Debug.LogException(ex); } }
public AskLandBuyerInteraction( WaterWarsController controller, HudView playerHud, HudView targetPlayerHud, BuyPoint bp, int salePrice, RightsType rightsToSell) : base(controller, playerHud, targetPlayerHud) { m_bp = bp; if (!m_controller.Game.Players.TryGetValue(playerHud.UserId, out m_p)) { return; } if (!m_controller.Game.Players.TryGetValue(targetPlayerHud.UserId, out m_targetPlayer)) { return; } m_salePrice = salePrice; m_rightsToSell = rightsToSell; AskBuyer(); }
private void a(object A_0, int A_1, int A_2) { if ((A_1 >= 0) && (A_1 < this.a.Count)) { switch (A_2) { case 0: this.a.RemoveAt(A_1); this.a(); [email protected](); if (this.h != null) { this.h.c(); } return; case 1: { if (this.b != null) { this.b.Dispose(); } T local = this.a[A_1]; this.b = new HudView("Edit " + MultipleBase <T> .a((b1)local), 300, 0x176, new ACImage(Color.Red)); this.b.set_UserMinimizable(false); this.b.set_UserGhostable(false); this.b.LoadUserSettings(); this.b.set_Visible(true); this.d = new HudFixedLayout(); this.b.get_Controls().set_HeadControl(this.d); HudButton button = new HudButton(); this.d.AddControl(button, new Rectangle(4, 0x162, 150, 0x10)); button.set_Text("Close"); button.add_Hit(new EventHandler(this.a)); this.e = new HudFixedLayout(); this.d.AddControl(this.e, new Rectangle(0, 0, 300, 350)); local.j(this.e); return; } } } }
/// <summary> /// Make the player's hud reflect the fact that they are not in the game /// </summary> /// <param name="playerId"></param> public void ResetHud(UUID playerId) { lock (m_localIdToHud) { // The player might not actually be wearing the hud if (m_playerIdToHud.ContainsKey(playerId)) { // This logic should arguably be in the view itself HudView hud = m_playerIdToHud[playerId]; hud.EnableEndTurn = false; // EnableSellWater(playerId, false); hud.Money = 0; hud.DevelopmentRightsOwned = 0; hud.Water = 0; hud.WaterEntitlement = 0; hud.Status = WaterWarsController.NOT_IN_GAME_HUD_STATUS_MSG; hud.TimeRemaining = 0; } } }
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); } }
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 RenderKillTaskPanel() { try { if(TaskHudView != null) { DisposeKillTaskPanel(); } TaskHudView = new HudView("GearTasker", mKTSet.HudWidth, mKTSet.HudHeight, new ACImage(0x6AA4)); TaskHudView.UserAlphaChangeable = false; TaskHudView.ShowInBar = false; if(mKTSet.RenderMini){TaskHudView.UserResizeable = false;} else{TaskHudView.UserResizeable = true;} TaskHudView.Visible = true; TaskHudView.Ghosted = false; TaskHudView.UserClickThroughable = false; TaskHudView.UserMinimizable = true; TaskHudView.LoadUserSettings(); TaskTabView = new HudTabView(); TaskHudView.Controls.HeadControl = TaskTabView; TaskIncompleteLayout = new HudFixedLayout(); TaskTabView.AddTab(TaskIncompleteLayout, "Incomplete"); IncTaskLabel1 = new HudStaticText(); TaskIncompleteLayout.AddControl(IncTaskLabel1, new Rectangle(0,0,60,16)); IncTaskLabel1.Text = "Task Name"; IncTaskLabel2 = new HudStaticText(); TaskIncompleteLayout.AddControl(IncTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth - mKTSet.HudWidth/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16)); IncTaskLabel2.Text = "Status"; TaskIncompleteList = new HudList(); TaskIncompleteLayout.AddControl(TaskIncompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20)); TaskIncompleteList.ControlHeight = 16; TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null); //Mob/Item Name TaskIncompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null); //Completion VirindiViewService.TooltipSystem.AssociateTooltip(TaskIncompleteList, "Click for task completion info."); TaskIncompleteList.Click += TaskIncompleteList_Click; TaskCompleteLayout = new HudFixedLayout(); TaskTabView.AddTab(TaskCompleteLayout, "Complete"); TaskCompleteList = new HudList(); CompTaskLabel1 = new HudStaticText(); TaskCompleteLayout.AddControl(CompTaskLabel1, new Rectangle(0,0,60,16)); CompTaskLabel1.Text = "Task Name"; CompTaskLabel2 = new HudStaticText(); TaskCompleteLayout.AddControl(CompTaskLabel2, new Rectangle(Convert.ToInt32(mKTSet.HudWidth*2/3), 0,Convert.ToInt32(mKTSet.HudWidth/3),16)); CompTaskLabel2.Text = "Return"; TaskCompleteLayout.AddControl(TaskCompleteList, new Rectangle(0,20,mKTSet.HudWidth,mKTSet.HudHeight -20)); TaskCompleteList.ControlHeight = 16; TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth*2/3), null); //Mob/Item Name TaskCompleteList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth/3 + 5), null); //Completion VirindiViewService.TooltipSystem.AssociateTooltip(TaskCompleteList, "Click for turn in info."); TaskCompleteList.Click += TaskCompleteList_Click; KillTaskLayout = new HudFixedLayout(); TaskTabView.AddTab(KillTaskLayout, "Kill"); KillTaskSelected = new HudStaticText(); KillTaskLayout.AddControl(KillTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16)); KillTaskSelected.Text = String.Empty; KillTaskNew = new HudButton(); KillTaskLayout.AddControl(KillTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16)); KillTaskNew.Text = "New"; KillTaskNew.Hit += KillTaskNew_Hit; KillTaskDelete = new HudButton(); KillTaskLayout.AddControl(KillTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16)); KillTaskDelete.Text = "Del"; KillTaskDelete.Hit += KillTaskDelete_Hit; KillTaskEdit = new HudButton(); KillTaskLayout.AddControl(KillTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16)); KillTaskEdit.Text = "Edit"; KillTaskEdit.Hit += KillTaskEdit_Hit; KTPanelLabel1 = new HudStaticText(); KillTaskLayout.AddControl(KTPanelLabel1, new Rectangle(0,20,50,16)); KTPanelLabel1.Text = "Track"; KTPanelLabel2 = new HudStaticText(); KillTaskLayout.AddControl(KTPanelLabel2, new Rectangle(40,20,100,16)); KTPanelLabel2.Text = "Task Name"; KillTaskList = new HudList(); KillTaskLayout.AddControl(KillTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight-20)); KillTaskList.ControlHeight = 16; KillTaskList.AddColumn(typeof(HudCheckBox), 16, null); //Track KillTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null); //TaskName VirindiViewService.TooltipSystem.AssociateTooltip(KillTaskList, "Enable Tracking or Click for info."); KillTaskList.Click += KillTaskList_Click; CollectTaskLayout = new HudFixedLayout(); TaskTabView.AddTab(CollectTaskLayout, "Collect"); CollectTaskSelected = new HudStaticText(); CollectTaskLayout.AddControl(CollectTaskSelected, new Rectangle(0,0, TaskHudView.Width - 110, 16)); CollectTaskSelected.Text = String.Empty; CollectTaskNew = new HudButton(); CollectTaskLayout.AddControl(CollectTaskNew, new Rectangle(TaskHudView.Width - 105, 0, 30, 16)); CollectTaskNew.Text = "New"; CollectTaskNew.Hit += CollectTaskNew_Hit; CollectTaskDelete = new HudButton(); CollectTaskLayout.AddControl(CollectTaskDelete, new Rectangle(TaskHudView.Width - 70, 0, 30, 16)); CollectTaskDelete.Text = "Del"; CollectTaskDelete.Hit += CollectTaskDelete_Hit; CollectTaskEdit = new HudButton(); CollectTaskLayout.AddControl(CollectTaskEdit, new Rectangle(TaskHudView.Width - 35, 0, 30, 16)); CollectTaskEdit.Text = "Edit"; CollectTaskEdit.Hit += CollectTaskEdit_Hit; CTPanelLabel1 = new HudStaticText(); CollectTaskLayout.AddControl(CTPanelLabel1, new Rectangle(0,20,50,16)); CTPanelLabel1.Text = "Track"; CTPanelLabel2 = new HudStaticText(); CollectTaskLayout.AddControl(CTPanelLabel2, new Rectangle(40,20,100,16)); CTPanelLabel2.Text = "Task Name"; CollectTaskList = new HudList(); CollectTaskLayout.AddControl(CollectTaskList, new Rectangle(0,40,mKTSet.HudWidth,mKTSet.HudHeight)); CollectTaskList.ControlHeight = 16; CollectTaskList.AddColumn(typeof(HudCheckBox), 16, null); //Track CollectTaskList.AddColumn(typeof(HudStaticText), Convert.ToInt32(mKTSet.HudWidth - 16), null); //TaskName VirindiViewService.TooltipSystem.AssociateTooltip(CollectTaskList, "Enable Tracking or Click for info."); CollectTaskList.Click += CollectTaskList_Click; TaskHudView.Resize += TaskHudView_Resize; TaskHudView.VisibleChanged += TaskHudView_VisibleChanged; UpdateTaskPanel(); }catch(Exception ex){LogError(ex);} }
private void RenderWorkersHud() { try { if (WorkersHudView != null) { DisposeWorkersHud(); } WorkersHudView = new HudView("GearWorkers", 400, 400, new ACImage(0x6AA5)); WorkersHudView.UserAlphaChangeable = false; WorkersHudView.ShowInBar = false; WorkersHudView.Visible = true; WorkersHudView.Ghosted = false; WorkersHudView.UserMinimizable = true; WorkersHudView.UserClickThroughable = false; WorkersHudView.LoadUserSettings(); WorkersHudTabView = new HudTabView(); WorkersHudView.Controls.HeadControl = WorkersHudTabView; WorkersTabLayout = new HudFixedLayout(); WorkersHudTabView.AddTab(WorkersTabLayout, "Gear Workers"); RenderWorkersHudTab(); WorkerSpecificsTabLayout = new HudFixedLayout(); WorkersHudTabView.AddTab(WorkerSpecificsTabLayout, "Worker Specifics"); RenderWorkerSpecificsTab(); } catch (Exception ex) { LogError(ex); } }
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 RenderCurrentTargetDebuffBar() { try { if(CurrentTargetDebuffView != null) { DisposeCurrentTargetDebuffView(); } CurrentTargetDebuffView = new HudView("Current Target", 200, 30, new ACImage(0x6AA3)); CurrentTargetDebuffView.UserAlphaChangeable = false; CurrentTargetDebuffView.ShowInBar = false; CurrentTargetDebuffView.UserResizeable = false; CurrentTargetDebuffView.Visible = true; CurrentTargetDebuffView.UserClickThroughable = false; CurrentTargetDebuffView.UserMinimizable = true; CurrentTargetDebuffView.UserGhostable = true; CurrentTargetDebuffView.LoadUserSettings(); CurrentTargetDebuffTabView = new HudTabView(); CurrentTargetDebuffView.Controls.HeadControl = CurrentTargetDebuffTabView; CurrentTargetDebuffLayout = new HudFixedLayout(); CurrentTargetDebuffTabView.AddTab(CurrentTargetDebuffLayout, "Debuffs"); CurrentTargetImageStackList = new List<HudImageStack>(); for(int i = 0; i < 10; i++) { CurrentTargetImageStackList.Add(new HudImageStack()); CurrentTargetImageStackList[i].Add(DebuffRectangle, new ACImage(Color.Black)); CurrentTargetDebuffLayout.AddControl(CurrentTargetImageStackList[i], new Rectangle(2+i*20,2,16,16)); } }catch(Exception ex){LogError(ex);} }
private void DisposeFocusHud() { try { if(FocusHudView == null){return;} FocusHudView.VisibleChanged -= FocusHudView_VisibleChanged; FocusTargetPicture.Hit -= FocusTargetPicture_Hit; FiveSecondTimer.Tick -= Focus_OnTimerDo; FocusHudTarget = 0; FocusHudView.Dispose(); FocusHudTabView.Dispose(); FocusHudLayout.Dispose(); FocusTargetName.Dispose(); FocusTargetPicture.Dispose(); FocusTargetHealth.Dispose(); FocusHudView = null; }catch(Exception ex){LogError(ex);} }
private void DisposeDynamicRemote() { try { SecondsTimer.Tick -= DynamicGearClock; DestroyDGRControls(); DynamicGearRemoteClock.Dispose(); DynamicGearRemoteLayout.Dispose(); DynamicGearRemoteTabView.Dispose(); DynamicGearRemoteView.Dispose(); DynamicGearRemoteView = null; }catch(Exception ex){LogError(ex);} }
private void DisposeChiefGear() { try { ChiefGearHudView.Dispose(); ChiefGearHudTabView.Dispose(); ChiefGearHudSettings.Dispose(); ChiefGearHudInspect.Dispose(); ChiefGearHudFoundry.Dispose(); ChiefGearHudSounds.Dispose(); ChiefGearHudAbout.Dispose(); lblAboutText1.Dispose(); lblAboutText1a.Dispose(); lblAboutText2.Dispose(); lblAboutText2a.Dispose(); lblAboutText3.Dispose(); lblAboutText3a.Dispose(); lblAboutText4.Dispose(); lblAboutText4a.Dispose(); lblEditionNumber.Dispose(); lblOwnRisk.Dispose(); DisposeChiefGearSettingsTab(); DisposeChiefGearSoundsTab(); DisposeChiefGearInspectTab(); DisposeChiefGearFoundryTab(); ChiefGearHudView = null; }catch(Exception ex){LogError(ex);} }
private void DisposeArmorHud() { try { if(ArmorHudView == null) {return;} SaveArmorSettings(); ClearArmorHudVariables(); UnsubscribeArmorEvents(); try { DisposeArmorTabLayout(); } catch { } try { DisposeArmorSettingsLayout(); } catch { } try { DisposeArmorUpdateTabLayout(); } catch { } if (ArmorHudSettings != null) { ArmorHudSettings.Dispose(); } if (ArmorHudTabLayout != null) { ArmorHudTabLayout.Dispose(); } if (ArmorUpdateHudTabLayout != null) { ArmorUpdateHudTabLayout.Dispose(); } if (ArmorHudTabView != null){ArmorHudTabView.Dispose();} if (ArmorHudView != null) { ArmorHudView.Dispose(); } toonArmorName = ""; // lblToonArmorUpdateLevel.Dispose(); // lblToonArmorUpdateMaster.Dispose(); if (lblArmorUpdateChoice != null) { lblArmorUpdateChoice.Dispose(); } if (txtArmorUpdateChoice != null) { txtArmorUpdateChoice.Dispose(); } if (lblArmorUpdateClass != null) { lblArmorUpdateClass.Dispose(); } if (txtArmorUpdateClass != null) {txtArmorUpdateClass.Dispose(); } if (txtArmorUpdateClass != null) {txtArmorUpdateClass.Dispose();} if(lblArmorUpdateCovers != null) {lblArmorUpdateCovers.Dispose();} if (cboArmorUpdateCovers != null) {cboArmorUpdateCovers.Dispose();} if (lblArmorUpdateSet != null) {lblArmorUpdateSet.Dispose();} if (cboArmorUpdateSet != null) {cboArmorUpdateSet.Dispose();} if (cboToonArmorName != null) { cboToonArmorName.Dispose(); } if(btnInventoryArmor != null) btnInventoryArmor.Dispose(); if(btnClearListArmorAvailable != null) btnClearListArmorAvailable.Dispose(); if (btnListArmorAvailable != null) btnListArmorAvailable.Dispose(); ArmorHudView = null; } catch (Exception ex) { LogError(ex); } return; }
private void RenderInventoryHud() { try { if (InventoryHudView != null) { DisposeInventoryHud(); } if (armorSettingsFilename == "" || armorSettingsFilename == null) { armorSettingsFilename = GearDir + @"\ArmorSettings.xml"; } if (nInventoryHudWidth == 0) { try { getArmorHudSettings(); } catch (Exception ex) { LogError(ex); } } if (nInventoryHudWidth == 0) { nInventoryHudWidth = nInventoryHudFirstWidth; } if (nInventoryHudHeight == 0) { nInventoryHudHeight = nInventoryHudFirstHeight; } InventoryHudView = new HudView("Gear", nInventoryHudWidth, nInventoryHudHeight, new ACImage(0x6AA5)); InventoryHudView.UserAlphaChangeable = false; InventoryHudView.ShowInBar = false; InventoryHudView.UserResizeable = false; InventoryHudView.Visible = true; InventoryHudView.Ghosted = false; InventoryHudView.UserMinimizable = true; InventoryHudView.UserClickThroughable = false; InventoryHudTabView = new HudTabView(); InventoryHudView.Controls.HeadControl = InventoryHudTabView; InventoryHudTabLayout = new HudFixedLayout(); InventoryHudTabView.AddTab(InventoryHudTabLayout,"Inventory"); InventoryHudView.LoadUserSettings(); InventoryHudSettings = new HudFixedLayout(); InventoryHudTabView.AddTab(InventoryHudSettings, "Settings"); InventoryHudTabView.OpenTabChange += InventoryHudTabView_OpenTabChange; InventoryHudView.Resize += InventoryHudView_Resize; InventoryHudView.UserResizeable = true; RenderInventoryTabLayout(); InventoryHudView.VisibleChanged += InventoryHudView_VisibleChanged; } catch (Exception ex) { LogError(ex); } return; }
private void DisposeInventoryHud() { try { SaveInventorySettings(); clearListVariables(); UnsubscribeInventoryEvents(); try { DisposeInventoryTabLayout(); } catch { } try { DisposeInventorySettingsLayout(); } catch { } if (InventoryHudSettings != null) { InventoryHudSettings.Dispose(); } if (InventoryHudTabLayout != null) { InventoryHudTabLayout.Dispose(); } if (InventoryHudTabView != null) { InventoryHudTabView.Dispose(); } if (InventoryHudTabView != null) { InventoryHudView.Dispose(); } InventoryHudView = null; } catch (Exception ex) { LogError(ex); } return; }
private void DisposeWorkersHud() { try { if (WorkersHudView == null) { return; } MyWorkers.Clear(); MyWorkers = null; ClearWorkersVariables(); if (WorkersDisplayHudTabLayout != null) { DisposeWorkersDisplayHudView(); } try { DisposeWorkersTabLayout(); } catch { } try { DisposeWorkerSpecificsTab(); } catch { } if (WorkersTabLayout != null) { WorkersTabLayout.Dispose(); } if (WorkerSpecificsTabLayout != null) { WorkerSpecificsTabLayout.Dispose(); } if (WorkersHudTabView != null) { WorkersHudTabView.Dispose(); } if (WorkersHudView != null) { WorkersHudView.Dispose(); } WorkersHudView = null; } catch (Exception ex) { LogError(ex); } return; }
private void DisposeKillTaskPanel() { try { if(TaskHudView == null) {return;} TaskIncompleteList.Click -= TaskIncompleteList_Click; TaskCompleteList.Click -= TaskCompleteList_Click; KillTaskList.Click -= KillTaskList_Click; KillTaskNew.Hit -= KillTaskNew_Hit; KillTaskDelete.Hit -= KillTaskDelete_Hit; KillTaskEdit.Hit -= KillTaskEdit_Hit; CollectTaskNew.Hit -= CollectTaskNew_Hit; CollectTaskDelete.Hit -= CollectTaskDelete_Hit; CollectTaskEdit.Hit -= CollectTaskEdit_Hit; CollectTaskList.Click -= CollectTaskList_Click; TaskHudView.Resize -= TaskHudView_Resize; TaskHudView.Dispose(); TaskTabView.Dispose(); TaskIncompleteLayout.Dispose(); IncTaskLabel1.Dispose(); IncTaskLabel2.Dispose(); TaskIncompleteList.Dispose(); TaskCompleteLayout.Dispose(); CompTaskLabel1.Dispose(); CompTaskLabel2.Dispose(); KillTaskLayout.Dispose(); KillTaskSelected.Dispose(); KillTaskNew.Dispose(); KillTaskDelete.Dispose(); KillTaskEdit.Dispose(); KTPanelLabel1.Dispose(); KTPanelLabel2.Dispose(); KillTaskList.Dispose(); CollectTaskLayout.Dispose(); CollectTaskSelected.Dispose(); CollectTaskNew.Dispose(); CollectTaskDelete.Dispose(); CollectTaskEdit.Dispose(); CTPanelLabel1.Dispose(); CTPanelLabel2.Dispose(); CollectTaskList.Dispose(); TaskHudView = null; }catch(Exception ex){LogError(ex);} }
private void DisposeCurrentTargetDebuffView() { try { if(CurrentTargetDebuffView == null){return;} CurrentTargetDebuffView.Dispose(); CurrentTargetDebuffTabView.Dispose(); CurrentTargetDebuffLayout.Dispose(); CurrentTargetDebuffView = null; }catch(Exception ex){LogError(ex);} }
private void RenderDynamicRemoteGear() { try { if(DynamicGearRemoteView != null) { DisposeDynamicRemote(); } AssembleDGRControls(); int DGRViewHeight = 35 + 35 * DGRControlsList.Count + 35 + 10; DynamicGearRemoteView = new HudView("", 35, DGRViewHeight, GearGraphics.RemoteGearIcon, false, "RemoteGear"); DynamicGearRemoteView.ShowInBar = false; DynamicGearRemoteView.UserAlphaChangeable = false; DynamicGearRemoteView.Visible = true; DynamicGearRemoteView.UserClickThroughable = false; DynamicGearRemoteView.UserGhostable = true; DynamicGearRemoteView.UserMinimizable = false; DynamicGearRemoteView.UserResizeable = false; DynamicGearRemoteView.LoadUserSettings(); DynamicGearRemoteTabView = new HudTabView(); DynamicGearRemoteView.Controls.HeadControl = DynamicGearRemoteTabView; DynamicGearRemoteLayout = new HudFixedLayout(); DynamicGearRemoteTabView.AddTab(DynamicGearRemoteLayout, ""); DynamicGearRemoteClock = new HudStaticText(); DynamicGearRemoteLayout.AddControl(DynamicGearRemoteClock, new Rectangle(0,4,30,16)); DynamicGearRemoteClock.FontHeight = 8; SecondsTimer.Tick += DynamicGearClock; for(int i = 0; i < DGRControlsList.Count; i++) { DynamicGearRemoteLayout.AddControl(DGRControlsList[i].ControlPictureBox, new Rectangle(2, 35 + 35 * i, 25,25)); VirindiViewService.TooltipSystem.AssociateTooltip(DGRControlsList[i].ControlPictureBox, DGRControlsList[i].ToolTipName); } DynamicRemoteFoundryButton = new HudImageButton(); DynamicRemoteFoundryButton.CanSticky = true; DynamicRemoteFoundryButton.Image_Down = CreateIconFromResource("FoundryOn.gif"); DynamicRemoteFoundryButton.Image_Up = CreateIconFromResource("FoundryOff.gif"); DynamicRemoteFoundryButton.Image_Background = GearGraphics.GB_BACKGROUND; DynamicGearRemoteLayout.AddControl(DynamicRemoteFoundryButton, new Rectangle(2,35 + 35 * DGRControlsList.Count, 25, 25)); if(mGeneralSettings.FoundrySettings.FoundyEnabled) {DynamicRemoteFoundryButton.StickyDown = true;} DynamicRemoteFoundryButton.StickyDownStateChanged += DynamicRemoteFoundryButton_Hit; }catch(Exception ex){LogError(ex);} }
private void DisposeTacticianHud() { try { if(TacticianHudView == null){return;} TacticianTrackCreature.Change -= TacticianTrackCreature_Change; TacticianTrackItem.Change -= TacticianTrackItem_Change; TacticianTrackLife.Change -= TacticianTrackLife_Change; TacticianTrackVoid.Change -= TacticianTrackVoid_Change; TacticianShowAll.Change -= TacticianShowAll_Change; TacticianCurrentTargetBar.Change -= TacticianCurrentTargetBar_Chanage; TacticianHudView.Resize -= TacticianHudView_Resize; TacticianHudView.VisibleChanged -= TacticianHudView_VisibleChanged; TacticianDiplayList.Click -= TacticianDiplayList_Click; TacticianLabel1.Dispose(); TacticianLabel2.Dispose(); TacticianLabel3.Dispose(); TacticianHudView.Dispose(); TacticianHudTabView.Dispose(); TacticianTabLayout.Dispose(); TacticianSettingsLayout.Dispose(); TacticianDiplayList.Dispose(); TacticianTrackCreature.Dispose(); TacticianTrackItem.Dispose(); TacticianTrackLife.Dispose(); TacticianTrackVoid.Dispose(); TacticianShowAll.Dispose(); TacticianCurrentTargetBar.Dispose(); TacticianHudView = null; }catch(Exception ex){LogError(ex);} }
private void DisposeCurrentTargetDebuffView() { try { if(CurrentTargetDebuffView == null){return;} CurrentTargetDebuffView.VisibleChanged -= CurrentTargetDebuffView_VisibleChanged; if(CurrentTargetDebuffList.Count != 0) { foreach(var debuff in CurrentTargetDebuffList) { debuff.Dispose(); } } CurrentTargetDebuffList.Clear(); CurrentTargetDebuffView.Dispose(); CurrentTargetDebuffTabView.Dispose(); CurrentTargetDebuffLayout.Dispose(); CurrentTargetDebuffView = null; }catch(Exception ex){LogError(ex);} }
private void RenderFocusHud() { try { if(FocusHudView != null) { DisposeFocusHud(); } FocusHudView = new HudView(String.Empty, 110, 130, new ACImage(0x6AA3)); FocusHudView.UserAlphaChangeable = false; FocusHudView.ShowInBar = false; FocusHudView.UserResizeable = false; FocusHudView.Visible = true; FocusHudView.UserClickThroughable = false; FocusHudView.UserMinimizable = true; FocusHudView.UserGhostable = true; FocusHudView.LoadUserSettings(); FocusHudTabView = new HudTabView(); FocusHudView.Controls.HeadControl = FocusHudTabView; FocusHudLayout = new HudFixedLayout(); FocusHudTabView.AddTab(FocusHudLayout, "Focus"); FocusTargetName = new HudStaticText(); FocusHudLayout.AddControl(FocusTargetName, new Rectangle(0,0,100,16)); FocusTargetName.Text = String.Empty; FocusTargetPicture = new HudPictureBox(); FocusHudLayout.AddControl(FocusTargetPicture, new Rectangle(20,20,60,60)); FocusTargetPicture.Image = new ACImage(Color.Black); FocusTargetHealth = new HudProgressBar(); FocusHudLayout.AddControl(FocusTargetHealth, new Rectangle(5,90,100,20)); FocusTargetHealth.ProgressEmpty = EmptyBar; FocusTargetHealth.ProgressFilled = RedBar; FocusTargetHealth.Position = 0; FocusTargetHealth.Max = 100; FocusTargetHealth.Min = 0; FocusHudView.VisibleChanged += FocusHudView_VisibleChanged; FocusTargetPicture.Hit += FocusTargetPicture_Hit; FiveSecondTimer.Tick += Focus_OnTimerDo; UpdateFocusHud(); }catch(Exception ex){LogError(ex);} }
private void RenderCurrentTargetDebuffBar() { try { if(CurrentTargetDebuffView != null) { DisposeCurrentTargetDebuffView(); } CurrentTargetDebuffView = new HudView("Current Target", 120, 40, new ACImage(0x6AA3)); CurrentTargetDebuffView.UserAlphaChangeable = false; CurrentTargetDebuffView.ShowInBar = false; CurrentTargetDebuffView.UserResizeable = false; CurrentTargetDebuffView.Visible = true; CurrentTargetDebuffView.UserClickThroughable = false; CurrentTargetDebuffView.UserMinimizable = true; CurrentTargetDebuffView.UserGhostable = true; CurrentTargetDebuffView.LoadUserSettings(); CurrentTargetDebuffTabView = new HudTabView(); CurrentTargetDebuffView.Controls.HeadControl = CurrentTargetDebuffTabView; CurrentTargetDebuffLayout = new HudFixedLayout(); CurrentTargetDebuffTabView.AddTab(CurrentTargetDebuffLayout, "Debuffs"); CurrentTargetDebuffList = new List<HudImageStack>(); CurrentTargetDebuffView.VisibleChanged += CurrentTargetDebuffView_VisibleChanged; }catch(Exception ex){LogError(ex);} }
private void RenderArmorHud() { try { if (ArmorHudView != null) { DisposeArmorHud(); } if (armorSettingsFilename == "" || armorSettingsFilename == null) { armorSettingsFilename = GearDir + @"\ArmorSettings.xml"; } if (genArmorFilename == "" || genArmorFilename == null) { genArmorFilename = currDir + @"\allToonsArmor.xml"; } if (!File.Exists(genArmorFilename)) { XDocument tempgenArmorDoc = new XDocument(new XElement("Objs")); tempgenArmorDoc.Save(genArmorFilename); tempgenArmorDoc = null; } if (ArmorHudWidth == 0) { getArmorHudSettings(); } if (ArmorHudWidth == 0 || ArmorHudWidth<988) { ArmorHudWidth = ArmorHudFirstWidth; } if (ArmorHudHeight == 0 || ArmorHudHeight<575) { ArmorHudHeight = ArmorHudFirstHeight; } ArmorHudView = new HudView("Armor", ArmorHudWidth, ArmorHudHeight, new ACImage(0x6AA5)); ArmorHudView.UserAlphaChangeable = false; ArmorHudView.ShowInBar = false; ArmorHudView.UserResizeable = false; ArmorHudView.Visible = true; ArmorHudView.Ghosted = false; ArmorHudView.UserMinimizable = true; ArmorHudView.UserClickThroughable = false; ArmorHudView.LoadUserSettings(); ArmorHudTabView = new HudTabView(); ArmorHudView.Controls.HeadControl = ArmorHudTabView; ArmorHudTabLayout = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorHudTabLayout, "Armor"); ArmorUpdateHudTabLayout = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorUpdateHudTabLayout, "Update Armor"); ArmorHudSettings = new HudFixedLayout(); ArmorHudTabView.AddTab(ArmorHudSettings, "Settings"); ArmorHudTabView.OpenTabChange += ArmorHudTabView_OpenTabChange; ArmorHudView.VisibleChanged += ArmorHudView_VisibleChanged; ArmorHudView.Resize += ArmorHudView_Resize; RenderArmorTabLayout(); } catch (Exception ex) { LogError(ex); } return; }
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); } }
public void RenderButlerHud() { try { if(ButlerHudView != null) { DisposeButlerHud(); } ButlerHudView = new HudView("GearButler", mGeneralSettings.GearWindowSettings.ButlerHudWidth, mGeneralSettings.GearWindowSettings.ButlerHudHeight, new ACImage(0x6AA3)); ButlerHudView.UserAlphaChangeable = false; ButlerHudView.ShowInBar = false; ButlerHudView.Visible = true; ButlerHudView.UserClickThroughable = false; ButlerHudView.UserMinimizable = true; ButlerHudView.UserResizeable = true; ButlerHudView.LoadUserSettings(); ButlerHudTabView = new HudTabView(); ButlerHudView.Controls.HeadControl = ButlerHudTabView; //ButlerTab ButlerHudTabLayout = new HudFixedLayout(); ButlerHudTabView.AddTab(ButlerHudTabLayout, "Butler"); ButlerHudCurrentSelectionLabel = new HudStaticText(); ButlerHudCurrentSelectionLabel.Text = "Current Selection"; ButlerHudCurrentSelectionLabel.TextAlignment = VirindiViewService.WriteTextFormats.Center; ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionLabel, new Rectangle(75, 0, 150, 16)); ButlerHudUseCurrentSelection = new HudButton(); ButlerHudUseCurrentSelection.Text = "Use"; ButlerHudTabLayout.AddControl(ButlerHudUseCurrentSelection, new Rectangle(5,5,50,20)); ButlerHudDestoryCurrentSelection = new HudButton(); ButlerHudDestoryCurrentSelection.Text = "Destroy"; ButlerHudTabLayout.AddControl(ButlerHudDestoryCurrentSelection, new Rectangle(245,5,50,20)); ButlerHudSalvageCurrentSelection = new HudButton(); ButlerHudSalvageCurrentSelection.Text = "Salvage"; ButlerHudTabLayout.AddControl(ButlerHudSalvageCurrentSelection, new Rectangle(245,30,50,20)); if(AetherCharacter.IsSkillTrainedOrSpec(ASkillKeyValues.Lockpick)) { ButlerHudPickCurrentSelection = new HudButton(); ButlerHudPickCurrentSelection.Text = "Pick"; ButlerHudTabLayout.AddControl(ButlerHudPickCurrentSelection, new Rectangle(5,30,50,20)); } ButlerHudCurrentSelectionIcon = new HudImageStack(); ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionIcon, new Rectangle(135,20,30,30)); ButlerHudCurrentSelectionText = new HudStaticText(); ButlerHudCurrentSelectionText.Text = null; ButlerHudCurrentSelectionText.TextAlignment = VirindiViewService.WriteTextFormats.Center; ButlerHudTabLayout.AddControl(ButlerHudCurrentSelectionText, new Rectangle(0,50,300,16)); ButlerHudSearchBox = new HudTextBox(); ButlerHudSearchBox.Text = String.Empty; ButlerHudTabLayout.AddControl(ButlerHudSearchBox, new Rectangle(0,80,200,20)); ButlerHudSearchButton = new HudButton(); ButlerHudSearchButton.Text = "Search"; ButlerHudTabLayout.AddControl(ButlerHudSearchButton, new Rectangle(205,80,40,20)); ButlerHudClearSearchButton = new HudButton(); ButlerHudClearSearchButton.Text = "Reset"; ButlerHudTabLayout.AddControl(ButlerHudClearSearchButton, new Rectangle(250,80,40,20)); ButlerQuickSortLabel = new HudStaticText(); ButlerQuickSortLabel.FontHeight = 8; ButlerQuickSortLabel.Text = "QSort:"; ButlerHudTabLayout.AddControl(ButlerQuickSortLabel, new Rectangle(0,110,30,16)); ButlerQuickSortEquipped = new HudImageButton(); ButlerQuickSortEquipped.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortEquipped.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortEquipped.Image_Up = GearGraphics.GB_EQUIPPED_ICON; ButlerQuickSortEquipped.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortEquipped, new Rectangle(40,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortEquipped, "Equipped"); ButlerQuickSortUnequipped = new HudImageButton(); ButlerQuickSortUnequipped.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortUnequipped.Image_Up = GearGraphics.GB_MAIN_PACK_ICON; ButlerQuickSortUnequipped.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortUnequipped.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortUnequipped, new Rectangle(60,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortUnequipped, "Unequipped"); ButlerQuickSortStorage = new HudImageButton(); ButlerQuickSortStorage.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortStorage.Image_Up = GearGraphics.GB_STORE_ICON; ButlerQuickSortStorage.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortStorage.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortStorage, new Rectangle(80,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortStorage, "Open Storage"); ButlerQuickSortMelee = new HudImageButton(); ButlerQuickSortMelee.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortMelee.Image_Up = GearGraphics.GB_MELEE_ICON; ButlerQuickSortMelee.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortMelee.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortMelee, new Rectangle(100,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortMelee, "Melee Weapons"); ButlerQuickSortMissile = new HudImageButton(); ButlerQuickSortMissile.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortMissile.Image_Up = GearGraphics.GB_MISSILE_ICON; ButlerQuickSortMissile.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortMissile.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortMissile, new Rectangle(120,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortMissile, "Missile Weapons"); ButlerQuickSortCaster = new HudImageButton(); ButlerQuickSortCaster.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortCaster.Image_Up = GearGraphics.GB_CASTER_ICON; ButlerQuickSortCaster.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortCaster.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortCaster, new Rectangle(140,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortCaster, "Magical Casters"); ButlerQuickSortArmor = new HudImageButton(); ButlerQuickSortArmor.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortArmor.Image_Up = GearGraphics.GB_ARMOR_ICON; ButlerQuickSortArmor.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortArmor.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortArmor, new Rectangle(160,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortArmor, "Armor"); ButlerQuickSortKeys = new HudImageButton(); ButlerQuickSortKeys.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortKeys.Image_Up = GearGraphics.GB_KEY_ICON; ButlerQuickSortKeys.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortKeys.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortKeys, new Rectangle(180,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortKeys, "Keys"); ButlerQuickSortKeyrings = new HudImageButton(); ButlerQuickSortKeyrings.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortKeyrings.Image_Up = GearGraphics.GB_KEYRING_ICON; ButlerQuickSortKeyrings.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortKeyrings.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortKeyrings, new Rectangle(200,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortKeyrings, "Keyrings"); ButlerQuickSortLockpicks = new HudImageButton(); ButlerQuickSortLockpicks.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortLockpicks.Image_Up = GearGraphics.GB_LOCKPICK_ICON; ButlerQuickSortLockpicks.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortLockpicks.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortLockpicks, new Rectangle(220,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortLockpicks, "Lockpicks"); ButlerQuickSortManastones = new HudImageButton(); ButlerQuickSortManastones.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortManastones.Image_Up = GearGraphics.GB_MANASTONE_ICON; ButlerQuickSortManastones.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortManastones.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortManastones, new Rectangle(240,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortManastones, "Mana Stones"); ButlerQuickSortHealKit = new HudImageButton(); ButlerQuickSortHealKit.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortHealKit.Image_Up = GearGraphics.GB_HEALKIT_ICON; ButlerQuickSortHealKit.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortHealKit.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortHealKit, new Rectangle(260,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortHealKit, "Healing Kits"); ButlerQuickSortPotion = new HudImageButton(); ButlerQuickSortPotion.Image_Down = GearGraphics.GB_SELECT; ButlerQuickSortPotion.Image_Up = GearGraphics.GB_POTION_ICON; ButlerQuickSortPotion.Image_Background = GearGraphics.GB_BACKGROUND; ButlerQuickSortPotion.CanSticky = true; ButlerHudTabLayout.AddControl(ButlerQuickSortPotion, new Rectangle(280,110,16,16)); VirindiViewService.TooltipSystem.AssociateTooltip(ButlerQuickSortPotion, "Potions"); ButlerHudList = new HudList(); ButlerHudList.ControlHeight = 16; ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudStaticText), 175, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudPictureBox), 15, null); ButlerHudList.AddColumn(typeof(HudStaticText), 1, null); ButlerHudTabLayout.AddControl(ButlerHudList, new Rectangle(0, 150, 300, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 220)); ButlerHudSelectedLabel = new HudStaticText(); ButlerHudSelectedLabel.Text = "Items Selected: "; ButlerHudSelectedCount = new HudStaticText(); ButlerHudTabLayout.AddControl(ButlerHudSelectedLabel, new Rectangle(0,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,100,16)); ButlerHudTabLayout.AddControl(ButlerHudSelectedCount, new Rectangle(110,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 70,150,16)); ButlerPackSpacesAvailable = new HudStaticText(); ButlerPackSpaceAvailableLabel = new HudStaticText(); ButlerPackSpaceAvailableLabel.Text = "Inventory status: "; ButlerHudTabLayout.AddControl(ButlerPackSpaceAvailableLabel, new Rectangle(0,mGeneralSettings.GearWindowSettings.ButlerHudHeight - 50 ,100,16)); ButlerHudTabLayout.AddControl(ButlerPackSpacesAvailable, new Rectangle(110, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 50 ,150,16)); ButlerBurdenLabel = new HudStaticText(); ButlerBurdenLabel.Text = "Current Burden: "; ButlerBurden = new HudStaticText(); ButlerHudTabLayout.AddControl(ButlerBurdenLabel, new Rectangle(0, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 100, 16)); ButlerHudTabLayout.AddControl(ButlerBurden, new Rectangle(110, mGeneralSettings.GearWindowSettings.ButlerHudHeight - 30, 150, 16)); if(ButlerHudPickCurrentSelection != null) {ButlerHudPickCurrentSelection.Hit += ButlerHudPickCurrentSelection_Hit;} ButlerHudUseCurrentSelection.Hit += ButlerHudUseCurrentSelection_Hit; ButlerHudDestoryCurrentSelection.Hit += ButlerHudDestoryCurrenSelection_Hit; ButlerHudSalvageCurrentSelection.Hit += ButlerHudSalvageCurrentSelection_Hit; ButlerQuickSortEquipped.StickyDownStateChanged += ButlerQuickSortEquipped_Hit; ButlerQuickSortUnequipped.StickyDownStateChanged += ButlerQuickSortUnequipped_Hit; ButlerQuickSortStorage.StickyDownStateChanged += ButlerQuickSortStorage_Hit; ButlerQuickSortMelee.StickyDownStateChanged += ButlerQuickSortMelee_Hit; ButlerQuickSortMissile.StickyDownStateChanged += ButlerQuickSortMissile_Hit; ButlerQuickSortCaster.StickyDownStateChanged += ButlerQuickSortCaster_Hit; ButlerQuickSortArmor.StickyDownStateChanged += ButlerQuickSortArmor_Hit; ButlerQuickSortKeys.StickyDownStateChanged += ButlerQuickSortKeys_Hit; ButlerQuickSortKeyrings.StickyDownStateChanged += ButlerQuickSortKeyrings_Hit; ButlerQuickSortLockpicks.StickyDownStateChanged += ButlerQuickSortLockpicks_Hit; ButlerQuickSortManastones.StickyDownStateChanged += ButlerQuickSortManastones_Hit; ButlerQuickSortHealKit.StickyDownStateChanged += ButlerQuickSortHealKit_Hit; ButlerQuickSortPotion.StickyDownStateChanged += ButlerQuickSortPotion_Hit; ButlerHudList.Click += ButlerHudList_Click; ButlerHudSearchButton.Hit += ButlerHudSearchButton_Click; ButlerHudClearSearchButton.Hit += ButlerHudClearSearchButton_Click; //ValetTab ValetTabLayout = new HudFixedLayout(); ButlerHudTabView.AddTab(ValetTabLayout, "Valet"); int Half = Convert.ToInt32((double)mGeneralSettings.GearWindowSettings.ButlerHudWidth/(double)2); int HalfButton = Convert.ToInt32((double)mGeneralSettings.GearWindowSettings.ButlerHudWidth/(double)2) - 20; ValetEquipSuit = new HudButton(); ValetEquipSuit.Text = "Equip"; ValetTabLayout.AddControl(ValetEquipSuit, new Rectangle(5,5,HalfButton,20)); ValetCreateSuit = new HudButton(); ValetCreateSuit.Text = "Create"; ValetTabLayout.AddControl(ValetCreateSuit, new Rectangle(Half + 5, 5, HalfButton,20)); ValetTextBoxLabel = new HudStaticText(); ValetTextBoxLabel.Text = "Suit Label:"; ValetTabLayout.AddControl(ValetTextBoxLabel, new Rectangle(0,30,50,16)); ValetNameBox = new HudTextBox(); ValetNameBox.Text = String.Empty; ValetTabLayout.AddControl(ValetNameBox, new Rectangle(10,55,mGeneralSettings.GearWindowSettings.ButlerHudWidth -20, 20)); ValetSlotsLabel = new HudStaticText(); ValetSlotsLabel.Text = "Slots in rotation:"; ValetTabLayout.AddControl(ValetSlotsLabel, new Rectangle(5,80,150,16)); ValetSlotsList = new HudList(); ValetSlotsList.AddColumn(typeof(HudCheckBox), 15, null); ValetSlotsList.AddColumn(typeof(HudStaticText), 150, null); ValetSlotsList.AddColumn(typeof(HudStaticText), 1, null); ValetTabLayout.AddControl(ValetSlotsList, new Rectangle(5,100,mGeneralSettings.GearWindowSettings.ButlerHudWidth - 20, 100)); ValetSuitListLabel = new HudStaticText(); ValetSuitListLabel.Text = "Suits:"; ValetTabLayout.AddControl(ValetSuitListLabel, new Rectangle(0,210,50,16)); ValetSuitList = new HudList(); ValetSuitList.AddColumn(typeof(HudPictureBox), 15, null); ValetSuitList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ButlerHudWidth - 80, null); ValetSuitList.AddColumn(typeof(HudPictureBox), 15, null); ValetSuitList.AddColumn(typeof(HudStaticText), 1, null); ValetTabLayout.AddControl(ValetSuitList, new Rectangle(0,230,mGeneralSettings.GearWindowSettings.ButlerHudWidth - 20,100)); ValetSuitPiecesListLabel = new HudStaticText(); ValetSuitPiecesListLabel.Text = "Pieces:"; ValetTabLayout.AddControl(ValetSuitPiecesListLabel, new Rectangle(0,340,50,16)); ValetSuitPiecesList = new HudList(); ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 15, null); ValetSuitPiecesList.AddColumn(typeof(HudStaticText), 15, null); ValetSuitPiecesList.AddColumn(typeof(HudStaticText), mGeneralSettings.GearWindowSettings.ButlerHudWidth - 104, null); ValetSuitPiecesList.AddColumn(typeof(HudPictureBox), 15, null); ValetSuitPiecesList.AddColumn(typeof(HudStaticText), 1, null); ValetTabLayout.AddControl(ValetSuitPiecesList, new Rectangle(0, 360 ,mGeneralSettings.GearWindowSettings.ButlerHudWidth - 20,100)); ValetSlotsList.Click += ValetSlotsList_Click; ValetEquipSuit.Hit += ValetEquipSuit_Hit; ValetCreateSuit.Hit += ValetCreateSuit_Hit; ValetSuitList.Click += ValetSuitList_Click; ValetSuitPiecesList.Click += ValetSuitPiecesList_Click; AugvisorTabLayout = new HudFixedLayout(); ButlerHudTabView.AddTab(AugvisorTabLayout, "Augvisor"); AugvisorHudList = new HudList(); AugvisorHudList.ControlHeight = 16; AugvisorHudList.AddColumn(typeof(HudStaticText), 50, null); AugvisorHudList.AddColumn(typeof(HudStaticText), 200, null); AugvisorTabLayout.AddControl(AugvisorHudList, new Rectangle(0, 0, 300, mGeneralSettings.GearWindowSettings.ButlerHudHeight)); ButlerHudView.Resize += ButlerHudView_Resize; ButlerHudView.VisibleChanged += ButlerHudView_VisibleChanged; UpdateButlerHudList(); UpdateValetHud(); UpdateAugvisor(); }catch(Exception ex) {LogError(ex);} return; }
private void RenderChiefGearHud() { try { if (ChiefGearHudView != null) { DisposeChiefGear(); } ChiefGearHudView = new HudView("Gear Foundry", 500, 500, new ACImage(28170)); ChiefGearHudView.UserAlphaChangeable = false; ChiefGearHudView.ShowInBar = true; ChiefGearHudView.UserResizeable = false; ChiefGearHudView.Visible = false; ChiefGearHudView.Ghosted = false; ChiefGearHudView.UserMinimizable = true; ChiefGearHudView.UserClickThroughable = false; ChiefGearHudView.LoadUserSettings(); ChiefGearHudTabView = new HudTabView(); ChiefGearHudView.Controls.HeadControl = ChiefGearHudTabView; ChiefGearHudSettings = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudSettings, "Settings"); RenderChiefGearSettingsTab(); ChiefGearHudInspect = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudInspect, "Inspect"); RenderChiefGearInspectTab(); ChiefGearHudFoundry = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudFoundry, "Foundry"); RenderChiefGearFoundryTab(); ChiefGearHudSounds = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudSounds, "Sounds"); RenderChiefGearSoundsTab(); ChiefGearHudAbout = new HudFixedLayout(); ChiefGearHudTabView.AddTab(ChiefGearHudAbout, "About"); lblAboutText1 = new HudStaticText(); lblAboutText1.Text = "GearFoundry is a community development "; ChiefGearHudAbout.AddControl(lblAboutText1, new Rectangle(20, 20, 450, 20)); lblAboutText1a = new HudStaticText(); lblAboutText1a.Text = "platform for multiple plugins."; ChiefGearHudAbout.AddControl(lblAboutText1a, new Rectangle(25, 40, 450, 20)); lblAboutText2 = new HudStaticText(); lblAboutText2.Text = "It consists of notifying, looting, inventorying "; ChiefGearHudAbout.AddControl(lblAboutText2, new Rectangle(20, 70, 450, 20)); lblAboutText2a = new HudStaticText(); lblAboutText2a.Text = "and other options."; ChiefGearHudAbout.AddControl(lblAboutText2a, new Rectangle(25, 90, 450, 20)); lblAboutText3 = new HudStaticText(); lblAboutText3.Text = "The inspiration for GearFoundry was drawn from "; ChiefGearHudAbout.AddControl(lblAboutText3, new Rectangle(20, 120, 450, 20)); lblAboutText3a = new HudStaticText(); lblAboutText3a.Text = "the original Alinco."; ChiefGearHudAbout.AddControl(lblAboutText3a, new Rectangle(25, 140, 450, 20)); lblAboutText4 = new HudStaticText(); lblAboutText4.Text = "Thanks to all who have assisted in development."; ChiefGearHudAbout.AddControl(lblAboutText4, new Rectangle(20, 170, 450, 20)); lblAboutText4a = new HudStaticText(); lblAboutText4a.Text = "SUPPORT EMAIL (bugs, fixes, suggestions):"; ChiefGearHudAbout.AddControl(lblAboutText4a, new Rectangle(25, 190, 450, 20)); lblEditionNumber = new HudStaticText(); lblEditionNumber.Text = "*****@*****.**"; ChiefGearHudAbout.AddControl(lblEditionNumber, new Rectangle(20, 220, 450, 20)); lblOwnRisk = new HudStaticText(); lblOwnRisk.Text = "USE AT YOUR OWN RISK!"; ChiefGearHudAbout.AddControl(lblOwnRisk, new Rectangle(20, 250, 450, 20)); } catch (Exception ex) { LogError(ex); } }
public AskWaterBuyerInteraction( WaterWarsController controller, HudView playerHud, HudView targetPlayerHud, int amount, int salePrice) : base(controller, playerHud, targetPlayerHud) { if (!m_controller.Game.Players.TryGetValue(playerHud.UserId, out m_player)) return; if (!m_controller.Game.Players.TryGetValue(targetPlayerHud.UserId, out m_targetPlayer)) return; m_salePrice = salePrice; m_waterToSell = amount; AskBuyer(); }
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; }