diff --git a/src/spice2x/overlay/windows/generic_sub.cpp b/src/spice2x/overlay/windows/generic_sub.cpp index 9558860..b20df4d 100644 --- a/src/spice2x/overlay/windows/generic_sub.cpp +++ b/src/spice2x/overlay/windows/generic_sub.cpp @@ -90,14 +90,20 @@ namespace overlay::windows { this->flags |= ImGuiWindowFlags_NoBackground; if (this->disabled_message.has_value()) { + this->draws_window = true; this->flags &= ~ImGuiWindowFlags_NoBackground; ImGui::TextColored(YELLOW, "%s", this->disabled_message.value().c_str()); + ImGui::TextUnformatted(""); + if (ImGui::Button("Close")) { + this->set_active(false); + } return; } this->draw_texture(); if (!this->texture) { + this->draws_window = true; this->flags &= ~ImGuiWindowFlags_NoBackground; ImGui::TextColored(YELLOW, "Failed to acquire surface texture for subscreen."); if (avs::game::is_model("LDJ")) { @@ -111,6 +117,10 @@ namespace overlay::windows { "Ensure that you did not accidentally enable a patch \n" "that turns off subscreen rendering."); } + ImGui::TextUnformatted(""); + if (ImGui::Button("Close")) { + this->set_active(false); + } } #if OVERLAYDBG diff --git a/src/spice2x/overlay/windows/iidx_sub.cpp b/src/spice2x/overlay/windows/iidx_sub.cpp index e9bb887..8c907e8 100644 --- a/src/spice2x/overlay/windows/iidx_sub.cpp +++ b/src/spice2x/overlay/windows/iidx_sub.cpp @@ -15,7 +15,6 @@ namespace overlay::windows { this->disabled_message = "Close this overlay and use the second window.\n" "If you don't see the window, double check your DLL type and apply TDJ I/O patches as needed."; - this->draws_window = false; } float size = 0.5f;