mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
CustomMessageBox Formatting
This commit is contained in:
parent
724b89bb1d
commit
0f7e7744b0
1 changed files with 4 additions and 3 deletions
|
@ -124,7 +124,8 @@ class CustomMessageBoxMenuBase : Menu abstract
|
||||||
mMouseY = int(y);
|
mMouseY = int(y);
|
||||||
|
|
||||||
let n = optionCount();
|
let n = optionCount();
|
||||||
for(uint i = 0; i < n; i++){
|
for(uint i = 0; i < n; i++)
|
||||||
|
{
|
||||||
screen.DrawText(textFont, messageSelection == i? OptionMenuSettings.mFontColorSelection : OptionMenuSettings.mFontColor, (destWidth / 2) + OptionXOffset(i), y + (fontheight * i), Stringtable.Localize(optionName(i)), DTA_VirtualWidth, destWidth, DTA_VirtualHeight, destHeight, DTA_KeepRatio, true, DTA_ScaleX, NotifyFontScale, DTA_ScaleY, NotifyFontScale);
|
screen.DrawText(textFont, messageSelection == i? OptionMenuSettings.mFontColorSelection : OptionMenuSettings.mFontColor, (destWidth / 2) + OptionXOffset(i), y + (fontheight * i), Stringtable.Localize(optionName(i)), DTA_VirtualWidth, destWidth, DTA_VirtualHeight, destHeight, DTA_KeepRatio, true, DTA_ScaleX, NotifyFontScale, DTA_ScaleY, NotifyFontScale);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -209,7 +210,7 @@ class CustomMessageBoxMenuBase : Menu abstract
|
||||||
if (mkey == MKEY_Up)
|
if (mkey == MKEY_Up)
|
||||||
{
|
{
|
||||||
MenuSound("menu/cursor");
|
MenuSound("menu/cursor");
|
||||||
if(messageSelection == 0) messageSelection = optionCount();
|
if (messageSelection == 0) messageSelection = optionCount();
|
||||||
messageSelection--;
|
messageSelection--;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -217,7 +218,7 @@ class CustomMessageBoxMenuBase : Menu abstract
|
||||||
{
|
{
|
||||||
MenuSound("menu/cursor");
|
MenuSound("menu/cursor");
|
||||||
messageSelection++;
|
messageSelection++;
|
||||||
if(messageSelection == optionCount()) messageSelection = 0;
|
if (messageSelection == optionCount()) messageSelection = 0;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
else if (mkey == MKEY_Enter)
|
else if (mkey == MKEY_Enter)
|
||||||
|
|
Loading…
Reference in a new issue