Esempio n. 1
0
        public override void Update(GameTime gameTime)
        {
            if (!startUpFlag)
            {
                if (Main.LocalPlayer.EE().StickyGunpowderActive)
                {
                    leftPage.Append(StickyGunpowderImage);
                    ToggleStickyGunpowder.Append(new Active());
                }
                else
                {
                    leftPage.Append(StickyGunpowder_GreyscaleImage);
                    ToggleStickyGunpowder.Append(new Inactive());
                }
                if (Main.LocalPlayer.EE().LightweightBombshellsActive)
                {
                    rightPage.Append(LightweightBombshellsImage);
                    ToggleLightweightBombshells.Append(new Active());
                }
                else
                {
                    rightPage.Append(LightweightBombshells_GreyscaleImage);
                    ToggleLightweightBombshells.Append(new Inactive());
                }
                VelocitySliderBar.SetSlider((int)(Main.LocalPlayer.EE().LightweightBombshellVelocity));
                startUpFlag = true;
            }

            if (VelocitySliderBar != null && startUpFlag)
            {
                Main.LocalPlayer.EE().LightweightBombshellVelocity = VelocitySliderBar.value;
            }

            if (VelocitySliderBar.value != null)
            {
                VelocitySliderBar.RemoveChild(VelocityOut);
                VelocityOut            = new UIText($"Current Weight: {1 + (VelocitySliderBar.value) / 12}kg");
                VelocityOut.VAlign     = 1;
                VelocityOut.HAlign     = 0.5f;
                VelocityOut.Top.Pixels = 25;
                VelocitySliderBar.Append(VelocityOut);
            }
            base.Update(gameTime);
        }
