From 2248f0f282abcd3ac88b404888285df676610d71 Mon Sep 17 00:00:00 2001 From: Freddy Date: Wed, 3 Aug 2016 15:14:05 +0200 Subject: [PATCH] add new option for cl_forceplayercolor to the menu --- qcsrc/menu/xonotic/dialog_settings_game_model.qc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/qcsrc/menu/xonotic/dialog_settings_game_model.qc b/qcsrc/menu/xonotic/dialog_settings_game_model.qc index f0f95d74b..b57d7cae8 100644 --- a/qcsrc/menu/xonotic/dialog_settings_game_model.qc +++ b/qcsrc/menu/xonotic/dialog_settings_game_model.qc @@ -50,7 +50,12 @@ void XonoticGameModelSettingsTab_fill(entity me) me.TR(me); me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_forceplayermodels", _("Force player models to mine"))); me.TR(me); - me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "cl_forceplayercolors", _("Force player colors to mine"))); + me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Force player colors to mine"))); + me.TD(me, 1, 2, e = makeXonoticTextSlider("cl_forceplayercolors")); + e.addValue(e, _("Never"), "0"); + e.addValue(e, _("In non teamplay modes only"), "1"); + e.addValue(e, _("Always"), "2"); + e.configureXonoticTextSliderValues(e); me.TR(me); me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Body fading:"))); me.TD(me, 1, 2, e = makeXonoticSlider(0, 2, 0.2, "cl_deathglow")); -- 2.39.2