This commit is contained in:
Major Cooke 2023-01-21 11:13:10 -06:00
parent b5a95b47c1
commit a87b3a0e55
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}
}
}

View file

@ -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);
}
}
}