From a6051c8231b039f7452153eb0d89caad31ed33b4 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Sun, 17 Mar 2019 17:08:44 +0100 Subject: [PATCH] - moved the flag display in the gameplay and compatibility menus down below the headline. --- wadsrc/static/menudef.txt | 10 ++++++++++ wadsrc/static/zscript/ui/menu/optionmenu.zs | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/wadsrc/static/menudef.txt b/wadsrc/static/menudef.txt index 8cf3d0ea2..cfed6b614 100644 --- a/wadsrc/static/menudef.txt +++ b/wadsrc/static/menudef.txt @@ -1491,6 +1491,7 @@ OptionValue JumpCrouchFreeLook OptionMenu GameplayOptions protected { + Position -35 Title "$GMPLYMNU_TITLE" //Indent 222 Submenu "$GMPLYMNU_DEATHMATCH", "DeathmatchOptions" @@ -1533,6 +1534,7 @@ OptionMenu GameplayOptions protected OptionMenu DeathmatchOptions protected { + Position -35 Title "$GMPLYMNU_DEATHMATCH" Option "$GMPLYMNU_WEAPONSSTAY", "sv_weaponstay", "YesNo" @@ -1553,6 +1555,7 @@ OptionMenu DeathmatchOptions protected OptionMenu CoopOptions protected { + Position -35 Title "$GMPLYMNU_COOPERATIVE" Option "$GMPLYMNU_MULTIPLAYERWEAPONS", "sv_noweaponspawn", "NoYes" @@ -1587,6 +1590,7 @@ OptionValue CompatModes OptionMenu "CompatibilityOptions" protected { + Position -35 Title "$CMPTMNU_TITLE" Option "$CMPTMNU_MODE", "compatmode", "CompatModes", "", 1 StaticText " " @@ -1601,6 +1605,7 @@ OptionMenu "CompatibilityOptions" protected OptionMenu "CompatActorMenu" protected { + Position -35 Title "$CMPTMNU_ACTORBEHAVIOR" Option "$CMPTMNU_CORPSEGIBS", "compat_CORPSEGIBS", "YesNo" Option "$CMPTMNU_NOBLOCKFRIENDS", "compat_NOBLOCKFRIENDS", "YesNo" @@ -1616,6 +1621,7 @@ OptionMenu "CompatActorMenu" protected OptionMenu "CompatDehackedMenu" protected { + Position -35 Title "$CMPTMNU_DEHACKEDBEHAVIOR" Option "$CMPTMNU_DEHHEALTH", "compat_DEHHEALTH", "YesNo" Option "$CMPTMNU_MUSHROOM", "compat_MUSHROOM", "YesNo" @@ -1624,6 +1630,7 @@ OptionMenu "CompatDehackedMenu" protected OptionMenu "CompatMapMenu" protected { + Position -35 Title "$CMPTMNU_MAPACTIONBEHAVIOR" Option "$CMPTMNU_USEBLOCKING", "compat_USEBLOCKING", "YesNo" Option "$CMPTMNU_ANYBOSSDEATH", "compat_ANYBOSSDEATH", "YesNo" @@ -1642,6 +1649,7 @@ OptionMenu "CompatMapMenu" protected OptionMenu "CompatPhysicsMenu" protected { + Position -35 Title "$CMPTMNU_PHYSICSBEHAVIOR" Option "$CMPTMNU_NOPASSOVER", "compat_nopassover", "YesNo" Option "$CMPTMNU_BOOMSCROLL", "compat_BOOMSCROLL", "YesNo" @@ -1657,6 +1665,7 @@ OptionMenu "CompatPhysicsMenu" protected OptionMenu "CompatRenderMenu" protected { + Position -35 Title "$CMPTMNU_RENDERINGBEHAVIOR" Option "$CMPTMNU_POLYOBJ", "compat_POLYOBJ", "YesNo" Option "$CMPTMNU_MASKEDMIDTEX", "compat_MASKEDMIDTEX", "YesNo" @@ -1666,6 +1675,7 @@ OptionMenu "CompatRenderMenu" protected OptionMenu "CompatSoundMenu" protected { + Position -35 Title "$CMPTMNU_SOUNDBEHAVIOR" Option "$CMPTMNU_SOUNDSLOTS", "compat_soundslots", "YesNo" Option "$CMPTMNU_SILENTPICKUP", "compat_SILENTPICKUP", "YesNo" diff --git a/wadsrc/static/zscript/ui/menu/optionmenu.zs b/wadsrc/static/zscript/ui/menu/optionmenu.zs index e86303562..dc389ac95 100644 --- a/wadsrc/static/zscript/ui/menu/optionmenu.zs +++ b/wadsrc/static/zscript/ui/menu/optionmenu.zs @@ -520,7 +520,7 @@ class GameplayMenu : OptionMenu String s = String.Format("dmflags = %d dmflags2 = %d", dmflags, dmflags2); screen.DrawText (OptionFont(), OptionMenuSettings.mFontColorValue, - (screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 0, s, + (screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 35 * CleanXfac_1, s, DTA_CleanNoMove_1, true); } } @@ -533,7 +533,7 @@ class CompatibilityMenu : OptionMenu String s = String.Format("compatflags = %d compatflags2 = %d", compatflags, compatflags2); screen.DrawText (OptionFont(), OptionMenuSettings.mFontColorValue, - (screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 0, s, + (screen.GetWidth() - OptionWidth (s) * CleanXfac_1) / 2, 35 * CleanXfac_1, s, DTA_CleanNoMove_1, true); } }