コード例 #1
0
        /// <summary>
        /// The constructor for the Main Menu.
        /// </summary>
        public ControlScreenLayer() : base()
        {
            SetLayerAttributes();
            isTransparent = true;

            menuBackground = new MenuBackground();

            ConstructDrawingObjects();
        }
コード例 #2
0
ファイル: IntroStory.cs プロジェクト: justshiv/LightSavers
        /// <summary>
        /// The constructor for the Main Menu.
        /// </summary>
        public IntroStory(GameLayer cG) : base()
        {
            SetLayerAttributes();
            currentGame = cG;
            isTransparent = true;

            menuBackground = new MenuBackground();

            ConstructDrawingObjects();
        }
コード例 #3
0
        /// <summary>
        /// The constructor for the Main Menu.
        /// </summary>
        public SettingsMenuLayer() : base()
        {
            SetLayerAttributes();

            menuBackground = new MenuBackground();

            ConstructDrawingObjects();

            ConstructSubMenus();
        }
コード例 #4
0
ファイル: MainMenuLayer.cs プロジェクト: justshiv/LightSavers
        /// <summary>
        /// The constructor for the Main Menu.
        /// </summary>
        public MainMenuLayer(bool gameRunning) : base()
        {
            this.gameRunning = gameRunning;
            isTransparent = gameRunning;
            SetLayerAttributes();

            menuBackground = new MenuBackground();

            ConstructDrawingObjects();

            ConstructSubMenus(gameRunning);
        }
コード例 #5
0
ファイル: EndScreen.cs プロジェクト: justshiv/LightSavers
        /// <summary>
        /// The constructor for the Main Menu.
        /// </summary>
        public EndScreen(String message, bool hasWon) : base()
        {
            currentSubMenuIndex = 0;
            this.message = message;
            SetLayerAttributes();
            this.hasWon = hasWon;

            isTransparent = true;

            menuBackground = new MenuBackground();
            ConstructSubMenus();

            ConstructDrawingObjects();
        }
コード例 #6
0
        /// <summary>
        /// The constructor for the Main Menu.
        /// </summary>
        public AreYouSureLayer(String message, int exit) : base()
        {
            currentSubMenuIndex = 0;
            this.message = message;
            SetLayerAttributes();
            this.exitUrgency = exit;

            isTransparent = true;

            menuBackground = new MenuBackground();
            ConstructSubMenus();

            ConstructDrawingObjects();
        }