mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-24 13:11:33 +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;
|
||||
mMouseLeft = 140;
|
||||
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;
|
||||
int factor = (CleanXfac+1) / 2;
|
||||
|
@ -72,7 +79,6 @@ class MessageBoxMenu : Menu
|
|||
}
|
||||
else
|
||||
{
|
||||
textFont = AlternativeSmallFont;
|
||||
arrowFont = ConFont;
|
||||
destWidth = CleanWidth;
|
||||
destHeight = CleanHeight;
|
||||
|
|
Loading…
Reference in a new issue