コード例 #1
0
ファイル: QuickSlotsHud.cs プロジェクト: Kkarinisme/GearTemp
        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);
            }
        }
コード例 #2
0
ファイル: QuickSlotsHud.cs プロジェクト: Kkarinisme/GearTemp
        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);
            }
        }
コード例 #3
0
ファイル: PortalGear.cs プロジェクト: Kkarinisme/GearTemp
        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);
        }
コード例 #4
0
        private void RenderVerticalQuickSlots()
        {
            WriteToChat("I am in the function to render vertical quickslots");

            if (quickiesvHud != null)
            {
                DisposeVerticalQuickSlots();
            }
            if (!File.Exists(quickSlotsvFilename))
            {
                XDocument tempDoc = new XDocument(new XElement("Objs"));
                tempDoc.Save(quickSlotsvFilename);
                tempDoc = null;
            }

            xdocQuickSlotsv = XDocument.Load(quickSlotsvFilename);

            if (vpt.X == 0) { vpt.X = 200; }
            if (vpt.Y == 0) { vpt.Y = 200; }

            quickiesvHud = new VirindiViewService.HudView("", 30, 340, new ACImage(Color.Transparent));
            quickiesvHud.ShowInBar = false;
            quickiesvHud.UserAlphaChangeable = false;
            quickiesvHud.Visible = true;
            quickiesvHud.UserGhostable = true;
            quickiesvHud.UserMinimizable = false;
            quickiesvHud.UserResizeable = false;
            quickiesvHud.Location = vpt;
            if (mvtheme == null)
                {mvtheme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");}
            quickiesvHud.Theme = mvtheme;
            quickiesvHud_Head = new HudFixedLayout();
            quickiesvHud.Controls.HeadControl = quickiesvHud_Head;

            quickiesvTabView = new HudTabView();
            quickiesvTabFixedLayout = new HudFixedLayout();

            quickiesvHud_Head.AddControl(quickiesvTabView, new Rectangle(0,0,30,300));
            quickiesvTabView.AddTab(quickiesvTabFixedLayout,null);

            btnQuickiesvAdd = new VirindiViewService.Controls.HudButton();
            btnQuickiesvAdd.Text = "+";
            btnQuickiesvAdd.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));

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

            chkQuickiev0 = new HudCheckBox();
            chkQuickiev1 = new HudCheckBox();
            chkQuickiev2 = new HudCheckBox();
            chkQuickiev3 = new HudCheckBox();
            chkQuickiev4 = new HudCheckBox();
            chkQuickiev5 = new HudCheckBox();
            chkQuickiev6 = new HudCheckBox();
            chkQuickiev7 = new HudCheckBox();
            chkQuickiev8 = new HudCheckBox();
            chkQuickiev9 = new HudCheckBox();
            chkQuickiev10 = new HudCheckBox();
            chkQuickiev11 = new HudCheckBox();
            chkQuickiev12 = new HudCheckBox();
            chkQuickiev13 = new HudCheckBox();
            chkQuickiev14 = new HudCheckBox();

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

            chkQuickiev0 = new HudCheckBox(); vchk.Add(chkQuickiev0);
            chkQuickiev1 = new HudCheckBox(); vchk.Add(chkQuickiev1);
            chkQuickiev2 = new HudCheckBox(); vchk.Add(chkQuickiev2);
            chkQuickiev3 = new HudCheckBox(); vchk.Add(chkQuickiev3);
            chkQuickiev4 = new HudCheckBox(); vchk.Add(chkQuickiev4);
            chkQuickiev5 = new HudCheckBox(); vchk.Add(chkQuickiev5);
            chkQuickiev6 = new HudCheckBox(); vchk.Add(chkQuickiev6);
            chkQuickiev7 = new HudCheckBox(); vchk.Add(chkQuickiev7);
            chkQuickiev8 = new HudCheckBox(); vchk.Add(chkQuickiev8);
            chkQuickiev9 = new HudCheckBox(); vchk.Add(chkQuickiev9);
            chkQuickiev10 = new HudCheckBox(); vchk.Add(chkQuickiev10);
            chkQuickiev11 = new HudCheckBox(); vchk.Add(chkQuickiev11);
            chkQuickiev12= new HudCheckBox(); vchk.Add(chkQuickiev12);
            chkQuickiev13 = new HudCheckBox(); vchk.Add(chkQuickiev13);
            chkQuickiev14 = new HudCheckBox(); vchk.Add(chkQuickiev14);

            quickiesvHud_Head.AddControl(chkQuickiev0, new Rectangle(0, 15, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev1, new Rectangle(0, 35, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev2, new Rectangle(0, 55, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev3, new Rectangle(0, 75, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev4, new Rectangle(0, 95, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev5, new Rectangle(0, 115, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev6, new Rectangle(0, 135, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev7, new Rectangle(0, 150, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev8, new Rectangle(0, 175, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev9, new Rectangle(0, 195, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev10, new Rectangle(0, 215, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev11, new Rectangle(0, 235, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev12, new Rectangle(0, 255, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev13, new Rectangle(0, 275, 10, 20));
            quickiesvHud_Head.AddControl(chkQuickiev14, new Rectangle(0, 295, 10, 20));

            mQuickStackv0.Hit += (sender,obj) => mQuickStackv0_Hit(sender,obj);
            quickiesvHud.ThemeChanged += (sender, obj) => quickiesvHud_ThemeChanged(sender, obj);
            quickiesvHud.Moved += (sender, obj) => quickiesvHud_Moved(sender, obj);
            btnQuickiesvAdd.Hit += (sender, obj) => btnQuickiesvAdd_Hit(sender, obj);
            btnQuickiesvRemove.Hit += (sender, obj) => btnQuickiesvRemove_Hit(sender, obj);
               chkQuickiev0.Change += (sender, obj) => chkQuickiev0_Change(sender, obj);
            chkQuickiev1.Change += (sender, obj) => chkQuickiev1_Change(sender, obj);
            chkQuickiev2.Change += (sender, obj) => chkQuickiev2_Change(sender, obj);
            chkQuickiev3.Change += (sender, obj) => chkQuickiev3_Change(sender, obj);
            chkQuickiev4.Change += (sender, obj) => chkQuickiev4_Change(sender, obj);
            chkQuickiev5.Change += (sender, obj) => chkQuickiev5_Change(sender, obj);
            chkQuickiev6.Change += (sender, obj) => chkQuickiev6_Change(sender, obj);
            chkQuickiev7.Change += (sender, obj) => chkQuickiev7_Change(sender, obj);
            chkQuickiev8.Change += (sender, obj) => chkQuickiev8_Change(sender, obj);
            chkQuickiev9.Change += (sender, obj) => chkQuickiev9_Change(sender, obj);
            chkQuickiev10.Change += (sender, obj) => chkQuickiev10_Change(sender, obj);
            chkQuickiev11.Change += (sender, obj) => chkQuickiev11_Change(sender, obj);
            chkQuickiev12.Change += (sender, obj) => chkQuickiev12_Change(sender, obj);
            chkQuickiev13.Change += (sender, obj) => chkQuickiev13_Change(sender, obj);
            chkQuickiev14.Change += (sender, obj) => chkQuickiev14_Change(sender, obj);
            mQuickStackv0.Hit += (sender, obj) => mQuickStackv0_Hit(sender, obj);

            if (xdocQuickSlotsv.Root.HasElements)
            {
                doGetData(xdocQuickSlotsv, quickSlotsvFilename);
            }
        }
コード例 #5
0
        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); }
        }
コード例 #6
0
        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); }
        }