예제 #1
0
        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);}
        }
예제 #2
0
        void RenderInvDisplayHud()
        {
            try
            {
                if (InvDisplayHudView != null)
                {
                    DisposeInvDisplayHudView();
                }

                InvDisplayHudView = new HudView("Inventory PopUp", 230, 400, new ACImage(0x6AA5));
                InvDisplayHudView.UserAlphaChangeable = false;
                InvDisplayHudView.ShowInBar = false;
                InvDisplayHudView.UserResizeable = false;
                InvDisplayHudView.Visible = true;
                InvDisplayHudView.UserMinimizable = true;
                InvDisplayHudView.UserClickThroughable = false;
                InvDisplayHudView.LoadUserSettings();

                InvDisplayHudTabView = new HudTabView();
                InvDisplayHudView.Controls.HeadControl = InvDisplayHudTabView;

                InvDisplayHudTabLayout = new HudFixedLayout();
                InvDisplayHudTabView.AddTab(InvDisplayHudTabLayout, "Item Properties");

                InvDisplayIcon = new HudPictureBox();
                InvDisplayIcon.Image = new ACImage(Color.Black);
                InvDisplayHudTabLayout.AddControl(InvDisplayIcon, new Rectangle(0, 0, 20, 20));

                InvDisplayList = new HudList();
                InvDisplayList.AddColumn(typeof(HudStaticText), 190, null);
                InvDisplayHudTabLayout.AddControl(InvDisplayList, new Rectangle(0,25, 230, 400));

             }
            catch (Exception ex) { LogError(ex); }
        }
