Beispiel #1
0
        public void Draw(SpriteBatch spriteBatch, Texture2D img, Texture2D MenuBtn, SpriteFont font, GraphicsDeviceManager gfx, SpriteFont smallfont, int MenuType)
        {
            if (StartTimer)
            {
                StartTimer = false;
                tmr.Start();
            }
            if (tmr.ElapsedMilliseconds > 250)
            {
                tmr.Stop();
                tmr.Reset();
                blnCanBind = true;
            }
            switch (MenuType)
            {
            //Draw PauseMenu
            case 1:

                Rectangle Rect = new Rectangle(0, 0, gfx.PreferredBackBufferWidth, gfx.PreferredBackBufferHeight);

                spriteBatch.Draw(img, Rect, Color.Black);

                int startposx = Convert.ToInt32(gfx.PreferredBackBufferWidth * .35);
                int width     = Convert.ToInt32(gfx.PreferredBackBufferWidth * .25);
                int startposy = Convert.ToInt32(gfx.PreferredBackBufferHeight * .15);
                int height    = Convert.ToInt32(gfx.PreferredBackBufferHeight * .10);

                if (DefaultPauseOpen)
                {
                    if (mnuBtnResume == null)
                    {
                        mnuBtnResume      = new MenuButton();
                        MnuBtnResumeBound = false;
                    }
                    if (mnuBtnExit == null)
                    {
                        mnuBtnExit      = new MenuButton();
                        MnuBtnExitBound = false;
                    }
                    if (mnuBtnOptions == null)
                    {
                        mnuBtnOptions      = new MenuButton();
                        mnuBtnOptionsBound = false;
                    }
                    if (!MnuBtnResumeBound)
                    {
                        mnuBtnResume.ButtonClicked += mnuBtnResume_Clicked;
                        MnuBtnResumeBound           = true;
                    }
                    if (!MnuBtnExitBound)
                    {
                        mnuBtnExit.ButtonClicked += mnuBtnExit_Clicked;
                        MnuBtnExitBound           = true;
                    }
                    if (!mnuBtnOptionsBound)
                    {
                        mnuBtnOptions.ButtonClicked += mnuBtnOptions_Clicked;
                        mnuBtnOptionsBound           = true;
                    }

                    mnuBtnResume.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy, width, height), "Resume", font);
                    mnuBtnOptions.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .15), width, height), "Options", font);
                    mnuBtnExit.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .30), width, height), "Exit", font);
                }
                else
                {
                    if (blnVideoOpen)
                    {
                        if (mnuBtnCancel == null)
                        {
                            mnuBtnCancel      = new MenuButton();
                            mnuBtnCancelBound = false;
                        }
                        if (mnuBtnAcceptChanges == null)
                        {
                            mnuBtnAcceptChanges      = new MenuButton();
                            mnuBtnAcceptChangesBound = false;
                        }
                        if (chkYes == null)
                        {
                            chkYes         = new CheckBox();
                            blnChkYesBound = false;
                        }
                        if (chkNo == null)
                        {
                            chkNo      = new CheckBox();
                            chkNoBound = false;
                        }

                        if (blnIndexValues)
                        {
                            if (GlobalVariables.UserSetFullScreen)
                            {
                                chkYes.Check();
                                chkNo.Uncheck();
                            }
                            else
                            {
                                chkNo.Check();
                                chkYes.Uncheck();
                            }
                            double ht;
                            double wdt;
                            if (GlobalVariables.UserSetHeight > 0)
                            {
                                ht = Convert.ToDouble(GlobalVariables.UserSetHeight);
                            }
                            else
                            {
                                ht = Convert.ToDouble(GlobalVariables.ScreenHeight);
                            }
                            if (GlobalVariables.UserSetWidth > 0)
                            {
                                wdt = Convert.ToDouble(GlobalVariables.UserSetWidth);
                            }
                            else
                            {
                                wdt = Convert.ToDouble(GlobalVariables.ScreenWidth);
                            }
                            double dbl   = (wdt / ht);
                            string ratio = Convert.ToString(dbl);
                            if (ratio.Contains("1.33333"))
                            {
                                slider1.Index = 0;
                            }
                            else if (ratio.Contains("1.77777"))
                            {
                                slider1.Index = 1;
                            }
                            else if (ratio.Contains("1.6"))
                            {
                                slider1.Index = 2;
                            }
                            string sliderRes = Convert.ToString(GlobalVariables.UserSetWidth) + " X " + Convert.ToString(GlobalVariables.UserSetHeight);
                            int    i         = 0;
                            foreach (string str in Resolution_43)
                            {
                                if (str == sliderRes)
                                {
                                    slider.Index = i;
                                }
                                i += 1;
                            }
                            i = 0;
                            foreach (string str in Resolution_169)
                            {
                                if (str == sliderRes)
                                {
                                    slider.Index = i;
                                }
                                i += 1;
                            }
                            i = 0;
                            foreach (string str in Resolution_1610)
                            {
                                if (str == sliderRes)
                                {
                                    slider.Index = i;
                                }
                                i += 1;
                            }
                            blnIndexValues = false;
                        }

                        if (!chkNoBound)
                        {
                            chkNo.ClickedChecked += ChkNo_Checked;
                            chkNoBound            = true;
                        }
                        if (!blnChkYesBound)
                        {
                            chkYes.ClickedChecked += ChkYes_Checked;
                            blnChkYesBound         = true;
                        }

                        double TextWidth    = font.MeasureString("Resolution").X;
                        double TextHeight   = font.MeasureString("Resolution").Y;
                        int    SliderWidth  = (int)(gfx.PreferredBackBufferWidth * .3);
                        int    SliderHeight = (int)(gfx.PreferredBackBufferHeight * .005);

                        spriteBatch.DrawString(font, "Aspect Ratio", new Vector2(startposx + ((float)(gfx.PreferredBackBufferWidth * .1) - (float)(TextWidth * .25)), startposy - (int)(gfx.PreferredBackBufferHeight * .05)), Color.Gray);
                        slider1.Draw(spriteBatch, smallfont, gfx, MenuBtn, Ratios, SliderWidth, SliderHeight, startposx - (int)(gfx.PreferredBackBufferWidth * .025), startposy - (int)(gfx.PreferredBackBufferHeight * .01), Color.Black);

                        string AspectRatio = slider1.ReturnValue();

                        if (AspectRatio.Contains("9"))
                        {
                            DesiredArray = Resolution_169;
                        }
                        else if (AspectRatio.Contains("10"))
                        {
                            DesiredArray = Resolution_1610;
                        }
                        else
                        {
                            DesiredArray = Resolution_43;
                        }

                        spriteBatch.DrawString(font, "Resolution", new Vector2(startposx + ((float)(gfx.PreferredBackBufferWidth * .1) - (float)(TextWidth * .25)), startposy + (int)(gfx.PreferredBackBufferHeight * .08)), Color.Gray);
                        slider.Draw(spriteBatch, smallfont, gfx, MenuBtn, DesiredArray, SliderWidth, SliderHeight, startposx - (int)(gfx.PreferredBackBufferWidth * .025), startposy + (int)(gfx.PreferredBackBufferHeight * .12), Color.Black);

                        string   Resolution = slider.ReturnValue();
                        string[] Res        = Resolution.Split('X');

                        GlobalVariables.NewWidth  = Convert.ToInt32(Res[0].Trim());
                        GlobalVariables.NewHeight = Convert.ToInt32(Res[1].Trim());

                        if (!mnuBtnCancelBound)
                        {
                            mnuBtnCancel.ButtonClicked += mnuBtnCancel_Clicked;
                            mnuBtnCancelBound           = true;
                        }
                        if (!mnuBtnAcceptChangesBound)
                        {
                            mnuBtnAcceptChanges.ButtonClicked += mnuBtnAcceptChanges_Clicked;
                            mnuBtnAcceptChangesBound           = true;
                        }

                        spriteBatch.DrawString(font, "FullScreen", new Vector2(startposx + ((float)(gfx.PreferredBackBufferWidth * .1) - (float)(TextWidth * .25)), startposy + (int)(gfx.PreferredBackBufferHeight * .22)), Color.Gray);

                        chkYes.draw(spriteBatch, MenuBtn, (int)((gfx.PreferredBackBufferWidth / 2) - gfx.PreferredBackBufferWidth * .10), (int)(gfx.PreferredBackBufferHeight * .45), (int)(gfx.PreferredBackBufferWidth * .01), (int)(gfx.PreferredBackBufferWidth * .01), "Yes", gfx);
                        chkNo.draw(spriteBatch, MenuBtn, (int)((gfx.PreferredBackBufferWidth / 2) + gfx.PreferredBackBufferWidth * .05), (int)(gfx.PreferredBackBufferHeight * .45), (int)(gfx.PreferredBackBufferWidth * .01), (int)(gfx.PreferredBackBufferWidth * .01), "No", gfx);
                        mnuBtnAcceptChanges.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .45), width, height), "Accept", font);
                        mnuBtnCancel.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .60), width, height), "Back", font);
                    }
                    else if (blnAudioOpen)
                    {
                    }
                    else if (blnGameplayOpen)
                    {
                        if (mnuGamePlayConfirm == null)
                        {
                            mnuGamePlayConfirm      = new MenuButton();
                            mnuGamePlayConfirmBound = false;
                        }
                        if (mnuGamePlayCancel == null)
                        {
                            mnuGamePlayCancel      = new MenuButton();
                            mnuGamePlayCancelBound = false;
                        }
                        if (!mnuGamePlayCancelBound)
                        {
                            mnuGamePlayCancel.ButtonClicked += mnuGamePlayCancel_Clicked;
                            mnuGamePlayCancelBound           = true;
                        }
                        if (!mnuGamePlayConfirmBound)
                        {
                            mnuGamePlayConfirm.ButtonClicked += mnuGamePlayConfirm_Clicked;
                            mnuGamePlayConfirmBound           = true;
                        }
                        if (chkShowItemNames == null)
                        {
                            chkShowItemNames = new CheckBox();
                        }
                        if (chkShowEnemyBars == null)
                        {
                            chkShowEnemyBars = new CheckBox();
                        }
                        if (chkShowEnemyNames == null)
                        {
                            chkShowEnemyNames = new CheckBox();
                        }
                        if (chkShowEnemyDamage == null)
                        {
                            chkShowEnemyDamage = new CheckBox();
                        }

                        SpriteFont setFont = GlobalVariables.LargeFont;

                        chkShowItemNames.draw(spriteBatch, MenuBtn, (int)(gfx.PreferredBackBufferWidth / 2) + (int)(gfx.PreferredBackBufferWidth * .065), (int)(gfx.PreferredBackBufferHeight * .15), (int)(gfx.PreferredBackBufferWidth * .01), (int)(gfx.PreferredBackBufferWidth * .01), "Show Item Names", gfx, setFont);
                        chkShowEnemyNames.draw(spriteBatch, MenuBtn, (int)(gfx.PreferredBackBufferWidth / 2) + (int)(gfx.PreferredBackBufferWidth * .065), (int)(gfx.PreferredBackBufferHeight * .25), (int)(gfx.PreferredBackBufferWidth * .01), (int)(gfx.PreferredBackBufferWidth * .01), "Show Enemy Names", gfx, setFont);
                        chkShowEnemyBars.draw(spriteBatch, MenuBtn, (int)(gfx.PreferredBackBufferWidth / 2) + (int)(gfx.PreferredBackBufferWidth * .065), (int)(gfx.PreferredBackBufferHeight * .35), (int)(gfx.PreferredBackBufferWidth * .01), (int)(gfx.PreferredBackBufferWidth * .01), "Show Enemy HP Bars", gfx, setFont);
                        chkShowEnemyDamage.draw(spriteBatch, MenuBtn, (int)(gfx.PreferredBackBufferWidth / 2) + (int)(gfx.PreferredBackBufferWidth * .065), (int)(gfx.PreferredBackBufferHeight * .45), (int)(gfx.PreferredBackBufferWidth * .01), (int)(gfx.PreferredBackBufferWidth * .01), "Show Enemy Damage", gfx, setFont);
                        mnuGamePlayConfirm.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .45), width, height), "Confirm", font);
                        mnuGamePlayCancel.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .60), width, height), "Back", font);

                        if (blnIndexValues)
                        {
                            if (GlobalVariables.ShowItemNames)
                            {
                                chkShowItemNames.Check();
                            }
                            else
                            {
                                chkShowItemNames.Uncheck();
                            }
                            if (GlobalVariables.ShowEnemyBars)
                            {
                                chkShowEnemyBars.Check();
                            }
                            else
                            {
                                chkShowEnemyBars.Uncheck();
                            }
                            if (GlobalVariables.ShowEnemyNames)
                            {
                                chkShowEnemyNames.Check();
                            }
                            else
                            {
                                chkShowEnemyNames.Uncheck();
                            }
                            if (GlobalVariables.ShowEnemyDamage)
                            {
                                chkShowEnemyDamage.Check();
                            }
                            else
                            {
                                chkShowEnemyDamage.Uncheck();
                            }
                        }
                        blnIndexValues = false;
                    }
                    else if (blnOptionsOpen)
                    {
                        if (mnuBtnVideo == null)
                        {
                            mnuBtnVideo      = new MenuButton();
                            mnuBtnVideoBound = false;
                        }
                        if (mnuBtnAudio == null)
                        {
                            mnuBtnAudio      = new MenuButton();
                            mnuBtnAudioBound = false;
                        }
                        if (mnuBtnGamePlay == null)
                        {
                            mnuBtnGamePlay      = new MenuButton();
                            mnuBtnGamePlayBound = false;
                        }
                        if (mnuBtnBack == null)
                        {
                            mnuBtnBack      = new MenuButton();
                            mnuBtnBackBound = false;
                        }

                        if (blnCanBind)
                        {
                            blnCanBind = false;
                            if (!mnuBtnAudioBound)
                            {
                                mnuBtnAudio.ButtonClicked += mnuBtnAudio_Clicked;
                                mnuBtnAudioBound           = true;
                            }
                        }

                        if (!mnuBtnVideoBound)
                        {
                            mnuBtnVideo.ButtonClicked += mnuBtnVideo_Clicked;
                            mnuBtnVideoBound           = true;
                        }

                        if (!mnuBtnGamePlayBound)
                        {
                            mnuBtnGamePlay.ButtonClicked += mnuBtnGamePlay_Clicked;
                            mnuBtnGamePlayBound           = true;
                        }
                        if (!mnuBtnBackBound)
                        {
                            mnuBtnBack.ButtonClicked += mnuBtnBack_Clicked;
                            mnuBtnBackBound           = true;
                        }

                        mnuBtnVideo.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy, width, height), "Video", font);
                        mnuBtnAudio.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .15), width, height), "Audio", font);
                        mnuBtnGamePlay.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .30), width, height), "Gameplay", font);
                        mnuBtnBack.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(startposx, startposy + Convert.ToInt32(gfx.PreferredBackBufferHeight * .45), width, height), "Back", font);
                    }
                }

                break;

            //Draw Confirmation of Resolution Menu
            case 2:

                oms = ms;
                ms  = Mouse.GetState();

                Rect = new Rectangle(((int)(gfx.PreferredBackBufferWidth / 2) - (int)(gfx.PreferredBackBufferWidth * .3)), ((int)(gfx.PreferredBackBufferHeight / 2) - (int)(gfx.PreferredBackBufferHeight * .25)), (int)(gfx.PreferredBackBufferWidth * .55), (int)(gfx.PreferredBackBufferHeight * .30));

                spriteBatch.Draw(MenuBtn, Rect, Color.SlateGray);

                if (mnuBtnConfirm == null)
                {
                    mnuBtnConfirm      = new MenuButton();
                    mnuBtnConfirmBound = false;
                }
                if (mnuBtnRevert == null)
                {
                    mnuBtnRevert      = new MenuButton();
                    mnuBtnRevertBound = false;
                }

                if (!mnuBtnConfirmBound)
                {
                    mnuBtnConfirm.ButtonClicked += mnuBtnConfirm_Clicked;
                    mnuBtnConfirmBound           = true;
                }
                if (!mnuBtnRevertBound)
                {
                    mnuBtnRevert.ButtonClicked += mnuBtnRevert_Clicked;
                    mnuBtnRevertBound           = true;
                }

                spriteBatch.DrawString(font, "Keep Changes?", new Vector2((Rect.X + (int)(gfx.PreferredBackBufferWidth * .205)), ((Rect.Y) + (int)(gfx.PreferredBackBufferHeight * .02))), Color.WhiteSmoke);

                mnuBtnConfirm.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(Rect.X + (int)(gfx.PreferredBackBufferWidth * .1), Rect.Y + (int)(gfx.PreferredBackBufferHeight * .12), (int)(Rect.Width * .3), (int)(Rect.Height * .2)), "Confirm", font);
                mnuBtnRevert.Draw(spriteBatch, MenuBtn, gfx, new Rectangle(Rect.X + (int)(gfx.PreferredBackBufferWidth * .3), Rect.Y + (int)(gfx.PreferredBackBufferHeight * .12), (int)(Rect.Width * .3), (int)(Rect.Height * .2)), "Revert", font);

                break;
            }
        }
