2017-11-12 01:38:44 +01:00
|
|
|
/*
|
|
|
|
* This software is licensed under the terms of the MIT-License
|
|
|
|
* See COPYING for further information.
|
|
|
|
* ---
|
2019-01-23 21:10:43 +01:00
|
|
|
* Copyright (c) 2011-2019, Lukas Weber <laochailan@web.de>.
|
|
|
|
* Copyright (c) 2012-2019, Andrei Alexeyev <akari@alienslab.net>.
|
2017-11-12 01:38:44 +01:00
|
|
|
*/
|
|
|
|
|
2017-11-25 20:45:11 +01:00
|
|
|
#include "taisei.h"
|
|
|
|
|
2017-11-12 01:38:44 +01:00
|
|
|
#include "menu.h"
|
|
|
|
#include "options.h"
|
|
|
|
#include "stageselect.h"
|
|
|
|
#include "replayview.h"
|
|
|
|
#include "spellpractice.h"
|
2019-01-24 21:21:08 +01:00
|
|
|
#include "stagepractice.h"
|
|
|
|
#include "difficultyselect.h"
|
|
|
|
#include "global.h"
|
|
|
|
#include "submenus.h"
|
2017-11-12 01:38:44 +01:00
|
|
|
|
|
|
|
void enter_options(MenuData *menu, void *arg) {
|
|
|
|
MenuData m;
|
|
|
|
create_options_menu(&m);
|
|
|
|
menu_loop(&m);
|
|
|
|
}
|
|
|
|
|
|
|
|
void enter_stagemenu(MenuData *menu, void *arg) {
|
|
|
|
MenuData m;
|
|
|
|
create_stage_menu(&m);
|
|
|
|
menu_loop(&m);
|
|
|
|
}
|
|
|
|
|
|
|
|
void enter_replayview(MenuData *menu, void *arg) {
|
|
|
|
MenuData m;
|
|
|
|
create_replayview_menu(&m);
|
|
|
|
menu_loop(&m);
|
|
|
|
}
|
|
|
|
|
|
|
|
void enter_spellpractice(MenuData *menu, void *arg) {
|
|
|
|
MenuData m;
|
|
|
|
create_spell_menu(&m);
|
|
|
|
menu_loop(&m);
|
|
|
|
}
|
2019-01-24 21:21:08 +01:00
|
|
|
|
|
|
|
void enter_stagepractice(MenuData *menu, void *arg) {
|
|
|
|
MenuData m;
|
|
|
|
|
|
|
|
do {
|
|
|
|
create_difficulty_menu(&m);
|
|
|
|
|
|
|
|
if(menu_loop(&m) < 0) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
global.diff = progress.game_settings.difficulty;
|
|
|
|
create_stgpract_menu(&m, global.diff);
|
|
|
|
menu_loop(&m);
|
|
|
|
} while(m.selected < 0 || m.selected == m.ecount - 1);
|
|
|
|
}
|