Esempio n. 2
0
        public override void OnInitialize()
        {
            base.OnInitialize();    // Leave this or it wont work

            CookbookHeader RandomFuelHeader = new CookbookHeader("Random Fuel");

            RandomFuelHeader.HAlign     = 0.6f;
            RandomFuelHeader.Top.Pixels = -20;
            RandomFuelHeader.TextColor  = Color.LightGray;

            UIText RandomFuelFlavorText = new UIText("Kerosene and Nitroglycerin");

            RandomFuelFlavorText.HAlign     = 0.5f;
            RandomFuelFlavorText.Top.Pixels = 30;
            RandomFuelFlavorText.TextColor  = Color.Yellow;
            RandomFuelHeader.Append(RandomFuelFlavorText);

            UIText RandomFuelDescription = new UIText("Explosives are infused with\n" +
                                                      "one of three status effects");

            RandomFuelDescription.Top.Pixels  = 40;
            RandomFuelDescription.HAlign      = 0.7f;
            RandomFuelDescription.Left.Pixels = -10;
            RandomFuelDescription.TextColor   = Color.LightGray;
            leftPage.Append(RandomFuelDescription);
            leftPage.Append(RandomFuelHeader);

            CookbookHeader ShortFuzeHeader = new CookbookHeader("Short Fuze");

            ShortFuzeHeader.HAlign     = 0.65f;
            ShortFuzeHeader.Top.Pixels = -20;
            ShortFuzeHeader.TextColor  = Color.LightGray;

            UIText ShortFuzeFlavorText = new UIText("As short as my temper");

            ShortFuzeFlavorText.HAlign     = 0.5f;
            ShortFuzeFlavorText.Top.Pixels = 30;
            ShortFuzeFlavorText.TextColor  = Color.Orange;
            ShortFuzeHeader.Append(ShortFuzeFlavorText);

            UIText ShortFuzeDescription = new UIText("Allows for chaning the fuze\n" +
                                                     "length for most  explosives\n");

            ShortFuzeDescription.Top.Pixels  = 40;
            ShortFuzeDescription.HAlign      = 0.85f;
            ShortFuzeDescription.Left.Pixels = -20;
            ShortFuzeDescription.TextColor   = Color.LightGray;
            rightPage.Append(ShortFuzeDescription);
            rightPage.Append(ShortFuzeHeader);

            CaptainExplosiveBossBox = new UIPanel();
            CaptainExplosiveBossBox.Height.Pixels   = 140;
            CaptainExplosiveBossBox.Width.Pixels    = 200;
            CaptainExplosiveBossBox.Top.Pixels      = 330;
            CaptainExplosiveBossBox.HAlign          = 0.5f;
            CaptainExplosiveBossBox.Left.Pixels     = -20;
            CaptainExplosiveBossBox.BackgroundColor = new Color(0, 0, 0, 50);
            CaptainExplosiveBossBox.BorderColor     = new Color(0, 0, 0, 75);
            leftPage.Append(CaptainExplosiveBossBox);

            UIText foundRF = new UIText("    Dropped by: \nCaptain Explosive");

            foundRF.TextColor  = Color.LightGray;
            foundRF.HAlign     = 0.5f;
            foundRF.Top.Pixels = -60;
            CaptainExplosiveBossBox.Append(foundRF);

            UIText foundCEB = new UIText("13.33% Chance");

            foundCEB.TextColor  = Color.LightGray;
            foundCEB.HAlign     = 0.5f;
            foundCEB.Top.Pixels = 140;
            CaptainExplosiveBossBox.Append(foundCEB);

            CaptainExplosiveBossAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/CaptainExplosiveBoss/CaptainExplosiveBoss", 4, 5);
            CaptainExplosiveBossAnimated.HAlign        = 0.5f;
            CaptainExplosiveBossAnimated.VAlign        = 0.5f;
            CaptainExplosiveBossAnimated.Height.Pixels = 140;
            CaptainExplosiveBossAnimated.Width.Pixels  = 200;
            CaptainExplosiveBossBox.Append(CaptainExplosiveBossAnimated);

            CaptainExplosiveNPCBox = new UIPanel();
            CaptainExplosiveNPCBox.Height.Pixels   = 112;
            CaptainExplosiveNPCBox.Width.Pixels    = 80;
            CaptainExplosiveNPCBox.Top.Pixels      = 330;
            CaptainExplosiveNPCBox.HAlign          = 0.5f;
            CaptainExplosiveNPCBox.Left.Pixels     = 10;
            CaptainExplosiveNPCBox.BackgroundColor = new Color(0, 0, 0, 50);
            CaptainExplosiveNPCBox.BorderColor     = new Color(0, 0, 0, 75);
            rightPage.Append(CaptainExplosiveNPCBox);

            UIText foundSF = new UIText("     Sold By:\nCaptain Explosive");

            foundSF.TextColor  = Color.LightGray;
            foundSF.HAlign     = 0.5f;
            foundSF.Top.Pixels = -60;
            CaptainExplosiveNPCBox.Append(foundSF);

            UIText foundCENPC = new UIText("Always");

            foundCENPC.TextColor  = Color.LightGray;
            foundCENPC.HAlign     = 0.5f;
            foundCENPC.Top.Pixels = 110;
            CaptainExplosiveNPCBox.Append(foundCENPC);

            CaptainExplosiveNPCAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/CaptainExplosiveNPC/CaptainExplosiveNPC", 13, 5);
            CaptainExplosiveNPCAnimated.HAlign        = 0.5f;
            CaptainExplosiveNPCAnimated.VAlign        = 0.5f;
            CaptainExplosiveNPCAnimated.Height.Pixels = 112;
            CaptainExplosiveNPCAnimated.Width.Pixels  = 80;
            CaptainExplosiveNPCBox.Append(CaptainExplosiveNPCAnimated);

            ToggleRandomFuel  = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
            RandomFuel        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/RandomFuel"));
            RandomFuel.VAlign = 0.5f;
            RandomFuel.HAlign = 0.5f;
            ToggleRandomFuel.Append(RandomFuel);        // Image of Random fuel for labeling
            ToggleRandomFuel.Left.Pixels = 50;
            ToggleRandomFuel.Top.Pixels  = rightPage.Height.Pixels / 2 - 100;
            ToggleRandomFuel.OnClick    += new MouseEvent(RandomFuelToggle);
            leftPage.Append(ToggleRandomFuel);

            /*ToggleOnFire = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
             *  OnFire = new UIImage(ModContent.GetTexture("Terraria/Buff_24"));
             *  OnFire.VAlign = 0.5f;
             *  OnFire.HAlign = 0.5f;
             *  ToggleOnFire.Append(OnFire);    // Image of Random fuel for labeling
             * ToggleOnFire.Left.Pixels = 25;
             * ToggleOnFire.Top.Pixels = leftPage.Height.Pixels/2 - 75;
             * ToggleOnFire.OnClick += new MouseEvent(OnFireToggle);
             * leftPage.Append(ToggleOnFire);
             *
             * ToggleFrostburn = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
             *  Frostburn = new UIImage(ModContent.GetTexture("Terraria/Buff_44"));
             *  Frostburn.VAlign = 0.5f;
             *  Frostburn.HAlign = 0.5f;
             *      ToggleFrostburn.Append(Frostburn);    // Image of Random fuel for labeling
             * ToggleFrostburn.Left.Pixels = 250;
             * ToggleFrostburn.Top.Pixels = leftPage.Height.Pixels/2 - 125;
             * ToggleFrostburn.OnClick += new MouseEvent(FrostburnToggle);
             * leftPage.Append(ToggleFrostburn);
             *
             * ToggleConfused = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
             *  Confused = new UIImage(ModContent.GetTexture("Terraria/Buff_31"));
             *  Confused.VAlign = 0.5f;
             *  Confused.HAlign = 0.5f;
             *  ToggleConfused.Append(Confused);    // Image of Random fuel for labeling
             * ToggleConfused.Left.Pixels = 250;
             * ToggleConfused.Top.Pixels = leftPage.Height.Pixels/2 - 75;
             * ToggleConfused.OnClick += new MouseEvent(ConfusedToggle);
             * leftPage.Append(ToggleConfused);*/

            ToggleShortFuze  = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
            ShortFuze        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/ShortFuse"));
            ShortFuze.VAlign = 0.5f;
            ShortFuze.HAlign = 0.5f;
            ToggleShortFuze.Append(ShortFuze);        // Image of Random fuel for labeling
            ToggleShortFuze.Left.Pixels = 50;
            ToggleShortFuze.Top.Pixels  = rightPage.Height.Pixels / 2 - 100;
            ToggleShortFuze.OnClick    += new MouseEvent(ShortFuzeToggle);
            rightPage.Append(ToggleShortFuze);

            FuseSliderBar               = new SliderBar("Fuze Length");
            FuseSliderBar.HAlign        = 0.1f;
            FuseSliderBar.VAlign        = 0.5f;
            FuseSliderBar.Left.Pixels   = 200;
            FuseSliderBar.Top.Pixels    = rightPage.Height.Pixels / 2 - 325;
            FuseSliderBar.Width.Pixels  = 220;
            FuseSliderBar.Height.Pixels = 20;
            rightPage.Append(FuseSliderBar);

            FuseOut            = new UIText("null");
            FuseOut.VAlign     = 1;
            FuseOut.HAlign     = 0.5f;
            FuseOut.Top.Pixels = 25;
            FuseSliderBar.Append(FuseOut);

            RandomFuelImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/RandomFuel"));
            RandomFuelImage.Left.Pixels = 0;
            RandomFuelImage.Top.Pixels  = 0;
            RandomFuelImage.ImageScale  = 0.8f;
            RandomFuelImage.OnClick    += new MouseEvent(RandomFuelToggle);
            leftPage.Append(RandomFuelImage);

            ShortFuzeImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/ShortFuse"));
            ShortFuzeImage.Left.Pixels = 20;
            ShortFuzeImage.Top.Pixels  = -16;
            ShortFuzeImage.ImageScale  = 0.7f;
            ShortFuzeImage.OnClick    += new MouseEvent(ShortFuzeToggle);
            rightPage.Append(ShortFuzeImage);

            RandomFuel_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/RandomFuel_Greyscale"));
            RandomFuel_GreyscaleImage.Left.Pixels = 0;
            RandomFuel_GreyscaleImage.Top.Pixels  = 0;
            RandomFuel_GreyscaleImage.ImageScale  = 0.8f;
            RandomFuel_GreyscaleImage.OnClick    += new MouseEvent(RandomFuelToggle);
            leftPage.Append(RandomFuel_GreyscaleImage);

            ShortFuze_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/ShortFuse_Greyscale"));
            ShortFuze_GreyscaleImage.Left.Pixels = 20;
            ShortFuze_GreyscaleImage.Top.Pixels  = -16;
            ShortFuze_GreyscaleImage.ImageScale  = 0.7f;
            ShortFuze_GreyscaleImage.OnClick    += new MouseEvent(ShortFuzeToggle);
            rightPage.Append(ShortFuze_GreyscaleImage);
        }