Beispiel #2
0
        public void draw(SpriteBatch spriteBatach, Texture2D EquipSheet, SpriteFont font)
        {
            List <string> Values   = new List <string>();
            double        theValue = 0;

            Vector2 StartPosition = new Vector2((float)(GlobalVariables.gfx.PreferredBackBufferWidth * .64), (float)(GlobalVariables.gfx.PreferredBackBufferHeight * .275));

            //Base Damage

            if (RightWeapon != null)
            {
                if (RightWeapon.RangedMelee == 0)
                {
                    theValue = GlobalVariables.GetCharacterPhysicalDamage(0);
                }
                else if (RightWeapon.RangedMelee == 1)
                {
                    theValue = GlobalVariables.GetCharacterPhysicalDamage(1);
                }
            }
            else if (LeftWeapon != null)
            {
                if (RightWeapon.RangedMelee == 0)
                {
                    theValue = GlobalVariables.GetCharacterPhysicalDamage(0);
                }
                else if (RightWeapon.RangedMelee == 1)
                {
                    theValue = GlobalVariables.GetCharacterPhysicalDamage(1);
                }
            }
            else
            {
                theValue = GlobalVariables.GetCharacterPhysicalDamage(0);
            }

            theValue = Math.Round(theValue, 2);

            if (Offense)
            {
                Values.Add("Physical Damage : " + theValue.ToString());
                Values.Add("Attacks per Second : " + GlobalVariables._CharacterAttackSpeed.ToString());
                Values.Add("Chance To Hit : " + GlobalVariables._CharacterChanceToHit.ToString() + "%");
                Values.Add("Melee Range : " + GlobalVariables._CharacterMeleeRange.ToString() + "%");
                Values.Add("Critical Chance : " + GlobalVariables._CharacterCritChance.ToString() + "%");
                Values.Add("Critical Damage Modifier : " + GlobalVariables._CharacterCritDamageModifier.ToString() + "%");
                Values.Add("Armour Penetration : " + GlobalVariables._CharacterArmourPenetration.ToString() + "%");
                Values.Add("Magic Penetration : " + GlobalVariables._CharacterMagicPenetration.ToString() + "%");
                Values.Add("Increase Damage Vs Boss : " + GlobalVariables._CharacterVsBossDamage.ToString() + "%");
                Values.Add("Increase Damage Vs Elite : " + GlobalVariables._CharacterVsEliteDamage.ToString() + "%");
                Values.Add("Increase Damage Vs Beast : " + GlobalVariables._CharacterVsBeastDamage.ToString() + "%");
                Values.Add("Increase Damage Vs Human : " + GlobalVariables._CharacterVsHumanDamage.ToString() + "%");
                Values.Add("Increase Damage Vs Undead : " + GlobalVariables._CharacterVsUndeadDamage.ToString() + "%");
            }
            else if (Defense)
            {
                Values.Add("Health : " + GlobalVariables._CharacterTotalHealth.ToString());
                Values.Add("Health Regen : " + GlobalVariables._CharacterTotalHealthRegen.ToString());
                Values.Add("Life Steal : " + GlobalVariables._CharacterHealthSteal.ToString() + "%");
                Values.Add("Armour : " + GlobalVariables._CharacterTotalArmour.ToString());
                Values.Add("Evasion : " + GlobalVariables._CharacterTotalEvasion.ToString());
                Values.Add("Chance to Dodge : " + GlobalVariables._CharacterChanceToDodge.ToString() + "%");
                Values.Add("Physical Damage Reduction : " + GlobalVariables._CharacterPhysDamageReduction.ToString() + "%");
            }
            else if (Utility)
            {
                Values.Add("Mana : " + GlobalVariables._CharacterTotalMana.ToString());
                Values.Add("Mana Regen : " + GlobalVariables._CharacterTotalManaRegen.ToString());
                Values.Add("Mana Steal : " + GlobalVariables._CharacterManaSteal.ToString() + "%");
                Values.Add("Movement Speed : " + GlobalVariables._CharacterMovementSpeed.ToString() + "%");
                Values.Add("Increased Experience : " + GlobalVariables._CharacterIncreaseExpPct.ToString() + "%");
                Values.Add("Increased Rarity : " + GlobalVariables._CharacterMagicFindRarity.ToString() + "%");
                Values.Add("Increased Quantity : " + GlobalVariables._CharacterMagicFindQuantity.ToString() + "%");
            }

            //Loop through and display values

            foreach (string str in Values)
            {
                GlobalVariables.WaitToDraw(1, StartPosition, new Rectangle(0, 0, 0, 0), Color.Black, GlobalVariables.AutoFont(GlobalVariables.gfx, 3), null, str);
                StartPosition.Y += GlobalVariables.AutoFont(GlobalVariables.gfx, 3).MeasureString("T").Y;
            }

            font1  = font;
            CharBG = EquipSheet;

            spriteBatach.Draw(CharBG, Bounds, Color.White);

            if (Helmet != null)
            {
                Rectangle newRect = new Rectangle(HelmBounds.X + (HelmBounds.Width / 4), HelmBounds.Y + (HelmBounds.Height / 4), HelmBounds.Width / 2, HelmBounds.Height / 2);
                spriteBatach.Draw(Helmet.ItemTexture, newRect, Helmet.ItemColor);
                if (Helmet.hover)
                {
                    DrawHover(spriteBatach, Helmet);
                }
            }

            if (Chest != null)
            {
                Rectangle newRect = new Rectangle(ChestBounds.X, ChestBounds.Y, ChestBounds.Width, ChestBounds.Height);
                spriteBatach.Draw(Chest.ItemTexture, newRect, Chest.ItemColor);
                if (Chest.hover)
                {
                    DrawHover(spriteBatach, Chest);
                }
            }

            if (RightWeapon != null)
            {
                Rectangle newRect = new Rectangle(RWeapbounds.X, RWeapbounds.Y + (RWeapbounds.Height / 4), RWeapbounds.Width, RWeapbounds.Height / 2);
                spriteBatach.Draw(RightWeapon.ItemTexture, newRect, RightWeapon.ItemColor);
                if (RightWeapon.hover)
                {
                    DrawHover(spriteBatach, RightWeapon);
                }
            }

            if (Gloves != null)
            {
                Rectangle newRect = new Rectangle(GlovesBounds.X + (GlovesBounds.Width / 4), GlovesBounds.Y + (GlovesBounds.Height / 4), GlovesBounds.Width / 2, GlovesBounds.Height / 2);
                spriteBatach.Draw(Gloves.ItemTexture, newRect, Gloves.ItemColor);
                if (Gloves.hover)
                {
                    DrawHover(spriteBatach, Gloves);
                }
            }

            if (Shoulders != null)
            {
                spriteBatach.Draw(Shoulders.ItemTexture, ShouldersBounds, Shoulders.ItemColor);
                if (Shoulders.hover)
                {
                    DrawHover(spriteBatach, Shoulders);
                }
            }

            if (Pants != null)
            {
                spriteBatach.Draw(Pants.ItemTexture, PantsBounds, Pants.ItemColor);
                if (Pants.hover)
                {
                    DrawHover(spriteBatach, Pants);
                }
            }

            if (LeftWeapon != null)
            {
                Rectangle newRect = new Rectangle(LWeapBounds.X, LWeapBounds.Y + (LWeapBounds.Height / 4), LWeapBounds.Width, LWeapBounds.Height / 2);
                spriteBatach.Draw(LeftWeapon.ItemTexture, newRect, LeftWeapon.ItemColor);
                if (LeftWeapon.hover)
                {
                    DrawHover(spriteBatach, LeftWeapon);
                }
            }

            if (Boots != null)
            {
                Rectangle newRect = new Rectangle(BootsBounds.X + (BootsBounds.Width / 4), BootsBounds.Y + (BootsBounds.Height / 4), BootsBounds.Width / 2, BootsBounds.Height / 2);
                spriteBatach.Draw(Boots.ItemTexture, newRect, Boots.ItemColor);
                if (Boots.hover)
                {
                    DrawHover(spriteBatach, Boots);
                }
            }

            if (Belt != null)
            {
                Rectangle newRect = new Rectangle(BeltBounds.X + (BeltBounds.Width / 4), BeltBounds.Y, BeltBounds.Width / 2, BeltBounds.Height);
                spriteBatach.Draw(Belt.ItemTexture, newRect, Belt.ItemColor);
                if (Belt.hover)
                {
                    DrawHover(spriteBatach, Belt);
                }
            }

            if (LeftRing != null)
            {
                spriteBatach.Draw(LeftRing.ItemTexture, LeftRingBounds, LeftRing.ItemColor);
                if (LeftRing.hover)
                {
                    DrawHover(spriteBatach, LeftRing);
                }
            }

            if (RightRing != null)
            {
                spriteBatach.Draw(RightRing.ItemTexture, RightRingBounds, RightRing.ItemColor);
                if (RightRing.hover)
                {
                    DrawHover(spriteBatach, RightRing);
                }
            }
            Hero.Draw(spriteBatach);

            btnOffense.Draw(spriteBatach, GlobalVariables.txtButton, GlobalVariables.gfx, new Rectangle((int)(GlobalVariables.gfx.PreferredBackBufferWidth * .64), (int)(GlobalVariables.gfx.PreferredBackBufferHeight * .22), (int)(GlobalVariables.gfx.PreferredBackBufferWidth * .05), (int)(GlobalVariables.gfx.PreferredBackBufferHeight * .05)), "Offense", GlobalVariables.AutoFont(GlobalVariables.gfx, 2));
            btnDefense.Draw(spriteBatach, GlobalVariables.txtButton, GlobalVariables.gfx, new Rectangle((int)(GlobalVariables.gfx.PreferredBackBufferWidth * .70), (int)(GlobalVariables.gfx.PreferredBackBufferHeight * .22), (int)(GlobalVariables.gfx.PreferredBackBufferWidth * .05), (int)(GlobalVariables.gfx.PreferredBackBufferHeight * .05)), "Defense", GlobalVariables.AutoFont(GlobalVariables.gfx, 2));
            btnUtility.Draw(spriteBatach, GlobalVariables.txtButton, GlobalVariables.gfx, new Rectangle((int)(GlobalVariables.gfx.PreferredBackBufferWidth * .76), (int)(GlobalVariables.gfx.PreferredBackBufferHeight * .22), (int)(GlobalVariables.gfx.PreferredBackBufferWidth * .05), (int)(GlobalVariables.gfx.PreferredBackBufferHeight * .05)), "Utility", GlobalVariables.AutoFont(GlobalVariables.gfx, 2));
        }