From 0aafcb6ee29a9f0631b792036f490195b3203c9f Mon Sep 17 00:00:00 2001
From: thecozies <79979276+thecozies@users.noreply.github.com>
Date: Tue, 30 Apr 2024 09:29:38 -0500
Subject: [PATCH] Fix directional navigation between options with msaa options
being disabled (#12)
---
assets/config_menu/graphics.rml | 11 ++++++++---
1 file changed, 8 insertions(+), 3 deletions(-)
diff --git a/assets/config_menu/graphics.rml b/assets/config_menu/graphics.rml
index 51bf258..6cc35d8 100644
--- a/assets/config_menu/graphics.rml
+++ b/assets/config_menu/graphics.rml
@@ -158,7 +158,8 @@
data-checked="rr_option"
value="Display"
id="rr_display"
- data-attr-style="rr_option=='Manual' ? 'nav-up: #wm_fullscreen; nav-down: #rr_manual_input' : 'nav-up: #wm_fullscreen; nav-down: #msaa_2x'"
+ style="nav-up: #wm_fullscreen"
+ data-style-nav-down="rr_option=='Manual' ? '#rr_manual_input' : (msaa2x_supported ? '#msaa_2x' : '#msaa_none')"
/>
@@ -181,7 +183,7 @@
type="range"
min="20"
max="360"
- style="flex:1;margin: 0dp;nav-up:auto;nav-down:auto;"
+ style="flex:1;margin: 0dp;nav-up:#rr_manual;nav-down:#msaa_none;"
data-value="rr_manual_value"
/>
@@ -209,6 +211,7 @@
value="MSAA2X"
id="msaa_2x"
data-attr-style="rr_option=='Manual' ? 'nav-up: #rr_manual_input; nav-down: #hr_16_9' : 'nav-up: #rr_display; nav-down: #hr_16_9'"
+ data-style-nav-right="msaa4x_supported ? '#msaa_4x' : 'none'"
/>