raze/wadsrc/static/zscript/ui/menu/menucustomize.zs

18 lines
537 B
Text
Raw Normal View History

2020-10-04 22:23:30 +00:00
// This class allows global customization of certain menu aspects, e.g. replacing the menu caption.
class MenuDelegateBase
2020-10-04 22:23:30 +00:00
{
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);
2020-10-05 22:34:35 +00:00
return (y + fnt.GetHeight()) * CleanYfac_1; // return is spacing in screen pixels.
2020-10-04 22:23:30 +00:00
}
virtual bool DrawSelector(ListMenuDescriptor desc)
{
return false;
}
2020-10-04 22:23:30 +00:00
}