fix: en console faltava SCENE DEMO
This commit is contained in:
@@ -201,7 +201,7 @@ categories:
|
|||||||
DEBUG: [MODE, START]
|
DEBUG: [MODE, START]
|
||||||
DEBUG MODE: [ON, OFF]
|
DEBUG MODE: [ON, OFF]
|
||||||
DEBUG START: [HERE, ROOM, POS, SCENE]
|
DEBUG START: [HERE, ROOM, POS, SCENE]
|
||||||
DEBUG START SCENE: [LOGO, LOADING, TITLE, CREDITS, GAME, ENDING, ENDING2]
|
DEBUG START SCENE: [LOGO, LOADING, TITLE, CREDITS, GAME, DEMO, ENDING, ENDING2]
|
||||||
|
|
||||||
- keyword: ITEMS
|
- keyword: ITEMS
|
||||||
handler: cmd_items
|
handler: cmd_items
|
||||||
@@ -220,9 +220,9 @@ categories:
|
|||||||
- keyword: SCENE
|
- keyword: SCENE
|
||||||
handler: cmd_scene
|
handler: cmd_scene
|
||||||
description: Change scene
|
description: Change scene
|
||||||
usage: "SCENE [LOGO|LOADING|TITLE|CREDITS|GAME|ENDING|ENDING2|RESTART]"
|
usage: "SCENE [LOGO|LOADING|TITLE|CREDITS|GAME|DEMO|ENDING|ENDING2|RESTART]"
|
||||||
completions:
|
completions:
|
||||||
SCENE: [LOGO, LOADING, TITLE, CREDITS, GAME, ENDING, ENDING2, RESTART]
|
SCENE: [LOGO, LOADING, TITLE, CREDITS, GAME, DEMO, ENDING, ENDING2, RESTART]
|
||||||
|
|
||||||
- keyword: EDIT
|
- keyword: EDIT
|
||||||
handler: cmd_edit
|
handler: cmd_edit
|
||||||
|
|||||||
@@ -491,6 +491,9 @@ static auto cmdDebug(const std::vector<std::string>& args) -> std::string { //
|
|||||||
if (args[2] == "GAME") {
|
if (args[2] == "GAME") {
|
||||||
target = SceneManager::Scene::GAME;
|
target = SceneManager::Scene::GAME;
|
||||||
name = "game";
|
name = "game";
|
||||||
|
} else if (args[2] == "DEMO") {
|
||||||
|
target = SceneManager::Scene::DEMO;
|
||||||
|
name = "demo";
|
||||||
} else if (args[2] == "LOGO") {
|
} else if (args[2] == "LOGO") {
|
||||||
target = SceneManager::Scene::LOGO;
|
target = SceneManager::Scene::LOGO;
|
||||||
name = "logo";
|
name = "logo";
|
||||||
@@ -651,10 +654,10 @@ static auto cmdItems(const std::vector<std::string>& args) -> std::string {
|
|||||||
return "Items: " + std::to_string(count);
|
return "Items: " + std::to_string(count);
|
||||||
}
|
}
|
||||||
|
|
||||||
// SCENE [LOGO|LOADING|TITLE|CREDITS|GAME|ENDING|ENDING2|RESTART]
|
// SCENE [LOGO|LOADING|TITLE|CREDITS|GAME|DEMO|ENDING|ENDING2|RESTART]
|
||||||
static auto cmdScene(const std::vector<std::string>& args) -> std::string {
|
static auto cmdScene(const std::vector<std::string>& args) -> std::string {
|
||||||
if (Options::kiosk.enabled) { return "Not allowed in kiosk mode"; }
|
if (Options::kiosk.enabled) { return "Not allowed in kiosk mode"; }
|
||||||
if (args.empty()) { return "usage: scene [logo|loading|title|credits|game|ending|ending2|restart]"; }
|
if (args.empty()) { return "usage: scene [logo|loading|title|credits|game|demo|ending|ending2|restart]"; }
|
||||||
|
|
||||||
if (args[0] == "RESTART") {
|
if (args[0] == "RESTART") {
|
||||||
SceneManager::scene_before_restart = SceneManager::current;
|
SceneManager::scene_before_restart = SceneManager::current;
|
||||||
@@ -677,6 +680,7 @@ static auto cmdScene(const std::vector<std::string>& args) -> std::string {
|
|||||||
if (args[0] == "TITLE") { return GO_TO(SceneManager::Scene::TITLE, "Title"); }
|
if (args[0] == "TITLE") { return GO_TO(SceneManager::Scene::TITLE, "Title"); }
|
||||||
if (args[0] == "CREDITS") { return GO_TO(SceneManager::Scene::CREDITS, "Credits"); }
|
if (args[0] == "CREDITS") { return GO_TO(SceneManager::Scene::CREDITS, "Credits"); }
|
||||||
if (args[0] == "GAME") { return GO_TO(SceneManager::Scene::GAME, "Game"); }
|
if (args[0] == "GAME") { return GO_TO(SceneManager::Scene::GAME, "Game"); }
|
||||||
|
if (args[0] == "DEMO") { return GO_TO(SceneManager::Scene::DEMO, "Demo"); }
|
||||||
if (args[0] == "ENDING") { return GO_TO(SceneManager::Scene::ENDING, "Ending"); }
|
if (args[0] == "ENDING") { return GO_TO(SceneManager::Scene::ENDING, "Ending"); }
|
||||||
if (args[0] == "ENDING2") { return GO_TO(SceneManager::Scene::ENDING2, "Ending 2"); }
|
if (args[0] == "ENDING2") { return GO_TO(SceneManager::Scene::ENDING2, "Ending 2"); }
|
||||||
return "Unknown scene: " + args[0];
|
return "Unknown scene: " + args[0];
|
||||||
|
|||||||
Reference in New Issue
Block a user