mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-16 18:19:55 +00:00
Add missing WaitDialog::clear() (Fixes #4196)
This commit is contained in:
parent
41dc82abad
commit
41ecbdbe6c
2 changed files with 8 additions and 0 deletions
|
@ -96,6 +96,12 @@ namespace MWGui
|
||||||
return (!mTimeAdvancer.isRunning()); //Only exit if not currently waiting
|
return (!mTimeAdvancer.isRunning()); //Only exit if not currently waiting
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WaitDialog::clear()
|
||||||
|
{
|
||||||
|
mSleeping = false;
|
||||||
|
mTimeAdvancer.stop();
|
||||||
|
}
|
||||||
|
|
||||||
void WaitDialog::onOpen()
|
void WaitDialog::onOpen()
|
||||||
{
|
{
|
||||||
if (mTimeAdvancer.isRunning())
|
if (mTimeAdvancer.isRunning())
|
||||||
|
|
|
@ -33,6 +33,8 @@ namespace MWGui
|
||||||
|
|
||||||
virtual bool exit();
|
virtual bool exit();
|
||||||
|
|
||||||
|
virtual void clear();
|
||||||
|
|
||||||
void onFrame(float dt);
|
void onFrame(float dt);
|
||||||
|
|
||||||
bool getSleeping() { return mTimeAdvancer.isRunning() && mSleeping; }
|
bool getSleeping() { return mTimeAdvancer.isRunning() && mSleeping; }
|
||||||
|
|
Loading…
Reference in a new issue