From 4a430c0d5b9a86b5e4d3f5fff42f1f832a76c3e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Valor=20Mart=C3=ADnez?= Date: Tue, 29 Nov 2022 18:22:40 +0100 Subject: [PATCH] =?UTF-8?q?Actualizadas=20las=20instrucciones=20con=20el?= =?UTF-8?q?=20m=C3=A9todo=20de=20control=20escogido?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/credits.cpp | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/source/credits.cpp b/source/credits.cpp index 8a4e543..368d71f 100644 --- a/source/credits.cpp +++ b/source/credits.cpp @@ -133,6 +133,20 @@ void Credits::checkEventHandler() // Inicializa los textos void Credits::iniTexts() { + std::string keys = ""; + if (options->keys == ctrl_cursor) + { + keys = "CURSORS"; + } + else if (options->keys == ctrl_opqa) + { + keys = "O,P AND Q"; + } + else + { + keys = "S,D AND W"; + } + texts.clear(); texts.push_back({"", stringToColor(options->palette, "white")}); texts.push_back({"INSTRUCTIONS:", stringToColor(options->palette, "yellow")}); @@ -145,9 +159,9 @@ void Credits::iniTexts() texts.push_back({"KEYS:", stringToColor(options->palette, "yellow")}); texts.push_back({"", stringToColor(options->palette, "white")}); - texts.push_back({"CURSORS TO MOVE AND JUMP", stringToColor(options->palette, "white")}); + texts.push_back({keys + " TO MOVE AND JUMP", stringToColor(options->palette, "white")}); texts.push_back({"M TO TURN ON/OFF THE MUSIC", stringToColor(options->palette, "white")}); - texts.push_back({"P TO PAUSE THE GAME", stringToColor(options->palette, "white")}); + texts.push_back({"H TO HOLD/PAUSE THE GAME", stringToColor(options->palette, "white")}); texts.push_back({"F1-F4 TO CHANGE WINDOWS SIZE", stringToColor(options->palette, "white")}); texts.push_back({"F TO SWITCH TO FULLSCREEN", stringToColor(options->palette, "white")}); texts.push_back({"B TO SWITCH THE BORDER SCREEN", stringToColor(options->palette, "white")}); @@ -318,6 +332,6 @@ section_t Credits::run() // Cambia la paleta void Credits::switchPalette() { - options->palette = options->palette == p_zxspectrum ? p_zxarne : p_zxspectrum; - fillTexture(); + options->palette = options->palette == p_zxspectrum ? p_zxarne : p_zxspectrum; + fillTexture(); } \ No newline at end of file