Esempio n. 3
0
        public override void Update(GameTime gameTime)
        {
            if (!startUpFlag)
            {
                if (Main.LocalPlayer.EE().RandomFuelActive)
                {
                    leftPage.Append(RandomFuelImage);
                    ToggleRandomFuel.Append(new Active());
                }
                else
                {
                    leftPage.Append(RandomFuel_GreyscaleImage);
                    ToggleRandomFuel.Append(new Inactive());
                }

                /*
                 * if (Main.LocalPlayer.EE().RandomFuelOnFire)
                 * {
                 *  ToggleOnFire.Append(new Active());
                 * }
                 * else
                 * {
                 *  ToggleOnFire.Append(new Inactive());
                 * }
                 *
                 * if (Main.LocalPlayer.EE().RandomFuelFrostburn)
                 * {
                 *  ToggleFrostburn.Append(new Active());
                 * }
                 * else
                 * {
                 *  ToggleFrostburn.Append(new Inactive());
                 * }
                 *
                 * if (Main.LocalPlayer.EE().RandomFuelConfused)
                 * {
                 *  ToggleConfused.Append(new Active());
                 * }
                 * else
                 * {
                 *  ToggleConfused.Append(new Inactive());
                 * }
                 */

                if (Main.LocalPlayer.EE().ShortFuseActive)
                {
                    rightPage.Append(ShortFuzeImage);
                    ToggleShortFuze.Append(new Active());
                }
                else
                {
                    rightPage.Append(ShortFuze_GreyscaleImage);
                    ToggleShortFuze.Append(new Inactive());
                }
                if (Main.LocalPlayer.EE().ShortFuseTime != Single.NaN && Main.LocalPlayer.EE().ShortFuseTime != null)
                {
                    FuseSliderBar.SetSlider((int)(Main.LocalPlayer.EE().ShortFuseTime));
                }
                else
                {
                    Main.NewText("Something went wrong while setting up UI values");
                    Main.NewText("Please notify the Extra Explosives Devs (if this is a test build just @Charlie)");
                    FuseSliderBar.SetSlider(1);
                }
                startUpFlag = true;
            }

            if (FuseSliderBar != null && startUpFlag)
            {
                Main.LocalPlayer.EE().ShortFuseTime = FuseSliderBar.value;
            }

            if (FuseSliderBar.value != null)
            {
                FuseSliderBar.RemoveChild(FuseOut);
                float bounds = (float)Math.Round((FuseSliderBar.value - 5) / 87.5f + 0.5f, 2);
                if (bounds > 2)
                {
                    bounds = 2;
                }
                string text = (bounds < 1 ? " shorter" : " longer");
                FuseOut            = new UIText($"Fuze is {bounds} times" + text);
                FuseOut.VAlign     = 1f;
                FuseOut.HAlign     = 0.5f;
                FuseOut.Top.Pixels = 25;
                Main.LocalPlayer.EE().ShortFuseTime = bounds;
                FuseSliderBar.Append(FuseOut);
                FuseSliderBar.SetSlider(1);
            }
            base.Update(gameTime);
        }
