Example #1
0
        public override void OnInitialize()
        {
            base.OnInitialize();

            CookbookHeader BombBagHeader = new CookbookHeader("Bomb Bag");

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

            UIText BombBagFlavorText = new UIText("Never Ending Explosives");

            BombBagFlavorText.HAlign     = 0.5f;
            BombBagFlavorText.Top.Pixels = 30;
            BombBagFlavorText.TextColor  = Color.GreenYellow;
            BombBagHeader.Append(BombBagFlavorText);

            UIText BombBagDescription = new UIText("Chance  to  throw a  second\n" +
                                                   "explosive at no addition cost");

            BombBagDescription.Top.Pixels = 40;
            BombBagDescription.HAlign     = 0.69f;
            BombBagDescription.TextColor  = Color.DarkGray;
            leftPage.Append(BombBagDescription);
            leftPage.Append(BombBagHeader);

            CookbookHeader MysteryBombHeader = new CookbookHeader("Mystery Bomb");

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

            UIText MysteryBombFlavorText = new UIText("Strange shape for a bomb");

            MysteryBombFlavorText.HAlign     = 0.5f;
            MysteryBombFlavorText.Top.Pixels = 30;
            MysteryBombFlavorText.TextColor  = Color.Red;
            MysteryBombHeader.Append(MysteryBombFlavorText);

            UIText MysteryBombDescription = new UIText("Chance to not consume explosives");

            MysteryBombDescription.Top.Pixels = 40;
            MysteryBombDescription.HAlign     = 0.95f;
            MysteryBombDescription.TextColor  = Color.LightGray;
            rightPage.Append(MysteryBombDescription);
            rightPage.Append(MysteryBombHeader);

            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);
            leftPage.Append(CaptainExplosiveNPCBox);

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

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

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

            KoboldBox = new UIPanel();
            KoboldBox.Height.Pixels   = 112;
            KoboldBox.Width.Pixels    = 108;
            KoboldBox.Top.Pixels      = 330;
            KoboldBox.HAlign          = 0.5f;
            KoboldBox.Left.Pixels     = -70;
            KoboldBox.BackgroundColor = new Color(0, 0, 0, 50);
            KoboldBox.BorderColor     = new Color(0, 0, 0, 75);
            rightPage.Append(KoboldBox);

            UIText foundMB1 = new UIText("                Dropped By:\n       Kobold");

            foundMB1.TextColor   = Color.LightGray;
            foundMB1.HAlign      = 0.5f;
            foundMB1.Top.Pixels  = -60;
            foundMB1.Left.Pixels = 30;
            KoboldBox.Append(foundMB1);

            UIText foundK = new UIText("  Part of the:\nOld One's Army");

            foundK.TextColor   = Color.LightGray;
            foundK.HAlign      = 0.5f;
            foundK.Top.Pixels  = 110;
            foundK.Left.Pixels = 80;
            KoboldBox.Append(foundK);

            KoboldAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/Kobold/Kobold", 8, 5);
            KoboldAnimated.HAlign        = 0.5f;
            KoboldAnimated.VAlign        = 0.5f;
            KoboldAnimated.Height.Pixels = 112;
            KoboldAnimated.Width.Pixels  = 108;
            KoboldBox.Append(KoboldAnimated);

            KoboldGliderBox = new UIPanel();
            KoboldGliderBox.Height.Pixels   = 92;
            KoboldGliderBox.Width.Pixels    = 156;
            KoboldGliderBox.Top.Pixels      = 340;
            KoboldGliderBox.HAlign          = 0.5f;
            KoboldGliderBox.Left.Pixels     = 90;
            KoboldGliderBox.BackgroundColor = new Color(0, 0, 0, 50);
            KoboldGliderBox.BorderColor     = new Color(0, 0, 0, 75);
            rightPage.Append(KoboldGliderBox);

            UIText foundMB2 = new UIText("\nKobold Glider");

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

            KoboldGliderAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/Kobold/KoboldGliderPiece", 2, 30);
            KoboldGliderAnimated.HAlign        = 0.5f;
            KoboldGliderAnimated.VAlign        = 0.5f;
            KoboldGliderAnimated.Height.Pixels = 92;
            KoboldGliderAnimated.Width.Pixels  = 156;
            KoboldGliderBox.Append(KoboldGliderAnimated);

            ToggleBombBag  = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
            BombBag        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/BombBag"));
            BombBag.VAlign = 0.5f;
            BombBag.HAlign = 0.5f;
            ToggleBombBag.Append(BombBag);        // Image of bomb bag for labeling
            ToggleBombBag.Left.Pixels = 25;
            ToggleBombBag.Top.Pixels  = leftPage.Height.Pixels / 2 - 100;
            ToggleBombBag.OnClick    += new MouseEvent(BombBagToggle);
            leftPage.Append(ToggleBombBag);

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

            BombBagImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/BombBag"));
            BombBagImage.Left.Pixels = 0;
            BombBagImage.Top.Pixels  = 0;
            BombBagImage.ImageScale  = 0.8f;
            BombBagImage.OnClick    += new MouseEvent(BombBagToggle);
            leftPage.Append(BombBagImage);
            MysteryBombImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/MysteryBomb"));
            MysteryBombImage.Left.Pixels = 20;
            MysteryBombImage.Top.Pixels  = -16;
            MysteryBombImage.ImageScale  = 0.7f;
            MysteryBombImage.OnClick    += new MouseEvent(MysteryBombToggle);
            rightPage.Append(MysteryBombImage);
            BombBag_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/BombBag_Greyscale"));
            BombBag_GreyscaleImage.Left.Pixels = 0;
            BombBag_GreyscaleImage.Top.Pixels  = 0;
            BombBag_GreyscaleImage.ImageScale  = 0.8f;
            BombBag_GreyscaleImage.OnClick    += new MouseEvent(BombBagToggle);
            leftPage.Append(BombBag_GreyscaleImage);
            MysteryBomb_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/MysteryBomb_Greyscale"));
            MysteryBomb_GreyscaleImage.Left.Pixels = 20;
            MysteryBomb_GreyscaleImage.Top.Pixels  = -16;
            MysteryBomb_GreyscaleImage.ImageScale  = 0.7f;
            MysteryBomb_GreyscaleImage.OnClick    += new MouseEvent(MysteryBombToggle);
            rightPage.Append(MysteryBomb_GreyscaleImage);
        }
