]> git.jsancho.org Git - lugaru.git/blobdiff - Source/GameDraw.cpp
The console key is now easy to configure. (the option will only be shown in debug...
[lugaru.git] / Source / GameDraw.cpp
index 522681bc781434e18e23a23e21d4274ebc963956..19b7f1794f385c9d9517f8f84ca86526e2fa8a98 100644 (file)
@@ -2278,10 +2278,18 @@ void Game::DrawMenu() {
                        else sprintf (menustring[8], "Attack: _");
                        startx[8]=10+20;
                        starty[8]=80;
-
-                       sprintf (menustring[9], "Back");
-                       startx[9]=10;
-                       starty[9]=10;
+                       
+                       if(debugmode) {
+                               if(keyselect!=9)sprintf (menustring[9], "Console: %s",Input::keyToChar(consolekey));
+                               else sprintf (menustring[9], "Console: _");
+                               startx[9]=10+10;
+                               starty[9]=40;
+                               nummenuitems++;
+                       }
+                       
+                       sprintf (menustring[nummenuitems-1], "Back");
+                       startx[nummenuitems-1]=10;
+                       starty[nummenuitems-1]=10;
                }
                break;
                case 5: {