Esempio n. 1
0
        public void CreateCreditsArea()
        {
            this.DestroyMenu();

            this.Hud.ReloadShow = false;
            this.Hud.HomeShow   = false;
            this.Hud.BackShow   = true;
            this.Hud.ResizeShow = true;
            BackHudBtn backHudBtn = new BackHudBtn();

            backHudBtn.mainMenu = this;
            this.Hud.Back       = backHudBtn;
            this.Hud.Start(this.Content, this.Mouse, this.Screem);
            backHudBtn.CBody.Tag = "back";

            this.CreditsArea = new CreditsArea();
            this.CreditsArea.Localization = this.Localization;
            this.CreditsArea.Storage      = this.Storage;
            this.CreditsArea.Screem       = this.Screem;
            this.CreditsArea.Font         = this.Font;
            this.CreditsArea.FontBold     = this.FontBold;
            this.CreditsArea.Show         = true;
            this.CreditsArea.Start();

            this.UI.Add(this.CreditsArea);
        }
Esempio n. 2
0
        public void CreateLanguageSelect()
        {
            this.DestroyMenu();

            this.Hud.ReloadShow = false;
            this.Hud.HomeShow   = false;
            this.Hud.BackShow   = true;
            this.Hud.ResizeShow = true;
            BackHudBtn backHudBtn = new BackHudBtn();

            backHudBtn.mainMenu = this;
            this.Hud.Back       = backHudBtn;
            this.Hud.Start(this.Content, this.Mouse, this.Screem);
            backHudBtn.CBody.Tag = "back";

            this.SelectLanguage          = new SelectLanguage();
            this.SelectLanguage._Screem  = this.Screem;
            this.SelectLanguage.World    = this.World;
            this.SelectLanguage.Font     = this.Font;
            this.SelectLanguage.Content  = this.Content;
            this.SelectLanguage.Storage  = this.Storage;
            this.SelectLanguage._Mouse   = this.Mouse;
            this.SelectLanguage.MainMenu = this;
            this.SelectLanguage.Start();

            this.UI.Add(this.SelectLanguage);
        }
Esempio n. 3
0
        public void CreateSelectLevels()
        {
            this.DestroyMenu();

            this.Hud.ReloadShow = false;
            this.Hud.HomeShow   = false;
            this.Hud.BackShow   = true;
            BackHudBtn backHudBtn = new BackHudBtn();

            backHudBtn.mainMenu = this;
            this.Hud.Back       = backHudBtn;
            this.Hud.Start(this.Content, this.Mouse, this.Screem);

            List <bool> levels = this.Storage.getItemsBool("Progress");

            this.LevelsSelect = new List <MenuItemLevel>();

            for (int i = 0; i < 8; i++)
            {
                MenuItemLevel MenuItemLevel = new MenuItemLevel();
                MenuItemLevel.Value       = "0" + (i + 1).ToString();
                MenuItemLevel.Id          = i;
                MenuItemLevel.Content     = this.Content;
                MenuItemLevel.Font        = this.Font;
                MenuItemLevel._Mouse      = this.Mouse;
                MenuItemLevel.World       = this.World;
                MenuItemLevel.Unlock      = levels[i];
                MenuItemLevel.GameManager = this.GameManager;
                MenuItemLevel.Show        = true;

                float xCenter = this.Screem.getCenterScreem.X - ((5 * 130 / 2f));

                if (i < 5)
                {
                    MenuItemLevel.Position = new Vector2(xCenter + 60 + (i * 130), 150);
                }
                else
                {
                    MenuItemLevel.Position = new Vector2(xCenter + 60 + ((i - 5) * 130), 280);
                }

                MenuItemLevel.Start();
                MenuItemLevel.MainMenu = this;
                LevelsSelect.Add(MenuItemLevel);
                this.UI.Add(MenuItemLevel);
            }
        }