From a5d743cc3b96fae3ec9e2d59acbc087562c5d6c5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 19 Apr 2019 07:50:52 +0200 Subject: [PATCH] - fixed: The color sliders in the player setup menu may not be selected when inactive. --- wadsrc/static/zscript/ui/menu/newplayermenu.zs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/wadsrc/static/zscript/ui/menu/newplayermenu.zs b/wadsrc/static/zscript/ui/menu/newplayermenu.zs index 7658bb5434..53ae647b46 100644 --- a/wadsrc/static/zscript/ui/menu/newplayermenu.zs +++ b/wadsrc/static/zscript/ui/menu/newplayermenu.zs @@ -211,7 +211,11 @@ class OptionMenuItemPlayerColorSlider : OptionMenuSliderBase return indent; } - + override bool Selectable() + { + int mycolorset = players[consoleplayer].GetColorSet(); + return (mycolorset == -1); + } } //============================================================================= @@ -522,6 +526,7 @@ class NewPlayerMenu : OptionMenu return Super.OnUIEvent(ev); } + //============================================================================= // //