Skip to content

Commit

Permalink
Tutorial|Console: Added a console command to start the tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Mar 10, 2014
1 parent 2fcc774 commit f192835
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doomsday/client/data/cphelp.txt
Expand Up @@ -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
Expand Down
9 changes: 9 additions & 0 deletions doomsday/client/src/con_main.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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)
Expand Down
3 changes: 3 additions & 0 deletions doomsday/doc/engine/command/tutorial.ame
@@ -0,0 +1,3 @@
@summary{
Show a tutorial that introduces Doomsday's UI.
}

0 comments on commit f192835

Please sign in to comment.