def get_main_menu(manager): font = media.ImageManager.TTF_Title color = media.COL_Blue title = media.ImageManager.text("PyDoodler", font, color, 64) menu = MenuScreen(manager.screen, title) font = media.ImageManager.TTF_MenuItem color = media.COL_Red image = media.ImageManager.text("Doodle!", font, color) menu.add_menu_item(manager.doo_action, image) image = media.ImageManager.text("Options", font, color) menu.add_menu_item(manager.opt_action, image) image = media.ImageManager.text("About", font, color) menu.add_menu_item(manager.abo_action, image) image = media.ImageManager.text("Quit", font, color) menu.add_menu_item(sys.exit, image) return menu
def get_opt_res_menu(manager): font = media.ImageManager.TTF_Title color = media.COL_Blue title = media.ImageManager.text("Resolution", font, color, 64) menu = MenuScreen(manager.screen, title) font = media.ImageManager.TTF_MenuItem color = media.COL_Red image = media.ImageManager.text("Low", font, color) menu.add_menu_item(manager.opt_res_low_action, image) image = media.ImageManager.text("Medium", font, color) menu.add_menu_item(manager.opt_res_med_action, image) image = media.ImageManager.text("High", font, color) menu.add_menu_item(manager.opt_res_hig_action, image) image = media.ImageManager.text("Back", font, color) menu.add_menu_item(manager.bac_action, image) return menu
def get_draw_menu(manager): menu = MenuPopup(manager.screen, manager.gui_stack.top()) font = media.ImageManager.TTF_MenuItem color = media.COL_White image = media.ImageManager.text("Continue doodling", font, color) menu.add_menu_item(manager.bac_action, image) image = media.ImageManager.text("Main menu", font, color) menu.add_menu_item(manager.main_menu, image) image = media.ImageManager.text("Quit", font, media.COL_DarkGreen) menu.add_menu_item(sys.exit, image) return menu
def get_sou_menu(manager): font = media.ImageManager.TTF_Title color = media.COL_Blue title = media.ImageManager.text("Sound", font, color, 64) menu = MenuScreen(manager.screen, title) font = media.ImageManager.TTF_MenuItem color = media.COL_Red image = media.ImageManager.text("On", font, color) menu.add_menu_item(manager.opt_sou_on_action, image) image = media.ImageManager.text("Off", font, color) menu.add_menu_item(manager.opt_sou_off_action, image) image = media.ImageManager.text("Back", font, color) menu.add_menu_item(manager.bac_action, image) return menu