mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-10 06:42:12 +00:00
Merged https://github.com/ZDoom/gzdoom/pull/1902 (Custom Message Box)
This commit is contained in:
parent
b5a95b47c1
commit
a87b3a0e55
2 changed files with 4 additions and 4 deletions
|
@ -78,7 +78,7 @@ class CustomMessageBoxMenuBase : Menu abstract
|
|||
}
|
||||
else
|
||||
{
|
||||
arrowFont = ConFont;
|
||||
arrowFont = ((textFont && textFont.GetGlyphHeight(0xd) > 0) ? textFont : ConFont);
|
||||
destWidth = CleanWidth;
|
||||
destHeight = CleanHeight;
|
||||
selector = "\xd";
|
||||
|
@ -133,7 +133,7 @@ class CustomMessageBoxMenuBase : Menu abstract
|
|||
if ((MenuTime() % 8) < 6)
|
||||
{
|
||||
screen.DrawText(arrowFont, OptionMenuSettings.mFontColorSelection,
|
||||
(destWidth/2 - 11) + OptionXOffset(messageSelection), y + fontheight * messageSelection, selector, DTA_VirtualWidth, destWidth, DTA_VirtualHeight, destHeight, DTA_KeepRatio, true);
|
||||
(destWidth/2 - 3 - arrowFont.StringWidth(selector)) + OptionXOffset(messageSelection), y + fontheight * messageSelection, selector, DTA_VirtualWidth, destWidth, DTA_VirtualHeight, destHeight, DTA_KeepRatio, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -79,7 +79,7 @@ class MessageBoxMenu : Menu
|
|||
}
|
||||
else
|
||||
{
|
||||
arrowFont = ConFont;
|
||||
arrowFont = ((textFont && textFont.GetGlyphHeight(0xd) > 0) ? textFont : ConFont);
|
||||
destWidth = CleanWidth;
|
||||
destHeight = CleanHeight;
|
||||
selector = "\xd";
|
||||
|
@ -134,7 +134,7 @@ class MessageBoxMenu : Menu
|
|||
if ((MenuTime() % 8) < 6)
|
||||
{
|
||||
screen.DrawText(arrowFont, OptionMenuSettings.mFontColorSelection,
|
||||
destWidth/2 - 11, y + fontheight * messageSelection, selector, DTA_VirtualWidth, destWidth, DTA_VirtualHeight, destHeight, DTA_KeepRatio, true);
|
||||
destWidth/2 - 3 - arrowFont.StringWidth(selector), y + fontheight * messageSelection, selector, DTA_VirtualWidth, destWidth, DTA_VirtualHeight, destHeight, DTA_KeepRatio, true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue