forked from mirror/openmw-tes3mp
Simplify new game movie player
This commit is contained in:
parent
6bd0bbb8df
commit
220ab86eca
4 changed files with 9 additions and 14 deletions
|
@ -628,6 +628,9 @@ namespace MWGui
|
|||
effectsDx = (viewSize.width - mMinimapBoxBaseRight) - (viewSize.width - mEffectBoxBaseRight);
|
||||
|
||||
mMapVisible = mMinimapBox->getVisible ();
|
||||
if (!mMapVisible)
|
||||
mCellNameBox->setVisible(false);
|
||||
|
||||
mEffectBox->setPosition((viewSize.width - mEffectBoxBaseRight) - mEffectBox->getWidth() + effectsDx, mEffectBox->getTop());
|
||||
}
|
||||
|
||||
|
|
|
@ -298,6 +298,7 @@ namespace MWGui
|
|||
delete mCharGen;
|
||||
mCharGen = new CharacterCreation();
|
||||
mGuiModes.clear();
|
||||
MWBase::Environment::get().getInputManager()->changeInputMode(false);
|
||||
mHud->unsetSelectedWeapon();
|
||||
mHud->unsetSelectedSpell();
|
||||
unsetForceHide(GW_ALL);
|
||||
|
@ -1412,6 +1413,7 @@ namespace MWGui
|
|||
mConsole->resetReference();
|
||||
|
||||
mGuiModes.clear();
|
||||
MWBase::Environment::get().getInputManager()->changeInputMode(false);
|
||||
updateVisible();
|
||||
}
|
||||
|
||||
|
|
|
@ -130,7 +130,7 @@ namespace MWWorld
|
|||
: mPlayer (0), mLocalScripts (mStore),
|
||||
mSky (true), mCells (mStore, mEsm),
|
||||
mActivationDistanceOverride (activationDistanceOverride),
|
||||
mFallback(fallbackMap), mPlayIntro(0), mTeleportEnabled(true), mLevitationEnabled(true),
|
||||
mFallback(fallbackMap), mTeleportEnabled(true), mLevitationEnabled(true),
|
||||
mFacedDistance(FLT_MAX), mGodMode(false), mContentFiles (contentFiles),
|
||||
mGoToJail(false),
|
||||
mStartCell (startCell)
|
||||
|
@ -191,9 +191,6 @@ namespace MWWorld
|
|||
|
||||
if (!bypass)
|
||||
{
|
||||
// FIXME: should be set to 1, but the sound manager won't pause newly started sounds
|
||||
mPlayIntro = 2;
|
||||
|
||||
// set new game mark
|
||||
mGlobalVariables["chargenstate"].setInteger (1);
|
||||
mGlobalVariables["pcrace"].setInteger (3);
|
||||
|
@ -233,6 +230,9 @@ namespace MWWorld
|
|||
}
|
||||
}
|
||||
|
||||
if (!bypass)
|
||||
MWBase::Environment::get().getWindowManager()->playVideo(mFallback.getFallbackString("Movies_New_Game"), true);
|
||||
|
||||
// we don't want old weather to persist on a new game
|
||||
delete mWeatherManager;
|
||||
mWeatherManager = 0;
|
||||
|
@ -271,7 +271,6 @@ namespace MWWorld
|
|||
mGodMode = false;
|
||||
mSky = true;
|
||||
mTeleportEnabled = true;
|
||||
mPlayIntro = 0;
|
||||
mFacedDistance = FLT_MAX;
|
||||
|
||||
mGlobalVariables.fill (mStore);
|
||||
|
@ -1369,13 +1368,6 @@ namespace MWWorld
|
|||
|
||||
void World::update (float duration, bool paused)
|
||||
{
|
||||
if (mPlayIntro)
|
||||
{
|
||||
--mPlayIntro;
|
||||
if (mPlayIntro == 0)
|
||||
MWBase::Environment::get().getWindowManager()->playVideo(mFallback.getFallbackString("Movies_New_Game"), true);
|
||||
}
|
||||
|
||||
if (mGoToJail && !paused)
|
||||
goToJail();
|
||||
|
||||
|
|
|
@ -138,8 +138,6 @@ namespace MWWorld
|
|||
void loadContentFiles(const Files::Collections& fileCollections,
|
||||
const std::vector<std::string>& content, ContentLoader& contentLoader);
|
||||
|
||||
int mPlayIntro;
|
||||
|
||||
bool mTeleportEnabled;
|
||||
bool mLevitationEnabled;
|
||||
bool mGoToJail;
|
||||
|
|
Loading…
Reference in a new issue