示例#1
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);
            }
        }
示例#2
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);
            }
        }
        private void RenderHorizontalQuickSlots()
        {
            WriteToChat("I am in the function to render horizontal quickslots");

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

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

                xdocQuickSlotsh = XDocument.Load(quickSlotshFilename);

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

            quickieshHud = new VirindiViewService.HudView("", 340, 30, new ACImage(Color.Transparent));
            quickieshHud.ShowInBar = false;
            quickieshHud.UserAlphaChangeable = false;
            quickieshHud.Visible = true;
            quickieshHud.UserGhostable = true;
            quickieshHud.UserMinimizable = false;
            quickieshHud.UserResizeable = false;
            quickieshHud.Location = hpt;
            //if (mhtheme == null)
            //    mhtheme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");
            //quickieshHud.Theme = mhtheme;

            //  quickieshHud.Theme = HudViewDrawStyle.GetThemeByName("Minimalist Transparent");

            quickieshHud_Head = new HudFixedLayout();
            quickieshHud.Controls.HeadControl = quickieshHud_Head;

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

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

            quickieshHud_Head.AddControl(btnQuickieshAdd, new Rectangle(0, 0, 12, 12));
            quickieshHud_Head.AddControl(btnQuickieshRemove, new Rectangle(15, 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();

            chkQuickieh0 = new HudCheckBox();
            chkQuickieh1 = new HudCheckBox();
            chkQuickieh2 = new HudCheckBox();
            chkQuickieh3 = new HudCheckBox();
            chkQuickieh4 = new HudCheckBox();
            chkQuickieh5 = new HudCheckBox();
            chkQuickieh6 = new HudCheckBox();
            chkQuickieh7 = new HudCheckBox();
            chkQuickieh8 = new HudCheckBox();
            chkQuickieh9 = new HudCheckBox();
            chkQuickieh10 = new HudCheckBox();
            chkQuickieh11 = new HudCheckBox();
            chkQuickieh12 = new HudCheckBox();
            chkQuickieh13 = new HudCheckBox();
            chkQuickieh14 = new HudCheckBox();

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

            chkQuickieh0 = new HudCheckBox(); hchk.Add(chkQuickieh0);
            chkQuickieh1 = new HudCheckBox(); hchk.Add(chkQuickieh1);
            chkQuickieh2 = new HudCheckBox(); hchk.Add(chkQuickieh2);
            chkQuickieh3 = new HudCheckBox(); hchk.Add(chkQuickieh3);
            chkQuickieh4 = new HudCheckBox(); hchk.Add(chkQuickieh4);
            chkQuickieh5 = new HudCheckBox(); hchk.Add(chkQuickieh5);
            chkQuickieh6 = new HudCheckBox(); hchk.Add(chkQuickieh6);
            chkQuickieh7 = new HudCheckBox(); hchk.Add(chkQuickieh7);
            chkQuickieh8 = new HudCheckBox(); hchk.Add(chkQuickieh8);
            chkQuickieh9 = new HudCheckBox(); hchk.Add(chkQuickieh9);
            chkQuickieh10 = new HudCheckBox(); hchk.Add(chkQuickieh10);
            chkQuickieh11 = new HudCheckBox(); hchk.Add(chkQuickieh11);
            chkQuickieh12= new HudCheckBox(); hchk.Add(chkQuickieh12);
            chkQuickieh13 = new HudCheckBox(); hchk.Add(chkQuickieh13);
            chkQuickieh14 = new HudCheckBox(); hchk.Add(chkQuickieh14);

            quickieshHud_Head.AddControl(chkQuickieh0, new Rectangle(30, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh1, new Rectangle(50, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh2, new Rectangle(70, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh3, new Rectangle(90, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh4, new Rectangle(110, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh5, new Rectangle(130, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh6, new Rectangle(150, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh7, new Rectangle(170, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh8, new Rectangle(190, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh9, new Rectangle(210, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh10, new Rectangle(230, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh11, new Rectangle(250, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh12, new Rectangle(270, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh13, new Rectangle(290, 20, 20, 10));
            quickieshHud_Head.AddControl(chkQuickieh14, new Rectangle(310, 20, 20, 10));

            quickieshHud.ThemeChanged += (sender, obj) => quickieshHud_ThemeChanged(sender, obj);
            quickieshHud.Moved += (sender, obj) => quickieshHud_Moved(sender, obj);
            btnQuickieshAdd.Hit += (sender, obj) => btnQuickieshAdd_Hit(sender, obj);
            btnQuickieshRemove.Hit += (sender, obj) => btnQuickieshRemove_Hit(sender, obj);
            chkQuickieh0.Change += (sender, obj) => chkQuickieh0_Change(sender, obj);
            chkQuickieh1.Change += (sender, obj) => chkQuickieh1_Change(sender, obj);
            chkQuickieh2.Change += (sender, obj) => chkQuickieh2_Change(sender, obj);
            chkQuickieh3.Change += (sender, obj) => chkQuickieh3_Change(sender, obj);
            chkQuickieh4.Change += (sender, obj) => chkQuickieh4_Change(sender, obj);
            chkQuickieh5.Change += (sender, obj) => chkQuickieh5_Change(sender, obj);
            chkQuickieh6.Change += (sender, obj) => chkQuickieh6_Change(sender, obj);
            chkQuickieh7.Change += (sender, obj) => chkQuickieh7_Change(sender, obj);
            chkQuickieh8.Change += (sender, obj) => chkQuickieh8_Change(sender, obj);
            chkQuickieh9.Change += (sender, obj) => chkQuickieh9_Change(sender, obj);
            chkQuickieh10.Change += (sender, obj) => chkQuickieh10_Change(sender, obj);
            chkQuickieh11.Change += (sender, obj) => chkQuickieh11_Change(sender, obj);
            chkQuickieh12.Change += (sender, obj) => chkQuickieh12_Change(sender, obj);
            chkQuickieh13.Change += (sender, obj) => chkQuickieh13_Change(sender, obj);
            chkQuickieh14.Change += (sender, obj) => chkQuickieh14_Change(sender, obj);

            if (xdocQuickSlotsh.Root.HasElements)
            {
                doGetData(xdocQuickSlotsh, quickSlotshFilename);
            }
        }
        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 doClearHud(VirindiViewService.HudView hud,XDocument xdoc,string filename)
        {
            //btnQuickiesAdd = null;
            //btnQuickiesRemove = null;
            try
            {
                xdoc.Save(filename);
                hud.ClearWindowButtons();

                if (hud == quickiesvHud)
                {
                    nquickiev = 0;
                    try
                    {

                        for (int i = 0; i < 12; i++)
                        { vst[i] = null; }
                    }
                    catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }

                    try
                    {

                        for (int i = 0; i < 12; i++)
                        { vID[i] = 0; }
                    }
                    catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }

                    // 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);
                    btnQuickiesvAdd = null;
                    btnQuickiesvRemove = null;

                    for (int i = 0; i < 12; i++)
                    { vchk[i] = null; }

                }

                else if (hud == quickieshHud)
                {
                    nquickieh = 0;
                    try
                    {
                        for (int i = 0; i < 12; i++)
                        { hst[i] = null; }
                    }
                    catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }

                    try
                    {
                        for (int i = 0; i < 12; i++)
                        { hID[i] = 0; }
                    }
                    catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }

                    // btnhQuickiesAdd.Hit -= (sender, obj) => btnhQuickiesAdd_Hit(sender, obj);
                    // btnQuickieshRemove.Hit -= (sender, obj) => btnQuickieshRemove_Hit(sender, obj);
                    chkQuickieh0.Change -= (sender, obj) => chkQuickieh0_Change(sender, obj);
                    chkQuickieh1.Change -= (sender, obj) => chkQuickieh1_Change(sender, obj);
                    chkQuickieh2.Change -= (sender, obj) => chkQuickieh2_Change(sender, obj);
                    chkQuickieh3.Change -= (sender, obj) => chkQuickieh3_Change(sender, obj);
                    chkQuickieh4.Change -= (sender, obj) => chkQuickieh4_Change(sender, obj);
                    chkQuickieh5.Change -= (sender, obj) => chkQuickieh5_Change(sender, obj);
                    chkQuickieh6.Change -= (sender, obj) => chkQuickieh6_Change(sender, obj);
                    chkQuickieh7.Change -= (sender, obj) => chkQuickieh7_Change(sender, obj);
                    chkQuickieh8.Change -= (sender, obj) => chkQuickieh8_Change(sender, obj);
                    chkQuickieh9.Change -= (sender, obj) => chkQuickieh9_Change(sender, obj);
                    chkQuickieh10.Change -= (sender, obj) => chkQuickieh10_Change(sender, obj);
                    chkQuickieh11.Change -= (sender, obj) => chkQuickieh11_Change(sender, obj);
                    btnQuickieshAdd = null;
                    btnQuickieshRemove = null;

                    for (int i = 0; i < 12; i++)
                    { hchk[i] = null; }
                    nquickieh = 0;
                }
            }
            catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }
        }
示例#6
0
        private void createQuickies(VirindiViewService.HudView hudview)
        {
            try
            {

                if (hudview == quickiesvHud)
                {
                    quickiesvHud = new VirindiViewService.HudView("VQuickie", 25, 300, new ACImage(Color.Transparent), false);
                    //quickiesvHud.Width = 25;
                    //quickiesvHud.Height = 300;
                    //quickiesvHud.Title = "VQuickie";
                    quickiesvHud_Head = new HudFixedLayout();

                    btnQuickiesvAdd = new HudButton();
                    btnQuickiesvRemove = new HudButton();
                    if (vpt.X == 0) { vpt.X = 200; }
                    if (vpt.Y == 0) { vpt.Y = 200; }

                    doCreateHud(quickiesvHud, vpt, quickiesvHud_Head, btnQuickiesvAdd, btnQuickiesvRemove);

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

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

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

                        quickiesvHud_Head.AddControl(chkQuickiev0, new Rectangle(0, 15, 10, 10));
                        quickiesvHud_Head.AddControl(chkQuickiev1, new Rectangle(0, 30, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev2, new Rectangle(0, 45, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev3, new Rectangle(0, 60, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev4, new Rectangle(0, 75, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev5, new Rectangle(0, 90, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev6, new Rectangle(0, 105, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev7, new Rectangle(0, 120, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev8, new Rectangle(0, 135, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev9, new Rectangle(0, 150, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev10, new Rectangle(0, 165, 12, 12));
                        quickiesvHud_Head.AddControl(chkQuickiev11, new Rectangle(0, 180, 12, 12));

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

                        if (xdocQuickSlotsv.Root.HasElements)
                        {
                            doGetData(xdocQuickSlotsv, quickSlotsvFilename);
                        }
                    }
                    catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }

                }
                else if (hudview == quickieshHud)
                {
                   quickieshHud = new VirindiViewService.HudView("HQuickie", 300, 30, new ACImage(Color.Transparent), false);
                    //quickieshHud.Width = 300;
                    //quickieshHud.Height = 25;
                    //quickieshHud.Title = "HQuickie";
                    quickieshHud_Head = new HudFixedLayout();
                     btnQuickieshAdd = new HudButton();
                    btnQuickieshRemove = new HudButton();
                    if (hpt.X == 0) { hpt.X = 240; }
                    if (hpt.Y == 0) { hpt.Y = 300; }

                    doCreateHud(quickieshHud, hpt, quickieshHud_Head, btnQuickieshAdd, btnQuickieshRemove);

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

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

                    chkQuickieh0 = new HudCheckBox(); hchk.Add(chkQuickieh0);
                    chkQuickieh1 = new HudCheckBox(); hchk.Add(chkQuickieh1);
                    chkQuickieh2 = new HudCheckBox(); hchk.Add(chkQuickieh2);
                    chkQuickieh3 = new HudCheckBox(); hchk.Add(chkQuickieh3);
                    chkQuickieh4 = new HudCheckBox(); hchk.Add(chkQuickieh4);
                    chkQuickieh5 = new HudCheckBox(); hchk.Add(chkQuickieh5);
                    chkQuickieh6 = new HudCheckBox(); hchk.Add(chkQuickieh6);
                    chkQuickieh7 = new HudCheckBox(); hchk.Add(chkQuickieh7);
                    chkQuickieh8 = new HudCheckBox(); hchk.Add(chkQuickieh8);
                    chkQuickieh9 = new HudCheckBox(); hchk.Add(chkQuickieh9);
                    chkQuickieh10 = new HudCheckBox(); hchk.Add(chkQuickieh10);
                    chkQuickieh11 = new HudCheckBox(); hchk.Add(chkQuickieh11);

                    quickieshHud_Head.AddControl(chkQuickieh0, new Rectangle(30, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh1, new Rectangle(45, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh2, new Rectangle(60, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh3, new Rectangle(75, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh5, new Rectangle(95, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh6, new Rectangle(110, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh7, new Rectangle(125, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh8, new Rectangle(140, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh9, new Rectangle(155, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh10, new Rectangle(170, 15, 12, 12));
                    quickieshHud_Head.AddControl(chkQuickieh11, new Rectangle(185, 15, 12, 12));

                    quickieshHud.Moved += (sender, obj) => quickieshHud_Moved(sender, obj);
                    btnQuickieshAdd.Hit += (sender, obj) => btnQuickieshAdd_Hit(sender, obj);
                    btnQuickieshRemove.Hit += (sender, obj) => btnQuickieshRemove_Hit(sender, obj);
                    chkQuickieh0.Change += (sender, obj) => chkQuickieh0_Change(sender, obj);
                    chkQuickieh1.Change += (sender, obj) => chkQuickieh1_Change(sender, obj);
                    chkQuickieh2.Change += (sender, obj) => chkQuickieh2_Change(sender, obj);
                    chkQuickieh3.Change += (sender, obj) => chkQuickieh3_Change(sender, obj);
                    chkQuickieh4.Change += (sender, obj) => chkQuickieh4_Change(sender, obj);
                    chkQuickieh5.Change += (sender, obj) => chkQuickieh5_Change(sender, obj);
                    chkQuickieh6.Change += (sender, obj) => chkQuickieh6_Change(sender, obj);
                    chkQuickieh7.Change += (sender, obj) => chkQuickieh7_Change(sender, obj);
                    chkQuickieh8.Change += (sender, obj) => chkQuickieh8_Change(sender, obj);
                    chkQuickieh9.Change += (sender, obj) => chkQuickieh9_Change(sender, obj);
                    chkQuickieh10.Change += (sender, obj) => chkQuickieh10_Change(sender, obj);
                    chkQuickieh11.Change += (sender, obj) => chkQuickieh11_Change(sender, obj);

                    if (xdocQuickSlotsh.Root.HasElements)
                    {
                        doGetData(xdocQuickSlotsh, quickSlotshFilename);
                    }

                }

                Decal.Adapter.CoreManager.Current.ItemSelected += new EventHandler<ItemSelectedEventArgs>(Current_ItemSelected);
                CoreManager.Current.RenderFrame += new EventHandler<EventArgs>(Current_RenderFrame);

            }
            catch (Exception ex) { Mishna.PluginCore.Util.LogError(ex); }
        }
        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); }
        }
        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); }
        }
        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");
            //quickieshHud.Theme = mvtheme;
            quickiesvHud_Head = new HudFixedLayout();
            quickiesvHud.Controls.HeadControl = quickiesvHud_Head;

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

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

            quickiesvHud_Head.AddControl(btnQuickiesvAdd, new Rectangle(0, 0, 12, 12));
            quickiesvHud_Head.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();

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

            //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);
            mQuickStackv0.Hit += (sender, obj) => mQuickStackv0_Hit(sender, obj);
            //   mQuickStackv0.GotFocus += (sender, e) => mQuickStackv0_GotFocus(sender, e);

            if (xdocQuickSlotsv.Root.HasElements)
            {
                doGetData(xdocQuickSlotsv, quickSlotsvFilename);
            }
        }