Reset screen faders in clear()

Fixes a black screen when loading a game while waiting/resting.
new-script-api
scrawl 7 years ago
parent d10985e481
commit f6c227b966

@ -119,6 +119,12 @@ namespace MWGui
queue(time, percent/100.f);
}
void ScreenFader::clear()
{
clearQueue();
notifyAlphaChanged(0.f);
}
void ScreenFader::setFactor(float factor)
{
mFactor = factor;

@ -42,6 +42,8 @@ namespace MWGui
void fadeOut(const float time);
void fadeTo(const int percent, const float time);
void clear();
void setFactor (float factor);
void setRepeat(bool repeat);

@ -1589,8 +1589,6 @@ namespace MWGui
mForceHidden = GW_None;
setWerewolfOverlay(false);
while (!mGuiModes.empty())
popGuiMode();

Loading…
Cancel
Save