Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9980


Ignore:
Timestamp:
Jan 4, 2014, 11:20:26 PM (11 years ago)
Author:
jo
Message:

Adding delay timer to show the main menu after a game ended automatically.

Location:
code/trunk/src/orxonox/gametypes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/gametypes/Gametype.cc

    r9977 r9980  
    155155        this->gtinfo_->end();
    156156        if (this->bAutoEnd_)
    157         {
    158             GSLevel::startMainMenu();
    159             //this->showMenuTimer_.setTimer(2.5f, true, createExecutor(createFunctor(&Gametype::showMenu, this)));
     157        {
     158            this->showMenuTimer_.setTimer(3.0f, true, createExecutor(createFunctor(&Gametype::showMenu, this)));
    160159        }
    161160
  • code/trunk/src/orxonox/gametypes/Gametype.h

    r9977 r9980  
    4040#include "tools/interfaces/Tickable.h"
    4141#include "infos/GametypeInfo.h"
    42 //#include "tools/Timer.h"
     42#include "tools/Timer.h"
    4343
    4444namespace orxonox
     
    199199            ConsoleCommand* dedicatedKillBots_;
    200200            /* HACK HACK HACK */
    201             //Timer showMenuTimer_;
     201            Timer showMenuTimer_;
    202202    };
    203203}
Note: See TracChangeset for help on using the changeset viewer.