2020-10-04 18:33:43 +00:00
|
|
|
class GameplayMenu : OptionMenu
|
|
|
|
{
|
|
|
|
override void Drawer ()
|
|
|
|
{
|
|
|
|
Super.Drawer();
|
|
|
|
|
2023-01-08 11:10:49 +00:00
|
|
|
String s = String.Format("dmflags = %d dmflags2 = %d dmflags3 = %d", dmflags, dmflags2, dmflags3);
|
2020-10-04 18:33:43 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-10-04 20:46:04 +00:00
|
|
|
//=============================================================================
|
|
|
|
//
|
|
|
|
// Placeholder classes for overhauled video mode menu. Do not use!
|
|
|
|
// Their sole purpose is to support mods with full copy of embedded MENUDEF
|
|
|
|
//
|
|
|
|
//=============================================================================
|
|
|
|
|
|
|
|
class OptionMenuItemScreenResolution : OptionMenuItem
|
|
|
|
{
|
|
|
|
String mResTexts[3];
|
|
|
|
int mSelection;
|
|
|
|
int mHighlight;
|
|
|
|
int mMaxValid;
|
|
|
|
|
|
|
|
enum EValues
|
|
|
|
{
|
|
|
|
SRL_INDEX = 0x30000,
|
|
|
|
SRL_SELECTION = 0x30003,
|
|
|
|
SRL_HIGHLIGHT = 0x30004,
|
|
|
|
};
|
|
|
|
|
|
|
|
OptionMenuItemScreenResolution Init(String command)
|
|
|
|
{
|
|
|
|
return self;
|
|
|
|
}
|
|
|
|
|
|
|
|
override bool Selectable()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
class VideoModeMenu : OptionMenu
|
|
|
|
{
|
|
|
|
static bool SetSelectedSize()
|
|
|
|
{
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
2020-10-16 21:25:28 +00:00
|
|
|
|
|
|
|
class DoomMenuDelegate : MenuDelegateBase
|
|
|
|
{
|
|
|
|
override void PlaySound(Name snd)
|
|
|
|
{
|
|
|
|
String s = snd;
|
|
|
|
S_StartSound (s, CHAN_VOICE, CHANF_UI, snd_menuvolume);
|
|
|
|
}
|
|
|
|
}
|