diff --git a/wadsrc/static/zscript.txt b/wadsrc/static/zscript.txt index 7a9677ce2..710f9d941 100644 --- a/wadsrc/static/zscript.txt +++ b/wadsrc/static/zscript.txt @@ -249,6 +249,7 @@ version "4.5" #include "zscript/ui/menu/messagebox.zs" #include "zscript/ui/menu/optionmenu.zs" #include "zscript/ui/menu/optionmenuitems.zs" +#include "zscript/ui/menu/doommenus.zs" #include "zscript/ui/menu/newplayermenu.zs" #include "zscript/ui/menu/playercontrols.zs" #include "zscript/ui/menu/playerdisplay.zs" diff --git a/wadsrc/static/zscript/ui/menu/doommenus.zs b/wadsrc/static/zscript/ui/menu/doommenus.zs new file mode 100644 index 000000000..96d9e4e5a --- /dev/null +++ b/wadsrc/static/zscript/ui/menu/doommenus.zs @@ -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); + } +} + diff --git a/wadsrc/static/zscript/ui/menu/optionmenu.zs b/wadsrc/static/zscript/ui/menu/optionmenu.zs index 20ae748ae..14a2f95ab 100644 --- a/wadsrc/static/zscript/ui/menu/optionmenu.zs +++ b/wadsrc/static/zscript/ui/menu/optionmenu.zs @@ -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 { private int mWarningIndex;