From f192835f55fed63f25b7eececf761c263d7ff94a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaakko=20Ker=C3=A4nen?= Date: Mon, 10 Mar 2014 20:55:32 +0200 Subject: [PATCH] Tutorial|Console: Added a console command to start the tutorial --- doomsday/client/data/cphelp.txt | 3 +++ doomsday/client/src/con_main.cpp | 9 +++++++++ doomsday/doc/engine/command/tutorial.ame | 3 +++ 3 files changed, 15 insertions(+) create mode 100644 doomsday/doc/engine/command/tutorial.ame diff --git a/doomsday/client/data/cphelp.txt b/doomsday/client/data/cphelp.txt index d644514888..d8dfd34c24 100644 --- a/doomsday/client/data/cphelp.txt +++ b/doomsday/client/data/cphelp.txt @@ -373,6 +373,9 @@ desc = Toggle between fullscreen and windowed modes. [togglemaximized] desc = Toggle between maximized and normal window modes. +[tutorial] +desc = Show a tutorial that introduces Doomsday's UI. + [uicolor] desc = Change Doomsday user interface colors. inf = Params: uicolor (object) (red) (green) (blue)\nFor example, 'uicolor text 1 1 1'.\nPossible objects are:\ntext, shadow, bglight, bgmed, bgdark,\nborhigh, bormed, borlow, help diff --git a/doomsday/client/src/con_main.cpp b/doomsday/client/src/con_main.cpp index 6535891224..ec86d9c207 100644 --- a/doomsday/client/src/con_main.cpp +++ b/doomsday/client/src/con_main.cpp @@ -105,6 +105,7 @@ D_CMD(Echo); #ifdef __CLIENT__ D_CMD(OpenClose); D_CMD(TaskBar); +D_CMD(Tutorial); #endif D_CMD(Help); D_CMD(If); @@ -147,6 +148,7 @@ void Con_Register(void) C_CMD_FLAGS("conopen", "", OpenClose, CMDF_NO_DEDICATED); C_CMD_FLAGS("contoggle", "", OpenClose, CMDF_NO_DEDICATED); C_CMD("taskbar", "", TaskBar); + C_CMD("tutorial", "", Tutorial); #endif C_CMD("dec", NULL, IncDec); C_CMD("echo", "s*", Echo); @@ -1644,6 +1646,13 @@ D_CMD(TaskBar) return true; } +D_CMD(Tutorial) +{ + DENG2_UNUSED3(src, argc, argv); + ClientWindow::main().taskBar().showTutorial(); + return true; +} + #endif // __CLIENT__ D_CMD(DebugCrash) diff --git a/doomsday/doc/engine/command/tutorial.ame b/doomsday/doc/engine/command/tutorial.ame new file mode 100644 index 0000000000..25f90a41bb --- /dev/null +++ b/doomsday/doc/engine/command/tutorial.ame @@ -0,0 +1,3 @@ +@summary{ + Show a tutorial that introduces Doomsday's UI. +}