mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-02-17 17:41:23 +00:00
- added smarter font replacement logic to the confirmation screen.
This commit is contained in:
parent
fb084a3150
commit
e0d57e5464
1 changed files with 8 additions and 2 deletions
|
@ -61,8 +61,15 @@ class MessageBoxMenu : Menu
|
||||||
messageSelection = 0;
|
messageSelection = 0;
|
||||||
mMouseLeft = 140;
|
mMouseLeft = 140;
|
||||||
mMouseY = 0x80000000;
|
mMouseY = 0x80000000;
|
||||||
|
textFont = null;
|
||||||
|
|
||||||
|
if (!generic_ui)
|
||||||
|
{
|
||||||
|
if (SmallFont.CanPrint(message) && SmallFont.CanPrint("$TXT_YES") && SmallFont.CanPrint("$TXT_NO")) textFont = SmallFont;
|
||||||
|
else if (OriginalSmallFont.CanPrint(message) && OriginalSmallFont.CanPrint("$TXT_YES") && OriginalSmallFont.CanPrint("$TXT_NO")) textFont = OriginalSmallFont;
|
||||||
|
}
|
||||||
|
|
||||||
if (generic_ui)
|
if (!textFont)
|
||||||
{
|
{
|
||||||
arrowFont = textFont = NewSmallFont;
|
arrowFont = textFont = NewSmallFont;
|
||||||
int factor = (CleanXfac+1) / 2;
|
int factor = (CleanXfac+1) / 2;
|
||||||
|
@ -72,7 +79,6 @@ class MessageBoxMenu : Menu
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
textFont = AlternativeSmallFont;
|
|
||||||
arrowFont = ConFont;
|
arrowFont = ConFont;
|
||||||
destWidth = CleanWidth;
|
destWidth = CleanWidth;
|
||||||
destHeight = CleanHeight;
|
destHeight = CleanHeight;
|
||||||
|
|
Loading…
Reference in a new issue