Esempio n. 4
0
        public override void OnInitialize()
        {
            base.OnInitialize();

            CookbookHeader StickyGunpowderHeader = new CookbookHeader("Sticky Gunpowder");

            StickyGunpowderHeader.HAlign     = 0.6f;
            StickyGunpowderHeader.Top.Pixels = -20;
            StickyGunpowderHeader.TextColor  = Color.LightGray;

            UIText StickyGunpowderFlavorText = new UIText("Gorillas and Ducks");

            StickyGunpowderFlavorText.HAlign     = 0.5f;
            StickyGunpowderFlavorText.Top.Pixels = 30;
            StickyGunpowderFlavorText.TextColor  = Color.Blue;
            StickyGunpowderHeader.Append(StickyGunpowderFlavorText);

            UIText StickyGunpowderDescription = new UIText("   Explosives  stick to surfaces\n" +
                                                           "Works with bombs and grenades");

            StickyGunpowderDescription.Top.Pixels = 40;
            StickyGunpowderDescription.HAlign     = 0.7f;
            StickyGunpowderDescription.TextColor  = Color.LightGray;
            leftPage.Append(StickyGunpowderDescription);
            leftPage.Append(StickyGunpowderHeader);

            CookbookHeader LightweightBombshellsHeader = new CookbookHeader("Lightweight Bombshells");

            LightweightBombshellsHeader.HAlign     = 0.75f;
            LightweightBombshellsHeader.Top.Pixels = -20;
            LightweightBombshellsHeader.TextColor  = Color.LightGray;

            UIText LightweightBombshellsFlavorText = new UIText("100% more helium");

            LightweightBombshellsFlavorText.HAlign     = 0.5f;
            LightweightBombshellsFlavorText.Top.Pixels = 30;
            LightweightBombshellsFlavorText.TextColor  = Color.DarkGray;
            LightweightBombshellsHeader.Append(LightweightBombshellsFlavorText);

            UIText LightweightBombshellsDescription = new UIText("Allows you to throw explosives\n" +
                                                                 " further  than   ever  before.");

            LightweightBombshellsDescription.Top.Pixels = 40;
            LightweightBombshellsDescription.HAlign     = 0.85f;
            LightweightBombshellsDescription.TextColor  = Color.LightGray;
            rightPage.Append(LightweightBombshellsDescription);
            rightPage.Append(LightweightBombshellsHeader);

            StickyGunpowderBox1 = new UIPanel();
            StickyGunpowderBox1.Height.Pixels   = 100;
            StickyGunpowderBox1.Width.Pixels    = 100;
            StickyGunpowderBox1.Top.Pixels      = 340;
            StickyGunpowderBox1.HAlign          = 0.5f;
            StickyGunpowderBox1.Left.Pixels     = -140;
            StickyGunpowderBox1.BackgroundColor = new Color(0, 0, 0, 50);
            StickyGunpowderBox1.BorderColor     = new Color(0, 0, 0, 75);
            leftPage.Append(StickyGunpowderBox1);

            StickyGunpowderAnimated1               = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Animations/StickyGunpowder/Gel"));
            StickyGunpowderAnimated1.HAlign        = 0.5f;
            StickyGunpowderAnimated1.VAlign        = 0.5f;
            StickyGunpowderAnimated1.Top.Pixels    = -10;
            StickyGunpowderAnimated1.Height.Pixels = 54;
            StickyGunpowderAnimated1.Width.Pixels  = 78;
            StickyGunpowderBox1.Append(StickyGunpowderAnimated1);

            StickyGunpowderBox2 = new UIPanel();
            StickyGunpowderBox2.Height.Pixels   = 100;
            StickyGunpowderBox2.Width.Pixels    = 100;
            StickyGunpowderBox2.Top.Pixels      = 330;
            StickyGunpowderBox2.HAlign          = 0.5f;
            StickyGunpowderBox2.Left.Pixels     = 90;
            StickyGunpowderBox2.BackgroundColor = new Color(0, 0, 0, 50);
            StickyGunpowderBox2.BorderColor     = new Color(0, 0, 0, 75);
            leftPage.Append(StickyGunpowderBox2);

            UIText foundCW2 = new UIText("               Crafted with:\n" +
                                         "    Gel           and       Explosive Powder");

            foundCW2.TextColor   = Color.LightGray;
            foundCW2.HAlign      = 0.5f;
            foundCW2.Left.Pixels = -100;
            foundCW2.Top.Pixels  = -60;
            StickyGunpowderBox2.Append(foundCW2);

            UIText foundMat = new UIText("At any Anvil");

            foundMat.TextColor   = Color.LightGray;
            foundMat.HAlign      = 0.5f;
            foundMat.Top.Pixels  = 110;
            foundMat.Left.Pixels = -115;
            StickyGunpowderBox2.Append(foundMat);

            StickyGunpowderAnimated2               = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Animations/StickyGunpowder/ExplosivePowder"));
            StickyGunpowderAnimated2.HAlign        = 0.5f;
            StickyGunpowderAnimated2.VAlign        = 0.5f;
            StickyGunpowderAnimated2.Top.Pixels    = 10;
            StickyGunpowderAnimated2.Height.Pixels = 100;
            StickyGunpowderAnimated2.Width.Pixels  = 100;
            StickyGunpowderBox2.Append(StickyGunpowderAnimated2);

            CaptainExplosiveNPCBox = new UIPanel();
            CaptainExplosiveNPCBox.Height.Pixels   = 112;
            CaptainExplosiveNPCBox.Width.Pixels    = 80;
            CaptainExplosiveNPCBox.Top.Pixels      = 330;
            CaptainExplosiveNPCBox.HAlign          = 0.5f;
            CaptainExplosiveNPCBox.Left.Pixels     = 10;
            CaptainExplosiveNPCBox.BackgroundColor = new Color(0, 0, 0, 50);
            CaptainExplosiveNPCBox.BorderColor     = new Color(0, 0, 0, 75);
            rightPage.Append(CaptainExplosiveNPCBox);

            UIText foundLB = new UIText("     Sold By:\nCaptain Explosive");

            foundLB.TextColor  = Color.LightGray;
            foundLB.HAlign     = 0.5f;
            foundLB.Top.Pixels = -60;
            CaptainExplosiveNPCBox.Append(foundLB);

            UIText foundCENPC = new UIText("Always");

            foundCENPC.TextColor  = Color.LightGray;
            foundCENPC.HAlign     = 0.5f;
            foundCENPC.Top.Pixels = 110;
            CaptainExplosiveNPCBox.Append(foundCENPC);

            CaptainExplosiveNPCAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/CaptainExplosiveNPC/CaptainExplosiveNPC", 13, 5);
            CaptainExplosiveNPCAnimated.HAlign        = 0.5f;
            CaptainExplosiveNPCAnimated.VAlign        = 0.5f;
            CaptainExplosiveNPCAnimated.Height.Pixels = 112;
            CaptainExplosiveNPCAnimated.Width.Pixels  = 80;
            CaptainExplosiveNPCBox.Append(CaptainExplosiveNPCAnimated);

            ToggleStickyGunpowder  = new UIHoverImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"), "Sticky Gunpowder");
            StickyGunpowder        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/StickyGunpowder"));
            StickyGunpowder.VAlign = 0.5f;
            StickyGunpowder.HAlign = 0.5f;
            ToggleStickyGunpowder.Append(StickyGunpowder);        // Image of Sticky Gunpowder for labeling
            ToggleStickyGunpowder.Left.Pixels = 25;
            ToggleStickyGunpowder.Top.Pixels  = leftPage.Height.Pixels / 2 - 100;
            ToggleStickyGunpowder.OnClick    += new MouseEvent(StickyGunpowderToggle);
            leftPage.Append(ToggleStickyGunpowder);

            ToggleLightweightBombshells  = new UIHoverImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"), "Lightweight Bombshells");
            LightweightBombshells        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/LightweightBombshells"));
            LightweightBombshells.VAlign = 0.5f;
            LightweightBombshells.HAlign = 0.5f;
            ToggleLightweightBombshells.Append(LightweightBombshells);        // Image of Sticky Gunpowder for labeling
            ToggleLightweightBombshells.Left.Pixels = 50;
            ToggleLightweightBombshells.Top.Pixels  = rightPage.Height.Pixels / 2 - 100;
            ToggleLightweightBombshells.OnClick    += new MouseEvent(LightweightBombshellsToggle);
            rightPage.Append(ToggleLightweightBombshells);

            VelocitySliderBar               = new SliderBar("Bombshell Weight");
            VelocitySliderBar.HAlign        = 0.1f;
            VelocitySliderBar.VAlign        = 0.5f;
            VelocitySliderBar.Left.Pixels   = 200;
            VelocitySliderBar.Top.Pixels    = rightPage.Height.Pixels / 2 - 325;
            VelocitySliderBar.Width.Pixels  = 220;
            VelocitySliderBar.Height.Pixels = 20;
            rightPage.Append(VelocitySliderBar);

            VelocityOut            = new UIText("null");
            VelocityOut.VAlign     = 1;
            VelocityOut.HAlign     = 0.5f;
            VelocityOut.Top.Pixels = 25;
            VelocitySliderBar.Append(VelocityOut);

            StickyGunpowderImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/StickyGunpowder"));
            StickyGunpowderImage.Left.Pixels = 0;
            StickyGunpowderImage.Top.Pixels  = 0;
            StickyGunpowderImage.ImageScale  = 0.8f;
            StickyGunpowderImage.OnClick    += new MouseEvent(StickyGunpowderToggle);
            leftPage.Append(StickyGunpowderImage);
            LightweightBombshellsImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/LightweightBombshells"));
            LightweightBombshellsImage.Left.Pixels = 20;
            LightweightBombshellsImage.Top.Pixels  = -16;
            LightweightBombshellsImage.ImageScale  = 0.7f;
            LightweightBombshellsImage.OnClick    += new MouseEvent(LightweightBombshellsToggle);
            rightPage.Append(LightweightBombshellsImage);
            StickyGunpowder_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/StickyGunpowder_Greyscale"));
            StickyGunpowder_GreyscaleImage.Left.Pixels = 0;
            StickyGunpowder_GreyscaleImage.Top.Pixels  = 0;
            StickyGunpowder_GreyscaleImage.ImageScale  = 0.8f;
            StickyGunpowder_GreyscaleImage.OnClick    += new MouseEvent(StickyGunpowderToggle);
            leftPage.Append(StickyGunpowder_GreyscaleImage);
            LightweightBombshells_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/LightweightBombshells_Greyscale"));
            LightweightBombshells_GreyscaleImage.Left.Pixels = 20;
            LightweightBombshells_GreyscaleImage.Top.Pixels  = -16;
            LightweightBombshells_GreyscaleImage.ImageScale  = 0.7f;
            LightweightBombshells_GreyscaleImage.OnClick    += new MouseEvent(LightweightBombshellsToggle);
            rightPage.Append(LightweightBombshells_GreyscaleImage);
        }