actorid
Glorf 12 years ago
parent 9fee99d56c
commit 0539ca6a9c

@ -238,6 +238,7 @@ namespace MWBase
virtual void enableRest() = 0;
virtual bool getRestEnabled() = 0;
virtual bool getJournalAllowed() = 0;
virtual bool getPlayerSleeping() = 0;
virtual void wakeUpPlayer() = 0;

@ -180,6 +180,10 @@ namespace
void open()
{
if (!MWBase::Environment::get().getWindowManager ()->getJournalAllowed ())
{
MWBase::Environment::get().getWindowManager()->popGuiMode ();
}
mModel->load ();
setBookMode ();

@ -226,6 +226,8 @@ namespace MWGui
virtual void enableRest() { mRestAllowed = true; }
virtual bool getRestEnabled();
virtual bool getJournalAllowed() { return (mAllowed & GW_Magic); }
virtual bool getPlayerSleeping();
virtual void wakeUpPlayer();

Loading…
Cancel
Save