mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-31 04:20:34 +00:00
- Added DrawOptionText function for the options menu.
This commit is contained in:
parent
a6429a1ae1
commit
08cd080597
1 changed files with 7 additions and 0 deletions
|
@ -304,6 +304,13 @@ class Menu : Object native ui version("2.4")
|
|||
return OptionFont().StringWidth(s);
|
||||
}
|
||||
|
||||
static void DrawOptionText(int x, int y, int color, String text, bool grayed = false)
|
||||
{
|
||||
String label = Stringtable.Localize(text);
|
||||
int overlay = grayed? Color(96,48,0,0) : 0;
|
||||
screen.DrawText (OptionFont(), color, x, y, text, DTA_CleanNoMove_1, true, DTA_ColorOverlay, overlay);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class MenuDescriptor : Object native ui version("2.4")
|
||||
|
|
Loading…
Reference in a new issue