Exemple #1
0
        private void RenderHorizontalQuickSlots()
        {
            if (quickieshHud != null)
            {
                DisposeHorizontalQuickSlots();
            }

             if (!File.Exists(quickSlotshFilename))
                {
                    XDocument tempQuickDoc = new XDocument(new XElement("Objs"));
                    tempQuickDoc.Save(quickSlotshFilename);
                    tempQuickDoc = null;
                }

                xdocQuickSlotsh = XDocument.Load(quickSlotshFilename);
                nCountH = xdocQuickSlotsh.Root.Descendants().Count();
                nCountH = nCountH / 5;

                quickieshHud = new VirindiViewService.HudView("", 30 + 25*nCountH, 40, new ACImage(Color.Transparent),false,"quickieshhud");
                quickieshHud.ShowInBar = false;
                quickieshHud.UserAlphaChangeable = false;
                quickieshHud.Visible = true;
                quickieshHud.UserGhostable = true;
                quickieshHud.UserMinimizable = false;
                 quickieshHud.UserClickThroughable = false;
                quickieshHud.UserResizeable = false;
                quickieshHud.LoadUserSettings();

                quickieshTabView = new HudTabView();
                quickieshHud.Controls.HeadControl = quickieshTabView;
                quickieshTabFixedLayout = new HudFixedLayout();

                quickieshTabView.AddTab(quickieshTabFixedLayout, "Horizontal Switchgear");

                btnQuickieshAdd = new VirindiViewService.Controls.HudButton();
                btnQuickieshAdd.Text = "+";
                btnQuickieshAdd.Visible = true;

                btnQuickieshDual = new VirindiViewService.Controls.HudButton();
                btnQuickieshDual.Text = "~";
                btnQuickieshDual.Visible = true;

                btnQuickieshRemove = new VirindiViewService.Controls.HudButton();
                btnQuickieshRemove.Text = "-";
                btnQuickieshRemove.Visible = true;

            quickieshTabFixedLayout.AddControl(btnQuickieshAdd, new Rectangle(0, 0, 12, 12));
            quickieshTabFixedLayout.AddControl(btnQuickieshRemove, new Rectangle(15, 0, 12, 12));
            quickieshTabFixedLayout.AddControl(btnQuickieshDual, new Rectangle(30, 0, 12, 12));

            mQuickStackh0 = new HudImageStack();
            mQuickStackh1 = new HudImageStack();
            mQuickStackh2 = new HudImageStack();
            mQuickStackh3 = new HudImageStack();
            mQuickStackh4 = new HudImageStack();
            mQuickStackh5 = new HudImageStack();
            mQuickStackh6 = new HudImageStack();
            mQuickStackh7 = new HudImageStack();
            mQuickStackh8 = new HudImageStack();
            mQuickStackh9 = new HudImageStack();
            mQuickStackh10 = new HudImageStack();
            mQuickStackh11 = new HudImageStack();
            mQuickStackh12 = new HudImageStack();
            mQuickStackh13 = new HudImageStack();
            mQuickStackh14 = new HudImageStack();

             hst.Add(mQuickStackh0);
            hst.Add(mQuickStackh1);
            hst.Add(mQuickStackh2);
            hst.Add(mQuickStackh3);
            hst.Add(mQuickStackh4);
            hst.Add(mQuickStackh5);
            hst.Add(mQuickStackh6);
            hst.Add(mQuickStackh7);
            hst.Add(mQuickStackh8);
            hst.Add(mQuickStackh9);
            hst.Add(mQuickStackh10);
            hst.Add(mQuickStackh11);
            hst.Add(mQuickStackh12);
            hst.Add(mQuickStackh13);
            hst.Add(mQuickStackh14);

            hID.Add(nQuickieIDh0);
            hID.Add(nQuickieIDh1);
            hID.Add(nQuickieIDh2);
            hID.Add(nQuickieIDh3);
            hID.Add(nQuickieIDh4);
            hID.Add(nQuickieIDh5);
            hID.Add(nQuickieIDh6);
            hID.Add(nQuickieIDh7);
            hID.Add(nQuickieIDh8);
            hID.Add(nQuickieIDh9);
            hID.Add(nQuickieIDh10);
            hID.Add(nQuickieIDh11);
            hID.Add(nQuickieIDh12);
            hID.Add(nQuickieIDh13);
            hID.Add(nQuickieIDh14);

            btnQuickieshAdd.Hit += (sender, obj) => btnQuickieshAdd_Hit(sender, obj);
            btnQuickieshRemove.Hit += (sender, obj) => btnQuickieshRemove_Hit(sender, obj);
            btnQuickieshDual.Hit += (sender, obj) => btnQuickieshDual_Hit(sender, obj);

            if (xdocQuickSlotsh.Root.HasElements)
            {
                doGetData(xdocQuickSlotsh, quickSlotshFilename);
            }
        }
Exemple #2
0
        private void RenderVerticalQuickSlots()
        {
            if (quickiesvHud != null)
            {
                DisposeVerticalQuickSlots();
            }
            if (!File.Exists(quickSlotsvFilename))
            {
                XDocument tempQDoc = new XDocument(new XElement("Objs"));
                tempQDoc.Save(quickSlotsvFilename);
                tempQDoc = null;
            }

            xdocQuickSlotsv = XDocument.Load(quickSlotsvFilename);

            nCountV = xdocQuickSlotsv.Root.Descendants().Count();
            nCountV = nCountV / 5;

            quickiesvHud = new VirindiViewService.HudView("", 30,30+ 25*nCountV, new ACImage(Color.Transparent),false,"quickiesvhud");
            quickiesvHud.ShowInBar = false;
            quickiesvHud.UserAlphaChangeable = false;
            quickiesvHud.Visible = true;
            quickiesvHud.UserClickThroughable = false;
            quickiesvHud.UserGhostable = true;
            quickiesvHud.UserMinimizable = false;
            quickiesvHud.UserResizeable =  false;
            quickiesvHud.LoadUserSettings();
            quickiesvTabView = new HudTabView();
            quickiesvHud.Controls.HeadControl = quickiesvTabView;
            quickiesvTabFixedLayout = new HudFixedLayout();

            quickiesvTabView.AddTab(quickiesvTabFixedLayout, "");

                btnQuickiesvAdd = new VirindiViewService.Controls.HudButton();
                btnQuickiesvAdd.Text = "+";
                btnQuickiesvAdd.Visible = true;

                btnQuickiesvDual = new VirindiViewService.Controls.HudButton();
                btnQuickiesvDual.Text = "~";
                btnQuickiesvDual.Visible = true;

                btnQuickiesvRemove = new VirindiViewService.Controls.HudButton();
                btnQuickiesvRemove.Text = "-";
                btnQuickiesvRemove.Visible = true;

                quickiesvTabFixedLayout.AddControl(btnQuickiesvAdd, new Rectangle(0, 0, 12, 12));
                quickiesvTabFixedLayout.AddControl(btnQuickiesvRemove, new Rectangle(15, 0, 12, 12));
                quickiesvTabFixedLayout.AddControl(btnQuickiesvDual, new Rectangle(6, 15, 12, 12));

            mQuickStackv0 = new HudImageStack();
            mQuickStackv1 = new HudImageStack();
            mQuickStackv2 = new HudImageStack();
            mQuickStackv3 = new HudImageStack();
            mQuickStackv4 = new HudImageStack();
            mQuickStackv5 = new HudImageStack();
            mQuickStackv6 = new HudImageStack();
            mQuickStackv7 = new HudImageStack();
            mQuickStackv8 = new HudImageStack();
            mQuickStackv9 = new HudImageStack();
            mQuickStackv10 = new HudImageStack();
            mQuickStackv11 = new HudImageStack();
            mQuickStackv12 = new HudImageStack();
            mQuickStackv13 = new HudImageStack();
            mQuickStackv14 = new HudImageStack();

            vst.Add(mQuickStackv0);
            vst.Add(mQuickStackv1);
            vst.Add(mQuickStackv2);
            vst.Add(mQuickStackv3);
            vst.Add(mQuickStackv4);
            vst.Add(mQuickStackv5);
            vst.Add(mQuickStackv6);
            vst.Add(mQuickStackv7);
            vst.Add(mQuickStackv8);
            vst.Add(mQuickStackv9);
            vst.Add(mQuickStackv10);
            vst.Add(mQuickStackv11);
            vst.Add(mQuickStackv12);
            vst.Add(mQuickStackv13);
            vst.Add(mQuickStackv14);

            vID.Add(nQuickieIDv0);
            vID.Add(nQuickieIDv1);
            vID.Add(nQuickieIDv2);
            vID.Add(nQuickieIDv3);
            vID.Add(nQuickieIDv4);
            vID.Add(nQuickieIDv5);
            vID.Add(nQuickieIDv6);
            vID.Add(nQuickieIDv7);
            vID.Add(nQuickieIDv8);
            vID.Add(nQuickieIDv9);
            vID.Add(nQuickieIDv10);
            vID.Add(nQuickieIDv11);
            vID.Add(nQuickieIDv12);
            vID.Add(nQuickieIDv13);
            vID.Add(nQuickieIDv14);

            btnQuickiesvAdd.Hit += (sender, obj) => btnQuickiesvAdd_Hit(sender, obj);
            btnQuickiesvRemove.Hit += (sender, obj) => btnQuickiesvRemove_Hit(sender, obj);
            btnQuickiesvDual.Hit += (sender, obj) => btnQuickiesvDual_Hit(sender, obj);

            if (xdocQuickSlotsv.Root.HasElements)
            {
                doGetData(xdocQuickSlotsv, quickSlotsvFilename);
            }
        }
        private void RenderVerticalQuickSlots()
        {
            try{
            if (quickiesvHud != null)
            {
                DisposeVerticalQuickSlots();
            }
            qsvswitches = new List<QSControls>();
            quickiesvHud = new VirindiViewService.HudView("", 30,30+ 25*mCharacterSettings.vQuickSlotItems.Count, new ACImage(Color.Transparent),false,"quickiesvhud");
            quickiesvHud.ShowInBar = false;
            quickiesvHud.UserAlphaChangeable = false;
            quickiesvHud.Visible = true;
            quickiesvHud.UserClickThroughable = false;
            quickiesvHud.UserGhostable = true;
            quickiesvHud.UserMinimizable = false;
            quickiesvHud.UserResizeable =  false;
            quickiesvHud.LoadUserSettings();
            quickiesvTabView = new HudTabView();
            quickiesvHud.Controls.HeadControl = quickiesvTabView;
            quickiesvTabFixedLayout = new HudFixedLayout();

            quickiesvTabView.AddTab(quickiesvTabFixedLayout, "");
                try{
                btnQuickiesvAdd = new VirindiViewService.Controls.HudButton();
                btnQuickiesvAdd.Text = "+";
                btnQuickiesvAdd.Visible = true;

                btnQuickiesvDual = new VirindiViewService.Controls.HudButton();
                btnQuickiesvDual.Text = "~";
                btnQuickiesvDual.Visible = true;

                btnQuickiesvRemove = new VirindiViewService.Controls.HudButton();
                btnQuickiesvRemove.Text = "-";
                btnQuickiesvRemove.Visible = true;

                quickiesvTabFixedLayout.AddControl(btnQuickiesvAdd, new Rectangle(0, 0, 12, 12));
                quickiesvTabFixedLayout.AddControl(btnQuickiesvRemove, new Rectangle(15, 0, 12, 12));
                quickiesvTabFixedLayout.AddControl(btnQuickiesvDual, new Rectangle(6, 15, 12, 12));
                }
                catch (Exception ex) { LogError(ex); }

                if (mCharacterSettings.vQuickSlotItems.Count > 0)
                {
                   for (int i = 0; i < mCharacterSettings.vQuickSlotItems.Count; i++)
                     {
                        doCreateNewQuickie(mCharacterSettings.vQuickSlotItems,i);

                        doCreateStack();
                        qsvswitches.Add(mQuickieControl);

                        quickiesvTabFixedLayout.AddControl(mQuickieControl.QuickSlotStack, new Rectangle(2, 30 + 20 * i, 20, 20));

                        mQuickieControl.QuickSlotStack.Hit += (sender, obj) => mvQuickStacks_Hit(sender, obj);
                       //  VirindiViewService.TooltipSystem.AssociateTooltip(QSControlsList[i].QuickSlotToolTip);// QuickSlotToolTip.ToString();
                     }
               }

            btnQuickiesvAdd.Hit += (sender, obj) => btnQuickiesvAdd_Hit(sender, obj);
            btnQuickiesvRemove.Hit += (sender, obj) => btnQuickiesvRemove_Hit(sender, obj);
            btnQuickiesvDual.Hit += (sender, obj) => btnQuickiesvDual_Hit(sender, obj);
              }
              catch (Exception ex) { LogError(ex); }
        }
