My Marlin configs for Fabrikator Mini and CTC i3 Pro B
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

menu_game.cpp 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * Marlin 3D Printer Firmware
  3. * Copyright (c) 2020 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
  4. *
  5. * Based on Sprinter and grbl.
  6. * Copyright (c) 2011 Camiel Gubbels / Erik van der Zalm
  7. *
  8. * This program is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation, either version 3 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program. If not, see <https://www.gnu.org/licenses/>.
  20. *
  21. */
  22. #include "../../inc/MarlinConfigPre.h"
  23. #if HAS_GAME_MENU
  24. #include "menu_item.h"
  25. #include "game/game.h"
  26. void menu_game() {
  27. START_MENU();
  28. BACK_ITEM(TERN(LCD_INFO_MENU, MSG_INFO_MENU, MSG_MAIN));
  29. #if ENABLED(MARLIN_BRICKOUT)
  30. SUBMENU(MSG_BRICKOUT, brickout.enter_game);
  31. #endif
  32. #if ENABLED(MARLIN_INVADERS)
  33. SUBMENU(MSG_INVADERS, invaders.enter_game);
  34. #endif
  35. #if ENABLED(MARLIN_SNAKE)
  36. SUBMENU(MSG_SNAKE, snake.enter_game);
  37. #endif
  38. #if ENABLED(MARLIN_MAZE)
  39. SUBMENU(MSG_MAZE, maze.enter_game);
  40. #endif
  41. END_MENU();
  42. }
  43. #endif // HAS_GAME_MENU