- Comence a implementar el selector de plantilles
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "m_menu_tecles.h"
|
||||
#include "m_menu_audio.h"
|
||||
#include "m_editor_map.h"
|
||||
#include "m_editor_templates.h"
|
||||
|
||||
#define M_LOGO 0
|
||||
#define M_MENU 1
|
||||
@@ -139,6 +140,8 @@ bool game::loop()
|
||||
}
|
||||
} else if (option==GAME_EDITOR_MAP) {
|
||||
modules::editor_map::init(); current_module = M_EDITOR_MAP;
|
||||
} else if (option==GAME_EDITOR_TEMPLATES) {
|
||||
modules::editor_templates::init(); current_module = M_EDITOR_TEMPLATES;
|
||||
}
|
||||
}
|
||||
break;
|
||||
@@ -147,6 +150,11 @@ bool game::loop()
|
||||
current_module = M_GAME;
|
||||
}
|
||||
break;
|
||||
case M_EDITOR_TEMPLATES:
|
||||
if (!modules::editor_templates::loop()) {
|
||||
current_module = M_GAME;
|
||||
}
|
||||
break;
|
||||
case M_INGAME:
|
||||
option = modules::ingame::loop();
|
||||
if (option != INGAME_NONE) {
|
||||
|
||||
Reference in New Issue
Block a user