You had it right the first time, almost. :)
It's better to put hacks in the file they're affecting, rather than global handlers like ScreenManager. The problem you were having is that you were sending the "start fade out" message; when skipping a screen, you want to skip to "load next screen" and not fade out. It's OK to load the screen itself when you're skipping it, since that doesn't take time as long as you don't load the components. Note that this is how eg. ScreenInstructions and ScreenWarning work.
This commit is contained in:
@@ -41,6 +41,13 @@
|
||||
ScreenUnlock::ScreenUnlock() : ScreenAttract("ScreenUnlock")
|
||||
{
|
||||
LOG->Trace("ScreenUnlock::ScreenUnlock()");
|
||||
|
||||
if (!PREFSMAN->m_bUseUnlockSystem)
|
||||
{
|
||||
this->HandleScreenMessage( SM_GoToNextScreen );
|
||||
return;
|
||||
}
|
||||
|
||||
PointsUntilNextUnlock.LoadFromFont( THEME->GetPathToF("Common normal") );
|
||||
PointsUntilNextUnlock.SetHorizAlign( Actor::align_left );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user