Ejemplo n.º 1
0
        public MainMenu()
        {
            MainWindow.BackgroundImage = Content.Graphics.Instance.Images.background.bg_titleMenu;

            lbl_title = new Label("Main menu");
            lbl_title.center(350);
            lbl_title.LabelFun = ColorTheme.LabelColorTheme.LabelFunction.TITLE;

            lnk_newGame = new Link("New Game");
            lnk_newGame.center(405);
            lnk_newGame.selected = newGame;

            lnk_loadGame = new Link("Load Game");
            lnk_loadGame.center(440);
            lnk_loadGame.selected = loadGame;

            lnk_option = new Link("Option");
            lnk_option.center(475);
            lnk_option.selected = options;

            lnk_exit = new Link("Exit");
            lnk_exit.center(510);
            lnk_exit.selected = exit;

            MainWindow.add(lbl_title);
            MainWindow.add(lnk_newGame);
            MainWindow.add(lnk_loadGame);
            MainWindow.add(lnk_option);
            MainWindow.add(lnk_exit);
        }
Ejemplo n.º 2
0
        public GameOver()
        {
            MainWindow.BackgroundImage = Content.Graphics.Instance.Images.background.bg_menuless;

            Label lbl_gameOver = new Label("Game Over");
            lbl_gameOver.LabelFun = ColorTheme.LabelColorTheme.LabelFunction.CONTROL;
            lbl_gameOver.center(100);
            MainWindow.add(lbl_gameOver);

            Link lnk_c = new Link("Contrinue to main screen");
            lnk_c.center(300);
            lnk_c.selected = toMainmenu;
            MainWindow.add(lnk_c);

            Link lnk_q = new Link("Quit Game");
            lnk_q.center(330);
            lnk_q.selected = exitGame;
            MainWindow.add(lnk_q);
        }