|
|
@ -120,8 +120,9 @@ namespace MWGui
|
|
|
|
, mCompanionWindow(NULL)
|
|
|
|
, mCompanionWindow(NULL)
|
|
|
|
, mVideoBackground(NULL)
|
|
|
|
, mVideoBackground(NULL)
|
|
|
|
, mVideoWidget(NULL)
|
|
|
|
, mVideoWidget(NULL)
|
|
|
|
, mHitFader(NULL)
|
|
|
|
|
|
|
|
, mWerewolfFader(NULL)
|
|
|
|
, mWerewolfFader(NULL)
|
|
|
|
|
|
|
|
, mBlindnessFader(NULL)
|
|
|
|
|
|
|
|
, mHitFader(NULL)
|
|
|
|
, mScreenFader(NULL)
|
|
|
|
, mScreenFader(NULL)
|
|
|
|
, mDebugWindow(NULL)
|
|
|
|
, mDebugWindow(NULL)
|
|
|
|
, mTranslationDataStorage (translationDataStorage)
|
|
|
|
, mTranslationDataStorage (translationDataStorage)
|
|
|
@ -273,6 +274,7 @@ namespace MWGui
|
|
|
|
trackWindow(mCompanionWindow, "companion");
|
|
|
|
trackWindow(mCompanionWindow, "companion");
|
|
|
|
|
|
|
|
|
|
|
|
mWerewolfFader = new ScreenFader("textures\\werewolfoverlay.dds");
|
|
|
|
mWerewolfFader = new ScreenFader("textures\\werewolfoverlay.dds");
|
|
|
|
|
|
|
|
mBlindnessFader = new ScreenFader("black.png");
|
|
|
|
std::string hitFaderTexture = "textures\\bm_player_hit_01.dds";
|
|
|
|
std::string hitFaderTexture = "textures\\bm_player_hit_01.dds";
|
|
|
|
// fall back to player_hit_01.dds if bm_player_hit_01.dds is not available
|
|
|
|
// fall back to player_hit_01.dds if bm_player_hit_01.dds is not available
|
|
|
|
// TODO: check if non-BM versions actually use player_hit_01.dds
|
|
|
|
// TODO: check if non-BM versions actually use player_hit_01.dds
|
|
|
@ -877,8 +879,9 @@ namespace MWGui
|
|
|
|
mConsole->checkReferenceAvailable();
|
|
|
|
mConsole->checkReferenceAvailable();
|
|
|
|
mCompanionWindow->onFrame();
|
|
|
|
mCompanionWindow->onFrame();
|
|
|
|
|
|
|
|
|
|
|
|
mHitFader->update(frameDuration);
|
|
|
|
|
|
|
|
mWerewolfFader->update(frameDuration);
|
|
|
|
mWerewolfFader->update(frameDuration);
|
|
|
|
|
|
|
|
mBlindnessFader->update(frameDuration);
|
|
|
|
|
|
|
|
mHitFader->update(frameDuration);
|
|
|
|
mScreenFader->update(frameDuration);
|
|
|
|
mScreenFader->update(frameDuration);
|
|
|
|
|
|
|
|
|
|
|
|
mDebugWindow->onFrame(frameDuration);
|
|
|
|
mDebugWindow->onFrame(frameDuration);
|
|
|
@ -1741,13 +1744,13 @@ namespace MWGui
|
|
|
|
void WindowManager::fadeScreenIn(const float time)
|
|
|
|
void WindowManager::fadeScreenIn(const float time)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mScreenFader->clearQueue();
|
|
|
|
mScreenFader->clearQueue();
|
|
|
|
mScreenFader->fadeIn(time);
|
|
|
|
mScreenFader->fadeOut(time);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WindowManager::fadeScreenOut(const float time)
|
|
|
|
void WindowManager::fadeScreenOut(const float time)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mScreenFader->clearQueue();
|
|
|
|
mScreenFader->clearQueue();
|
|
|
|
mScreenFader->fadeOut(time);
|
|
|
|
mScreenFader->fadeIn(time);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WindowManager::fadeScreenTo(const int percent, const float time)
|
|
|
|
void WindowManager::fadeScreenTo(const int percent, const float time)
|
|
|
@ -1756,9 +1759,9 @@ namespace MWGui
|
|
|
|
mScreenFader->fadeTo(percent, time);
|
|
|
|
mScreenFader->fadeTo(percent, time);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WindowManager::setScreenFactor(float factor)
|
|
|
|
void WindowManager::setBlindness(const int percent)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
mScreenFader->setFactor(factor);
|
|
|
|
mBlindnessFader->notifyAlphaChanged(percent / 100.f);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
void WindowManager::activateHitOverlay(bool interrupt)
|
|
|
|
void WindowManager::activateHitOverlay(bool interrupt)
|
|
|
|