Fix games menu back item, titles
This commit is contained in:
parent
941a09b6ac
commit
832321f55d
|
@ -29,7 +29,13 @@
|
||||||
|
|
||||||
void menu_game() {
|
void menu_game() {
|
||||||
START_MENU();
|
START_MENU();
|
||||||
BACK_ITEM(MSG_MAIN);
|
BACK_ITEM(
|
||||||
|
#if ENABLED(LCD_INFO_MENU)
|
||||||
|
MSG_INFO_MENU
|
||||||
|
#else
|
||||||
|
MSG_MAIN
|
||||||
|
#endif
|
||||||
|
);
|
||||||
#if ENABLED(MARLIN_BRICKOUT)
|
#if ENABLED(MARLIN_BRICKOUT)
|
||||||
SUBMENU(MSG_BRICKOUT, brickout.enter_game);
|
SUBMENU(MSG_BRICKOUT, brickout.enter_game);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -302,19 +302,22 @@ void menu_info() {
|
||||||
SKIP_ITEM();
|
SKIP_ITEM();
|
||||||
SKIP_ITEM();
|
SKIP_ITEM();
|
||||||
#endif
|
#endif
|
||||||
SUBMENU(MSG_GAMES, (
|
// Game sub-menu or the individual game
|
||||||
|
{
|
||||||
|
SUBMENU(
|
||||||
#if HAS_GAME_MENU
|
#if HAS_GAME_MENU
|
||||||
menu_game
|
MSG_GAMES, menu_game
|
||||||
#elif ENABLED(MARLIN_BRICKOUT)
|
#elif ENABLED(MARLIN_BRICKOUT)
|
||||||
brickout.enter_game
|
MSG_BRICKOUT, brickout.enter_game
|
||||||
#elif ENABLED(MARLIN_INVADERS)
|
#elif ENABLED(MARLIN_INVADERS)
|
||||||
invaders.enter_game
|
MSG_INVADERS, invaders.enter_game
|
||||||
#elif ENABLED(MARLIN_SNAKE)
|
#elif ENABLED(MARLIN_SNAKE)
|
||||||
snake.enter_game
|
MSG_SNAKE, snake.enter_game
|
||||||
#elif ENABLED(MARLIN_MAZE)
|
#elif ENABLED(MARLIN_MAZE)
|
||||||
maze.enter_game
|
MSG_MAZE, maze.enter_game
|
||||||
#endif
|
#endif
|
||||||
));
|
);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
END_MENU();
|
END_MENU();
|
||||||
|
|
|
@ -271,20 +271,24 @@ void menu_main() {
|
||||||
#if ENABLED(GAMES_EASTER_EGG)
|
#if ENABLED(GAMES_EASTER_EGG)
|
||||||
SKIP_ITEM();
|
SKIP_ITEM();
|
||||||
SKIP_ITEM();
|
SKIP_ITEM();
|
||||||
|
SKIP_ITEM();
|
||||||
#endif
|
#endif
|
||||||
SUBMENU(MSG_GAMES, (
|
// Game sub-menu or the individual game
|
||||||
|
{
|
||||||
|
SUBMENU(
|
||||||
#if HAS_GAME_MENU
|
#if HAS_GAME_MENU
|
||||||
menu_game
|
MSG_GAMES, menu_game
|
||||||
#elif ENABLED(MARLIN_BRICKOUT)
|
#elif ENABLED(MARLIN_BRICKOUT)
|
||||||
brickout.enter_game
|
MSG_BRICKOUT, brickout.enter_game
|
||||||
#elif ENABLED(MARLIN_INVADERS)
|
#elif ENABLED(MARLIN_INVADERS)
|
||||||
invaders.enter_game
|
MSG_INVADERS, invaders.enter_game
|
||||||
#elif ENABLED(MARLIN_SNAKE)
|
#elif ENABLED(MARLIN_SNAKE)
|
||||||
snake.enter_game
|
MSG_SNAKE, snake.enter_game
|
||||||
#elif ENABLED(MARLIN_MAZE)
|
#elif ENABLED(MARLIN_MAZE)
|
||||||
maze.enter_game
|
MSG_MAZE, maze.enter_game
|
||||||
#endif
|
#endif
|
||||||
));
|
);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
END_MENU();
|
END_MENU();
|
||||||
|
|
Loading…
Reference in a new issue