Exemple #4
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 RenderHorizontalQuickSlots()
        {
            try{

            if (quickieshHud != null)
            {
                DisposeHorizontalQuickSlots();
            }

            qshswitches = new List<QSControls>();
            quickieshHud = new VirindiViewService.HudView("", 30 + 25*mCharacterSettings.hQuickSlotItems.Count, 40, new ACImage(Color.Transparent),false,"quickieshhud");
            quickieshHud.ShowInBar = false;
            quickieshHud.UserAlphaChangeable = false;
            quickieshHud.Visible = true;
            quickieshHud.UserClickThroughable = false;
            quickieshHud.UserGhostable = true;
            quickieshHud.UserMinimizable = false;
            quickieshHud.UserResizeable = false;
            quickieshHud.LoadUserSettings();

            quickieshTabView = new HudTabView();
            quickieshHud.Controls.HeadControl = quickieshTabView;
            quickieshTabFixedLayout = new HudFixedLayout();

            try
            {
                quickieshTabView.AddTab(quickieshTabFixedLayout, "Horizontal Switchgear");

                btnQuickieshAdd = new VirindiViewService.Controls.HudButton();
                btnQuickieshAdd.Text = "+";
                btnQuickieshAdd.Visible = true;

                btnQuickieshDual = new VirindiViewService.Controls.HudButton();
                btnQuickieshDual.Text = "~";
                btnQuickieshDual.Visible = true;

                btnQuickieshRemove = new VirindiViewService.Controls.HudButton();
                btnQuickieshRemove.Text = "-";
                btnQuickieshRemove.Visible = true;

                quickieshTabFixedLayout.AddControl(btnQuickieshAdd, new Rectangle(0, 0, 12, 12));
                quickieshTabFixedLayout.AddControl(btnQuickieshRemove, new Rectangle(15, 0, 12, 12));
                quickieshTabFixedLayout.AddControl(btnQuickieshDual, new Rectangle(30, 0, 12, 12));
            }
            catch (Exception ex) { LogError(ex); }

            if (mCharacterSettings.hQuickSlotItems.Count > 0)
            {
                for (int i = 0; i < mCharacterSettings.hQuickSlotItems.Count; i++)
                {
                    doCreateNewQuickie(mCharacterSettings.hQuickSlotItems, i);

                    doCreateStack();
                    qshswitches.Add(mQuickieControl);
                    if (mCharacterSettings.hQuickSlotItems.Count == 1) { quickieshTabFixedLayout.AddControl(mQuickieControl.QuickSlotStack, new Rectangle(50 + 20 * i, 0, 50, 20)); }
                    else { quickieshTabFixedLayout.AddControl(mQuickieControl.QuickSlotStack, new Rectangle(50 + 20 * i, 0, 20, 20)); }
                //    quickieshTabFixedLayout.AddControl(mQuickieControl.QuickSlotStack, new Rectangle(50 + 20 * i, 0, 20, 20));
                    mQuickieControl.QuickSlotStack.Hit += (sender, obj) => mhQuickStacks_Hit(sender, obj);
                }
            }
                btnQuickieshAdd.Hit += (sender, obj) => btnQuickieshAdd_Hit(sender, obj);
                btnQuickieshRemove.Hit += (sender, obj) => btnQuickieshRemove_Hit(sender, obj);
                btnQuickieshDual.Hit += (sender, obj) => btnQuickieshDual_Hit(sender, obj);

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