Example #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);
        }
        public override void OnInitialize()
        {
            base.OnInitialize();

            CookbookHeader CrossedWiresHeader = new CookbookHeader("Crossed Wires");

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

            UIText CrossedWiresFlavorText = new UIText("Min Maxing has never been so fun");

            CrossedWiresFlavorText.HAlign     = 0.5f;
            CrossedWiresFlavorText.Top.Pixels = 30;
            CrossedWiresFlavorText.TextColor  = Color.Gold;
            CrossedWiresHeader.Append(CrossedWiresFlavorText);

            UIText CrossedWiresDescription = new UIText("Increases explosive damage by 15%");

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

            CookbookHeader GlowingCompoundHeader = new CookbookHeader("Glowing Compound");

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

            UIText GlowingCompoundFlavorText = new UIText("Signs of something more to come...");

            GlowingCompoundFlavorText.HAlign     = 0.5f;
            GlowingCompoundFlavorText.Top.Pixels = 30;
            GlowingCompoundFlavorText.TextColor  = Color.Chartreuse;
            GlowingCompoundHeader.Append(GlowingCompoundFlavorText);

            UIText GlowingCompoundDescription = new UIText("Bombs leave behind a glowing aura");

            GlowingCompoundDescription.Top.Pixels = 40;
            GlowingCompoundDescription.HAlign     = 0.95f;
            GlowingCompoundDescription.TextColor  = Color.LightGray;
            rightPage.Append(GlowingCompoundDescription);
            rightPage.Append(GlowingCompoundHeader);

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

            UIText foundGC = new UIText("   Found In: The Hallow");

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

            UIText foundRH = new UIText("When the radiation finds\n  its way into the crystals\nwhich naturally grow there");

            foundRH.TextColor  = Color.LightGray;
            foundRH.HAlign     = 0.5f;
            foundRH.Top.Pixels = 90;
            GlowingCrystalBox.Append(foundRH);

            GlowingCrystalAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/GlowingCrystal/GlowingCrystal", 18, 60);
            GlowingCrystalAnimated.HAlign        = 0.5f;
            GlowingCrystalAnimated.VAlign        = 0.5f;
            GlowingCrystalAnimated.Height.Pixels = 72;
            GlowingCrystalAnimated.Width.Pixels  = 72;
            GlowingCrystalBox.Append(GlowingCrystalAnimated);

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

            CrossedWiresAnimated1               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/CrossedWires/CrossedWires", 2, 120);
            CrossedWiresAnimated1.HAlign        = 0.5f;
            CrossedWiresAnimated1.VAlign        = 0.5f;
            CrossedWiresAnimated1.Height.Pixels = 72;
            CrossedWiresAnimated1.Width.Pixels  = 90;
            CrossedWiresBox1.Append(CrossedWiresAnimated1);

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

            UIText foundCW2 = new UIText("                        Crafted with:\n" +
                                         "      Copper or Tin,                      and Gel");

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

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

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

            CrossedWiresAnimated2               = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Animations/CrossedWires/Gel"));
            CrossedWiresAnimated2.HAlign        = 0.5f;
            CrossedWiresAnimated2.VAlign        = 0.5f;
            CrossedWiresAnimated2.Height.Pixels = 100;
            CrossedWiresAnimated2.Width.Pixels  = 100;
            CrossedWiresBox2.Append(CrossedWiresAnimated2);

            ToggleCrossedWires  = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
            CrossedWires        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/CrossedWires"));
            CrossedWires.VAlign = 0.5f;
            CrossedWires.HAlign = 0.5f;
            ToggleCrossedWires.Append(CrossedWires);        // Image of bomb bag for labeling
            ToggleCrossedWires.Left.Pixels = 25;
            ToggleCrossedWires.Top.Pixels  = leftPage.Height.Pixels / 2 - 100;
            ToggleCrossedWires.OnClick    += new MouseEvent(CrossedWiresToggle);
            leftPage.Append(ToggleCrossedWires);

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

            CrossedWiresImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/CrossedWires"));
            CrossedWiresImage.Left.Pixels = 0;
            CrossedWiresImage.Top.Pixels  = 0;
            CrossedWiresImage.ImageScale  = 0.8f;
            CrossedWiresImage.OnClick    += new MouseEvent(CrossedWiresToggle);
            leftPage.Append(CrossedWiresImage);
            GlowingCompoundImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/GlowingCompound"));
            GlowingCompoundImage.Left.Pixels = 20;
            GlowingCompoundImage.Top.Pixels  = -16;
            GlowingCompoundImage.ImageScale  = 0.7f;
            GlowingCompoundImage.OnClick    += new MouseEvent(GlowingCompoundToggle);
            rightPage.Append(GlowingCompoundImage);
            CrossedWires_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/CrossedWires_Greyscale"));
            CrossedWires_GreyscaleImage.Left.Pixels = 0;
            CrossedWires_GreyscaleImage.Top.Pixels  = 0;
            CrossedWires_GreyscaleImage.ImageScale  = 0.8f;
            CrossedWires_GreyscaleImage.OnClick    += new MouseEvent(CrossedWiresToggle);
            leftPage.Append(CrossedWires_GreyscaleImage);
            GlowingCompound_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/GlowingCompound_Greyscale"));
            GlowingCompound_GreyscaleImage.Left.Pixels = 20;
            GlowingCompound_GreyscaleImage.Top.Pixels  = -16;
            GlowingCompound_GreyscaleImage.ImageScale  = 0.7f;
            GlowingCompound_GreyscaleImage.OnClick    += new MouseEvent(GlowingCompoundToggle);
            rightPage.Append(GlowingCompound_GreyscaleImage);
        }
        public override void OnInitialize()
        {
            base.OnInitialize();

            CookbookHeader BlastShieldHeader = new CookbookHeader("Blast Shielding");

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

            UIText BlastShieldFlavorText = new UIText("Caution: Radioactive");

            BlastShieldFlavorText.HAlign     = 0.5f;
            BlastShieldFlavorText.Top.Pixels = 30;
            BlastShieldFlavorText.TextColor  = Color.OliveDrab;
            BlastShieldHeader.Append(BlastShieldFlavorText);

            UIText BlastShieldDescription = new UIText("Prevents  the  user  from taking\n" +
                                                       "damage from their own explosives");

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

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

            UIText foundBS = new UIText("     Dropped by:\nSkeleton Commandos");

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

            UIText foundSC = new UIText("1% Chance");

            foundSC.TextColor  = Color.LightGray;
            foundSC.HAlign     = 0.5f;
            foundSC.Top.Pixels = 100;
            SkeletonCommandoBox.Append(foundSC);

            SkeletonCommandoAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/SkeletonCommando/SkeletonCommando", 14, 5);
            SkeletonCommandoAnimated.HAlign        = 0.5f;
            SkeletonCommandoAnimated.VAlign        = 0.5f;
            SkeletonCommandoAnimated.Height.Pixels = 100;
            SkeletonCommandoAnimated.Width.Pixels  = 100;
            SkeletonCommandoBox.Append(SkeletonCommandoAnimated);

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

            UIText foundRP = new UIText("    Dropped by: \nTactical Skeletons");

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

            UIText foundTS = new UIText("1% Chance");

            foundTS.TextColor  = Color.LightGray;
            foundTS.HAlign     = 0.5f;
            foundTS.Top.Pixels = 100;
            TacticalSkeletonBox.Append(foundTS);

            TacticalSkeletonAnimated               = new AnimatedImage("ExtraExplosives/UI/AnarchistCookbookUI/Animations/TacticalSkeleton/TacticalSkeleton", 14, 5);
            TacticalSkeletonAnimated.HAlign        = 0.5f;
            TacticalSkeletonAnimated.VAlign        = 0.5f;
            TacticalSkeletonAnimated.Height.Pixels = 100;
            TacticalSkeletonAnimated.Width.Pixels  = 100;
            TacticalSkeletonBox.Append(TacticalSkeletonAnimated);

            CookbookHeader ReactivePlatingHeader = new CookbookHeader("Reactive Plating");

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

            UIText ReactivePlatingFlavorText = new UIText("Made of Depleted Uranium");

            ReactivePlatingFlavorText.HAlign     = 0.5f;
            ReactivePlatingFlavorText.Top.Pixels = 30;
            ReactivePlatingFlavorText.TextColor  = Color.Crimson;
            ReactivePlatingHeader.Append(ReactivePlatingFlavorText);

            UIText ReactivePlatingDescription = new UIText("Increases  damage  output;\n" +
                                                           "Decreases   damage  taken;");

            ReactivePlatingDescription.Top.Pixels  = 40;
            ReactivePlatingDescription.HAlign      = 0.82f;
            ReactivePlatingDescription.Left.Pixels = 10;
            ReactivePlatingDescription.TextColor   = Color.LightGray;
            rightPage.Append(ReactivePlatingDescription);
            rightPage.Append(ReactivePlatingHeader);

            ToggleBlastShielding  = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
            BlastShielding        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/BlastShielding"));
            BlastShielding.VAlign = 0.5f;
            BlastShielding.HAlign = 0.5f;
            ToggleBlastShielding.Append(BlastShielding);        // Image of bomb bag for labeling
            ToggleBlastShielding.Left.Pixels = 25;
            ToggleBlastShielding.Top.Pixels  = leftPage.Height.Pixels / 2 - 100;
            ToggleBlastShielding.OnClick    += new MouseEvent(BlastShieldingToggle);
            leftPage.Append(ToggleBlastShielding);

            ToggleReactivePlating  = new UIImageButton(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Box"));
            ReactivePlating        = new UIImage(ModContent.GetTexture("ExtraExplosives/Items/Accessories/AnarchistCookbook/ReactivePlating"));
            ReactivePlating.VAlign = 0.5f;
            ReactivePlating.HAlign = 0.5f;
            ToggleReactivePlating.Append(ReactivePlating);        // Image of bomb bag for labeling
            ToggleReactivePlating.Left.Pixels = 50;
            ToggleReactivePlating.Top.Pixels  = rightPage.Height.Pixels / 2 - 100;
            ToggleReactivePlating.OnClick    += new MouseEvent(ReactivePlatingToggle);
            rightPage.Append(ToggleReactivePlating);

            BlastShieldingImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/BlastShielding"));
            BlastShieldingImage.Left.Pixels = 0;
            BlastShieldingImage.Top.Pixels  = 0;
            BlastShieldingImage.ImageScale  = 0.8f;
            BlastShieldingImage.OnClick    += new MouseEvent(BlastShieldingToggle);
            //leftPage.Append(BlastShieldingImage);
            ReactivePlatingImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/ReactivePlating"));
            ReactivePlatingImage.Left.Pixels = 20;
            ReactivePlatingImage.Top.Pixels  = -16;
            ReactivePlatingImage.ImageScale  = 0.7f;
            ReactivePlatingImage.OnClick    += new MouseEvent(ReactivePlatingToggle);
            //rightPage.Append(ReactivePlatingImage);
            BlastShielding_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/BlastShielding_Greyscale"));
            BlastShielding_GreyscaleImage.Left.Pixels = 0;
            BlastShielding_GreyscaleImage.Top.Pixels  = 0;
            BlastShielding_GreyscaleImage.ImageScale  = 0.8f;
            BlastShielding_GreyscaleImage.OnClick    += new MouseEvent(BlastShieldingToggle);
            //leftPage.Append(BlastShielding_GreyscaleImage);
            ReactivePlating_GreyscaleImage             = new UIImage(ModContent.GetTexture("ExtraExplosives/UI/AnarchistCookbookUI/Accessories/ReactivePlating_Greyscale"));
            ReactivePlating_GreyscaleImage.Left.Pixels = 20;
            ReactivePlating_GreyscaleImage.Top.Pixels  = -16;
            ReactivePlating_GreyscaleImage.ImageScale  = 0.7f;
            ReactivePlating_GreyscaleImage.OnClick    += new MouseEvent(ReactivePlatingToggle);
            //rightPage.Append(ReactivePlating_GreyscaleImage);
        }
Example #5
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);
        }