- fixed layout issues with Strife's dialogues.
They were using some settings from the option menu which they never should have used to begin with.
This commit is contained in:
parent
be7d6241c2
commit
a1acc4adc4
4 changed files with 15 additions and 9 deletions
|
|
@ -56,6 +56,7 @@
|
|||
#include "scripting/types.h"
|
||||
|
||||
int DMenu::InMenu;
|
||||
static ScaleOverrider *CurrentScaleOverrider;
|
||||
//
|
||||
// Todo: Move these elsewhere
|
||||
//
|
||||
|
|
@ -348,7 +349,7 @@ bool DMenu::TranslateKeyboardEvents()
|
|||
//
|
||||
//=============================================================================
|
||||
|
||||
void M_StartControlPanel (bool makeSound)
|
||||
void M_StartControlPanel (bool makeSound, bool scaleoverride)
|
||||
{
|
||||
// intro might call this repeatedly
|
||||
if (CurrentMenu != nullptr)
|
||||
|
|
@ -372,6 +373,7 @@ void M_StartControlPanel (bool makeSound)
|
|||
}
|
||||
BackbuttonTime = 0;
|
||||
BackbuttonAlpha = 0;
|
||||
if (scaleoverride && !CurrentScaleOverrider) CurrentScaleOverrider = new ScaleOverrider;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
@ -912,6 +914,8 @@ void M_ClearMenus()
|
|||
CurrentMenu = parent;
|
||||
}
|
||||
menuactive = MENU_Off;
|
||||
if (CurrentScaleOverrider) delete CurrentScaleOverrider;
|
||||
CurrentScaleOverrider = nullptr;
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue