Stop time while the challenge dialog is shown
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
c551aa5c59
commit
bae9f0e15e
@ -20,6 +20,7 @@
|
||||
#include "guiengine/engine.hpp"
|
||||
#include "input/device_manager.hpp"
|
||||
#include "input/input_manager.hpp"
|
||||
#include "modes/world.hpp"
|
||||
#include "network/network_manager.hpp"
|
||||
#include "race/race_manager.hpp"
|
||||
#include "states_screens/dialogs/select_challenge.hpp"
|
||||
@ -32,10 +33,12 @@ SelectChallengeDialog::SelectChallengeDialog(const float percentWidth,
|
||||
{
|
||||
loadFromFile("select_challenge.stkgui");
|
||||
m_challenge_id = challenge_id;
|
||||
World::getWorld()->schedulePause(WorldStatus::IN_GAME_MENU_PHASE);
|
||||
}
|
||||
|
||||
SelectChallengeDialog::~SelectChallengeDialog()
|
||||
{
|
||||
World::getWorld()->scheduleUnpause();
|
||||
}
|
||||
|
||||
GUIEngine::EventPropagation SelectChallengeDialog::processEvent(const std::string& eventSource)
|
||||
|
Loading…
Reference in New Issue
Block a user