From 8ce2bc3e14f66df6d6190d535f1d84c21ad664d6 Mon Sep 17 00:00:00 2001 From: z411 Date: Sun, 27 Feb 2022 17:25:24 -0300 Subject: [PATCH] Added secondary timer to menu --- qcsrc/menu/xonotic/dialog_hudpanel_timer.qc | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/qcsrc/menu/xonotic/dialog_hudpanel_timer.qc b/qcsrc/menu/xonotic/dialog_hudpanel_timer.qc index 84c6d862d..76909c1da 100644 --- a/qcsrc/menu/xonotic/dialog_hudpanel_timer.qc +++ b/qcsrc/menu/xonotic/dialog_hudpanel_timer.qc @@ -17,4 +17,12 @@ void XonoticHUDTimerDialog_fill(entity me) me.TR(me); me.TDempty(me, 0.2); me.TD(me, 1, 3.8, e = makeXonoticCheckBox(0, "hud_panel_timer_increment", _("Show elapsed time"))); + me.TR(me); + me.TDempty(me, 0.2); + me.TD(me, 1, 1.2, e = makeXonoticTextLabel(0, _("Secondary timer:"))); + me.TD(me, 1, 2.6, e = makeXonoticTextSlider("hud_panel_timer_secondary")); + e.addValue(e, _("Disable"), "0"); + e.addValue(e, _("Enable"), "1"); + e.addValue(e, _("Swapped"), "2"); + e.configureXonoticTextSliderValues(e); } -- 2.39.2