From 8c6bea9e1a2b34d8c64bb3c0f9e86172f947d2a2 Mon Sep 17 00:00:00 2001
From: otta8634 <k9wolf@pm.me>
Date: Thu, 13 Feb 2025 01:28:27 +0800
Subject: [PATCH] Add r_stereo_redcyan to the menu

Added it to the Video section.
This was requested by #516.
There are other color modes, I only added red-cyan since it's the most popular and will at least make the user aware support exists, so they can hopefully find the other cvars in the console themselves.
- There's no space in the dialog to fit all options.
---
 qcsrc/menu/xonotic/dialog_settings_video.qc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/qcsrc/menu/xonotic/dialog_settings_video.qc b/qcsrc/menu/xonotic/dialog_settings_video.qc
index 461809d7f..4d24f1417 100644
--- a/qcsrc/menu/xonotic/dialog_settings_video.qc
+++ b/qcsrc/menu/xonotic/dialog_settings_video.qc
@@ -35,7 +35,6 @@ void XonoticVideoSettingsTab_fill(entity me)
 			e.applyButton = videoApplyButton;
 		me.TD(me, 1, 2, e = makeXonoticCheckBox(0, "vid_borderless", _("Borderless window")));
 			setDependent(e, "vid_fullscreen", 0, 0);
-	me.TR(me);
 	me.TR(me);
 		me.TD(me, 1, 1, e = makeXonoticTextLabel(0, _("Resolution:")));
 		me.TD(me, 1, 2, e = makeXonoticResolutionSlider());
@@ -54,6 +53,8 @@ void XonoticVideoSettingsTab_fill(entity me)
 			e.addText(e, ZCTX(_("SZ^Colossal")), 1);
 			e.configureXonoticMixedSliderValues(e);
 			e.applyButton = videoApplyButton;
+	me.TR(me);
+		me.TD(me, 1, 3, e = makeXonoticCheckBox(0, "r_stereo_redcyan", _("Anaglyph 3D (red-cyan)")));
 	me.TR(me);
 		me.TD(me, 1, 3, e = makeXonoticCheckBoxEx(2, 0, "r_viewfbo", _("High-quality frame buffer")));
 		if (cvar_type("vid_gl20") & CVAR_TYPEFLAG_ENGINE)
-- 
2.39.5