mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-10 23:01:59 +00:00
- split the Doom specific menu extensions into their own file.
This commit is contained in:
parent
e0d8241a50
commit
0b317b432e
3 changed files with 27 additions and 26 deletions
|
@ -249,6 +249,7 @@ version "4.5"
|
||||||
#include "zscript/ui/menu/messagebox.zs"
|
#include "zscript/ui/menu/messagebox.zs"
|
||||||
#include "zscript/ui/menu/optionmenu.zs"
|
#include "zscript/ui/menu/optionmenu.zs"
|
||||||
#include "zscript/ui/menu/optionmenuitems.zs"
|
#include "zscript/ui/menu/optionmenuitems.zs"
|
||||||
|
#include "zscript/ui/menu/doommenus.zs"
|
||||||
#include "zscript/ui/menu/newplayermenu.zs"
|
#include "zscript/ui/menu/newplayermenu.zs"
|
||||||
#include "zscript/ui/menu/playercontrols.zs"
|
#include "zscript/ui/menu/playercontrols.zs"
|
||||||
#include "zscript/ui/menu/playerdisplay.zs"
|
#include "zscript/ui/menu/playerdisplay.zs"
|
||||||
|
|
26
wadsrc/static/zscript/ui/menu/doommenus.zs
Normal file
26
wadsrc/static/zscript/ui/menu/doommenus.zs
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
class GameplayMenu : OptionMenu
|
||||||
|
{
|
||||||
|
override void Drawer ()
|
||||||
|
{
|
||||||
|
Super.Drawer();
|
||||||
|
|
||||||
|
String s = String.Format("dmflags = %d dmflags2 = %d", dmflags, dmflags2);
|
||||||
|
screen.DrawText (OptionFont(), OptionMenuSettings.mFontColorValue,
|
||||||
|
(screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 35 * CleanXfac_1, s,
|
||||||
|
DTA_CleanNoMove_1, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
class CompatibilityMenu : OptionMenu
|
||||||
|
{
|
||||||
|
override void Drawer ()
|
||||||
|
{
|
||||||
|
Super.Drawer();
|
||||||
|
|
||||||
|
String s = String.Format("compatflags = %d compatflags2 = %d", compatflags, compatflags2);
|
||||||
|
screen.DrawText (OptionFont(), OptionMenuSettings.mFontColorValue,
|
||||||
|
(screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 35 * CleanXfac_1, s,
|
||||||
|
DTA_CleanNoMove_1, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -518,32 +518,6 @@ class OptionMenu : Menu
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
class GameplayMenu : OptionMenu
|
|
||||||
{
|
|
||||||
override void Drawer ()
|
|
||||||
{
|
|
||||||
Super.Drawer();
|
|
||||||
|
|
||||||
String s = String.Format("dmflags = %d dmflags2 = %d", dmflags, dmflags2);
|
|
||||||
screen.DrawText (OptionFont(), OptionMenuSettings.mFontColorValue,
|
|
||||||
(screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 35 * CleanXfac_1, s,
|
|
||||||
DTA_CleanNoMove_1, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class CompatibilityMenu : OptionMenu
|
|
||||||
{
|
|
||||||
override void Drawer ()
|
|
||||||
{
|
|
||||||
Super.Drawer();
|
|
||||||
|
|
||||||
String s = String.Format("compatflags = %d compatflags2 = %d", compatflags, compatflags2);
|
|
||||||
screen.DrawText (OptionFont(), OptionMenuSettings.mFontColorValue,
|
|
||||||
(screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 35 * CleanXfac_1, s,
|
|
||||||
DTA_CleanNoMove_1, true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class GLTextureGLOptions : OptionMenu
|
class GLTextureGLOptions : OptionMenu
|
||||||
{
|
{
|
||||||
private int mWarningIndex;
|
private int mWarningIndex;
|
||||||
|
|
Loading…
Reference in a new issue