From 720db87173776b286dc2badbf82ab240bca22a83 Mon Sep 17 00:00:00 2001 From: Llennpie <44985633+Llennpie@users.noreply.github.com> Date: Mon, 11 Oct 2021 12:57:40 -0400 Subject: [PATCH] Add Moon's anti-aliasing to settings --- src/moon/imgui/imgui_impl.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/moon/imgui/imgui_impl.cpp b/src/moon/imgui/imgui_impl.cpp index a6a7fad8..7a425405 100644 --- a/src/moon/imgui/imgui_impl.cpp +++ b/src/moon/imgui/imgui_impl.cpp @@ -543,14 +543,14 @@ namespace MoonInternal { ImGui::Dummy(ImVec2(0, 5)); - if (ImGui::Button("Apply to Game")) { + if (ImGui::Button("Apply CC")) { apply_cc_from_editor(); } ImGui::Dummy(ImVec2(0, 5)); ImGui::InputText(".gs", bufname, IM_ARRAYSIZE(bufname)); - if (ImGui::Button("Save")) { + if (ImGui::Button("Save to File")) { apply_cc_from_editor(); std::string cc_name = bufname; @@ -591,6 +591,9 @@ namespace MoonInternal { ImGui::Text("Graphics Quality"); const char* lod_modes[] = { "Auto", "Low", "High" }; ImGui::Combo("###lod_modes", (int*)&configLODMode, lod_modes, IM_ARRAYSIZE(lod_modes)); + ImGui::Checkbox("Anti-aliasing", &configWindow.enable_antialias); + if (configWindow.enable_antialias) + ImGui::SliderInt("Anti-alias level", (int*)&configWindow.antialias_level, 0, 16); ImGui::Text("Texture Filtering"); const char* texture_filters[] = { "Nearest", "Linear", "Three-point" }; ImGui::Combo("###texture_filters", (int*)&configFiltering, texture_filters, IM_ARRAYSIZE(texture_filters));