mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-29 15:32:57 +00:00
a08d87beb3
Currently the only thing it does is abstracting the menu caption, but more can be added here. Not exposed to modding yet, though, that's for later.
10 lines
400 B
Text
10 lines
400 B
Text
// This class allows global customization of certain menu aspects, e.g. replacing the menu caption.
|
|
|
|
class MenuCustomize
|
|
{
|
|
virtual int DrawCaption(String title, Font fnt, int y, bool drawit)
|
|
{
|
|
screen.DrawText(fnt, OptionMenuSettings.mTitleColor, (screen.GetWidth() - fnt.StringWidth(title) * CleanXfac_1) / 2, 10 * CleanYfac_1, title, DTA_CleanNoMove_1, true);
|
|
return y + fnt.GetHeight();
|
|
}
|
|
}
|