예제 #3
0
        private void RenderPortalGearHud()
        {
            try
            {
                if (portalGearHud != null)
                {
                    DisposePortalGearHud();
                }
                if (!File.Exists(portalGearFilename))
                {
                    XDocument tempDoc = new XDocument(new XElement("Portals"));
                    tempDoc.Save(portalGearFilename);
                    tempDoc = null;
                }

                xdocPortalGear = XDocument.Load(portalGearFilename);

                portalGearHud = new VirindiViewService.HudView("", 300, 40, new ACImage(Color.Transparent), false, "PortalGear");
                portalGearHud.ShowInBar = false;
                portalGearHud.UserAlphaChangeable = false;
                portalGearHud.Visible = true;
                portalGearHud.UserClickThroughable = false;
                portalGearHud.UserGhostable = true;
                portalGearHud.UserMinimizable = false;
                portalGearHud.UserResizeable = false;
                portalGearHud.LoadUserSettings();
                portalGear_Head = new HudFixedLayout();
                portalGearHud.Controls.HeadControl = portalGear_Head;
                portalGearTabView = new HudTabView();
                portalGearTabFixedLayout = new HudFixedLayout();
                portalGear_Head.AddControl(portalGearTabView, new Rectangle(0, 0, 300, 40));
                portalGearTabView.AddTab(portalGearTabFixedLayout, "");

                //Clock
                txtPortalGear = new HudStaticText();
                portalGearTabFixedLayout.AddControl(txtPortalGear, new Rectangle(0, 10, 40, 20));
                VirindiViewService.TooltipSystem.AssociateTooltip(txtPortalGear, "Bedtime yet?");

                //Portal Recall
                mPortalGear0 = new HudPictureBox();
                int GR_Recall_Icon = 0x60013AD;
                mPortalGear0.Image = GR_Recall_Icon;
                portalGearTabFixedLayout.AddControl(mPortalGear0, new Rectangle(50, 0, 25, 39));
                VirindiViewService.TooltipSystem.AssociateTooltip(mPortalGear0, "Portal recall");

                mPortalGear0.Hit += (sender, obj) => mPortalGear0_Hit(sender, obj);
              	MasterTimer.Tick += MasterTimer_UpdateClock;
            }
            catch (Exception ex) { LogError(ex); }

            //  Lifestone Recall
            mPortalGear1 = new HudPictureBox();
            int GR_LifestoneRecall_ICON = 0x60024E1;
            mPortalGear1.Image = GR_LifestoneRecall_ICON;
            mPortalGear1.Image = new ACImage(4949);
            portalGearTabFixedLayout.AddControl(mPortalGear1, new Rectangle(80, 2, 25, 39));
            VirindiViewService.TooltipSystem.AssociateTooltip(mPortalGear1, "Lifestone recall");

            mPortalGear1.Hit += (sender, obj) => mPortalGear1_Hit(sender, obj);

            //House Recall
            mPortalGear2 = new HudPictureBox();
            int GR_HouseRecall_ICON = 0x6001A2A;
            mPortalGear2.Image = GR_HouseRecall_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear2, new Rectangle(110, 2, 25, 39));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear2, "House recall");

            mPortalGear2.Hit += (sender, obj) => mPortalGear2_Hit(sender, obj);

            //Mansion Recall
            mPortalGear3 = new HudPictureBox();
            int GR_MansionRecall_ICON = 0x60022DE;
            mPortalGear3.Image = GR_MansionRecall_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear3, new Rectangle(140, 2, 25, 39));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear3, "Mansion recall");

            mPortalGear3.Hit += (sender, obj) => mPortalGear3_Hit(sender, obj);

            //Allegiance Hometown Recall
            mPortalGear4 = new HudPictureBox();
            int GR_AHRecall_ICON = 0x60024DD;
            mPortalGear4.Image = GR_AHRecall_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear4, new Rectangle(170, 2, 25, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear4, "Allegiance Hometown");

            mPortalGear4.Hit += (sender, obj) => mPortalGear4_Hit(sender, obj);

            //Recall Portal I
            mPortalGear5 = new HudPictureBox();
            int GR_RecallI_ICON = 0x60021D6;
            mPortalGear5.Image = GR_RecallI_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear5, new Rectangle(200, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear5, "Portal I recall");

            mPortalGear5.Hit += (sender, obj) => mPortalGear5_Hit(sender, obj);

            //Summon Portal I
            mPortalGear6 = new HudPictureBox();
            int GR_SummonI_ICON = 0x60021DC;
            mPortalGear6.Image = GR_SummonI_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear6, new Rectangle(230, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear6, "Summon Portal I");
            mPortalGear6.Hit += (sender, obj) => mPortalGear6_Hit(sender, obj);

            //Recall Portal II
            mPortalGear7 = new HudPictureBox();
            int GR_RecallII_ICON = 0x60021DA;
            mPortalGear7.Image = GR_RecallII_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear7, new Rectangle(260, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear7, "Recall Portal II");
            mPortalGear7.Hit += (sender, obj) => mPortalGear7_Hit(sender, obj);

            //Summon Portal I
            mPortalGear8 = new HudPictureBox();
            int GR_SummonII_ICON = 0x60021E0;
            mPortalGear8.Image = GR_SummonII_ICON;
            portalGearTabFixedLayout.AddControl(mPortalGear8, new Rectangle(290, 2, 29, 29));
            VirindiViewService.TooltipSystem.AssociateTooltip(mRemoteGear8, "Summon Portal II");
            mPortalGear8.Hit += (sender, obj) => mPortalGear8_Hit(sender, obj);
        }
        private void RenderSalvageTab()
        {
            try
            {
                lstNotifySalvage = new HudList();
                lstNotifySalvage.AddColumn(typeof(HudCheckBox), 16, null);
                lstNotifySalvage.AddColumn(typeof(HudPictureBox), 16, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 100, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 100, null);
                lstNotifySalvage.AddColumn(typeof(HudStaticText), 1, null);
                ChiefGearInspectPageSalvage.AddControl(lstNotifySalvage, new Rectangle(5, 5, 260, 300));

                lblSalvagelblName = new HudStaticText();
                lblSalvagelblName.Text = "Salvage Material: ";
                ChiefGearInspectPageSalvage.AddControl(lblSalvagelblName, new Rectangle(5,310, 250, 16));

                lblSalvageName = new HudStaticText();
                lblSalvageName.Text = "";
                ChiefGearInspectPageSalvage.AddControl(lblSalvageName, new Rectangle(5, 330, 250, 16));

                lblSalvageString = new HudStaticText();
                lblSalvageString.Text= "Salvage Combine String: ";
                ChiefGearInspectPageSalvage.AddControl(lblSalvageString, new Rectangle(5, 360, 150, 16));

                txtSalvageString = new HudTextBox();
                txtSalvageString.Text = "";
                ChiefGearInspectPageSalvage.AddControl(txtSalvageString, new Rectangle(5, 380, 150, 20));

                btnUpdateSalvage = new HudButton();
                btnUpdateSalvage.Text = "Update";
                ChiefGearInspectPageSalvage.AddControl(btnUpdateSalvage, new Rectangle(5, 410, 90, 16));

                chkSalvageEnabled = new HudCheckBox();
                chkSalvageEnabled.Text = "Enabled";
                ChiefGearInspectPageSalvage.AddControl(chkSalvageEnabled, new Rectangle(250, 410, 90, 16));

                imgSalvageAuto = new HudPictureBox();
                ChiefGearInspectPageSalvage.AddControl(imgSalvageAuto, new Rectangle(250, 360, 25, 25));

                lstNotifySalvage.Click += lstNotifySalvage_Click;
               	txtSalvageString.LostFocus += txtSalvageString_LostFocus;
                btnUpdateSalvage.Hit += btnUpdateSalvage_Hit;
                chkSalvageEnabled.Hit += chkSalvageEnabled_Hit;
                imgSalvageAuto.Hit += imgSalvageAuto_Hit;

                _UpdateSalvagePanel();

            }catch(Exception ex){LogError(ex);}
        }