@@ -667,12 +667,12 @@ void RND_Renderer::ImGuiOverlay::DrawHelpMenu() {
667667 auto DrawLayerSettingsRow = [&](const char * label, bool * changed, FloatSetting<float >& distanceSetting, FloatSetting<float >& scaleSetting) {
668668 DrawSettingRow (label, [&]() {
669669 auto applyValues = [&](float distance, float scale) {
670- distanceSetting. Set ( distance) ;
671- scaleSetting. Set ( scale) ;
670+ distanceSetting = distance;
671+ scaleSetting = scale;
672672 };
673673
674- float distance = distanceSetting. Get () ;
675- float scale = scaleSetting. Get () ;
674+ float distance = distanceSetting;
675+ float scale = scaleSetting;
676676 std::string distanceIdStr = std::format (" ##{}_Distance" , label);
677677 std::string scaleIdStr = std::format (" ##{}_Scale" , label);
678678
@@ -683,15 +683,15 @@ void RND_Renderer::ImGuiOverlay::DrawHelpMenu() {
683683
684684 ImGui::PushItemWidth (sliderWidth);
685685 if (ImGui::SliderFloat (distanceIdStr.c_str (), &distance, distanceSetting.min , distanceSetting.max , formatDistance (distance).c_str ())) {
686- applyValues (std::clamp (distance, distanceSetting.min , distanceSetting.max ), scaleSetting. Get () );
686+ applyValues (std::clamp (distance, distanceSetting.min , distanceSetting.max ), scaleSetting);
687687 *changed = true ;
688688 }
689689 ImGui::PopItemWidth ();
690690 ImGui::SameLine ();
691691
692692 ImGui::PushItemWidth (sliderWidth);
693693 if (ImGui::SliderFloat (scaleIdStr.c_str (), &scale, scaleSetting.min , scaleSetting.max , " %.2fx scale" )) {
694- applyValues (distanceSetting. Get () , std::clamp (scale, scaleSetting.min , scaleSetting.max ));
694+ applyValues (distanceSetting, std::clamp (scale, scaleSetting.min , scaleSetting.max ));
695695 *changed = true ;
696696 }
697697 ImGui::PopItemWidth ();
@@ -726,7 +726,7 @@ void RND_Renderer::ImGuiOverlay::DrawHelpMenu() {
726726 ImGui::PopStyleVar ();
727727 if (DrawStyledTab (ICON_KI_COG " Settings" , 0 )) {
728728 ImGui::Separator ();
729- CameraMode cameraMode = settings.cameraMode . Get () ;
729+ CameraMode cameraMode = settings.cameraMode ;
730730 DrawSettingRow (" Camera Mode" , [&]() {
731731 settings.cameraMode .AddRadioToGUI (&changed, ModSettings::toDisplayString);
732732 });
@@ -878,8 +878,8 @@ void RND_Renderer::ImGuiOverlay::DrawHelpMenu() {
878878 });
879879
880880 if (settings.performanceOverlay != PerformanceOverlayMode::DISABLE) {
881- static const int freqOptions[] = { 30 , 60 , 72 , 80 , 90 , 120 , 144 };
882- int currentFreq = ( int ) settings.performanceOverlayFrequency . Get () ;
881+ static const uint32_t freqOptions[] = { 30 , 60 , 72 , 80 , 90 , 120 , 144 };
882+ uint32_t currentFreq = settings.performanceOverlayFrequency ;
883883 int freqIdx = 5 ; // Default to 90
884884 for (int i = 0 ; i < std::size (freqOptions); i++) {
885885 if (freqOptions[i] == currentFreq) {
0 commit comments