- Comence a implementar el selector de plantilles

This commit is contained in:
2024-07-30 13:54:31 +02:00
parent b0dd34b5df
commit 1cd08b1110
6 changed files with 81 additions and 2 deletions

View File

@@ -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) {