- split the Doom specific menu extensions into their own file.

This commit is contained in:
Christoph Oelckers 2020-10-04 20:33:43 +02:00
parent e0d8241a50
commit 0b317b432e
3 changed files with 27 additions and 26 deletions

View file

@ -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"

View 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);
}
}

View file

@ -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;