Skip to content

Commit

Permalink
Tutorial|Client: Automatically show tutorial if not shown before
Browse files Browse the repository at this point in the history
Config.tutorial.shown determines whether to show the tutorial at
startup.
  • Loading branch information
skyjake committed Mar 10, 2014
1 parent 59af3a6 commit 620b91a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doomsday/client/src/ui/clientwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,14 @@ DENG2_PIMPL(ClientWindow)
// Allow the background image to show.
background->setImageColor(Vector4f(1, 1, 1, 1));
taskBar->show();

// Show the tutorial if it hasn't been automatically shown yet.
if(!App::config().getb("tutorial.shown", false))
{
App::config().set("tutorial.shown", true);

taskBar->showTutorial();
}
}

void currentGameChanged(game::Game const &newGame)
Expand Down

0 comments on commit 620b91a

Please sign in to comment.