Ejemplo n.º 1
0
        public BasicInformationContent(ContentManager content, int offsetX = 0, int offsetY = 0, String Folder = "")
        {
            //load icons
            DiamondIcon = new Image(content, Folder + "Menu/Icons/DiamondSmall", Vector2.Zero);
            CreditIcon  = new Image(content, Folder + "Menu/Icons/CreditSmall", Vector2.Zero);
            DucketIcon  = new Image(content, Folder + "Menu/Icons/DucketSmall", Vector2.Zero);
            HCIcon      = new Image(content, Folder + "Menu/Icons/HCSmall", Vector2.Zero);

            //load buttons
            HelpButton     = new HoverButton(content, Folder + "Menu/Buttons/HelpBtn", new Vector2i(1, 3), () => { Console.WriteLine("Help"); }, Color.White);
            ExitButton     = new HoverButton(content, Folder + "Menu/Buttons/ExitBtn", new Vector2i(1, 3), () => { GameScreenManager.Instance.Quit = true; }, Color.White);
            SettingsButton = new HoverButton(content, Folder + "Menu/Buttons/SettingsBtn", new Vector2i(1, 3), () => { Console.WriteLine("Settings"); }, Color.White);

            //load Details
            imgLine       = new Image(content, Folder + "Menu/HC/Divider", new Vector2(1, 55));
            imgHCBackdrop = new Image(content, Folder + "Menu/HC/BackdropHC", Vector2.Zero);

            //load fonts
            txtDiamond = new Font(content, "Fonts/UbuntuRegular", "0", new Color(54, 177, 211));
            txtCredit  = new Font(content, "Fonts/UbuntuRegular", "0", new Color(205, 167, 34));
            txtDucket  = new Font(content, "Fonts/UbuntuRegular", "0", new Color(214, 134, 214));

            //Load Background
            background = new TransparentBlackBox(content);
            background.LoadContent(new Vector2(192, 71), false, true, true, true);

            //Configurate
            offset       = new Vector2(offsetX, offsetY);
            offsetIcon   = new Vector2(40, 4);
            offsetBorder = new Vector2(3, 0);
        }