From 877d7f732b1c3f1f9f7bf3e3e79a0e424c410d82 Mon Sep 17 00:00:00 2001 From: "Reinhardt R. Gaming" <99330992+sheepytina@users.noreply.github.com> Date: Fri, 31 May 2024 13:46:41 +1000 Subject: [PATCH] Display a MSAA value of 1x as "Off" (#597) * Change terminology for MSAA setting + tooltip * Update BenMenuBar.cpp --- mm/2s2h/BenGui/BenMenuBar.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/mm/2s2h/BenGui/BenMenuBar.cpp b/mm/2s2h/BenGui/BenMenuBar.cpp index 036a5c778..2fb1f1438 100644 --- a/mm/2s2h/BenGui/BenMenuBar.cpp +++ b/mm/2s2h/BenGui/BenMenuBar.cpp @@ -181,11 +181,15 @@ void DrawSettingsMenu() { "form of anti-aliasing"); #endif #ifndef __WIIU__ - if (UIWidgets::CVarSliderInt("MSAA: %d", CVAR_MSAA_VALUE, 1, 8, 1)) { + if (UIWidgets::CVarSliderInt((CVarGetInteger(CVAR_MSAA_VALUE, 1) == 1) ? "Anti-aliasing (MSAA): Off" + : "Anti-aliasing (MSAA): %d", + CVAR_MSAA_VALUE, 1, 8, 1)) { Ship::Context::GetInstance()->GetWindow()->SetMsaaLevel(CVarGetInteger(CVAR_MSAA_VALUE, 1)); }; UIWidgets::Tooltip( - "Activates multi-sample anti-aliasing when above 1x up to 8x for 8 samples for every pixel"); + "Activates MSAA (multi-sample anti-aliasing) from 2x up to 8x, to smooth the edges of rendered " + "geometry.\n" + "Higher sample count will result in smoother edges on models, but may reduce performance."); #endif { // FPS Slider