- treballant en el menu de redefinició de tecles
This commit is contained in:
@@ -12,13 +12,15 @@
|
||||
#include "m_menu.h"
|
||||
#include "m_logo.h"
|
||||
#include "m_ingame.h"
|
||||
#include "m_menu_tecles.h"
|
||||
#include "m_menu_audio.h"
|
||||
|
||||
#define M_LOGO 0
|
||||
#define M_MENU 1
|
||||
#define M_GAME 2
|
||||
#define M_INGAME 3
|
||||
#define M_MENU_AUDIO 4
|
||||
#define M_MENU_TECLES 4
|
||||
#define M_MENU_AUDIO 5
|
||||
|
||||
int current_module = M_LOGO;
|
||||
int zoom = 3;
|
||||
@@ -95,6 +97,7 @@ bool game::loop()
|
||||
if (option != OPTION_NONE) {
|
||||
if (option == OPTION_EIXIR) return false;
|
||||
if (option == OPTION_JUGAR) { modules::game::init(); current_module = M_GAME; }
|
||||
if (option == OPTION_TECLES) { modules::menu_tecles::init(); current_module = M_MENU_TECLES; }
|
||||
if (option == OPTION_AUDIO) { modules::menu_audio::init(); current_module = M_MENU_AUDIO; }
|
||||
}
|
||||
break;
|
||||
@@ -108,6 +111,11 @@ bool game::loop()
|
||||
if (option == INGAME_CONTINUAR) { current_module = M_GAME; }
|
||||
}
|
||||
break;
|
||||
case M_MENU_TECLES:
|
||||
if (modules::menu_tecles::loop() == MENU_TECLES_TORNAR) {
|
||||
modules::menu::init(); current_module = M_MENU;
|
||||
}
|
||||
break;
|
||||
case M_MENU_AUDIO:
|
||||
if (modules::menu_audio::loop() == MENU_AUDIO_TORNAR) {
|
||||
modules::menu::init(); current_module = M_MENU;
|
||||
|
||||
Reference in New Issue
Block a user