From 212799cd1603eac5dcf2964fbad0a94ac57bd057 Mon Sep 17 00:00:00 2001 From: Pepe20129 <72659707+Pepe20129@users.noreply.github.com> Date: Sun, 20 Jul 2025 01:33:40 +0200 Subject: [PATCH] Update mod_menu.cpp --- soh/soh/Enhancements/mod_menu.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/soh/soh/Enhancements/mod_menu.cpp b/soh/soh/Enhancements/mod_menu.cpp index 1e288d7ce..e77b04eee 100644 --- a/soh/soh/Enhancements/mod_menu.cpp +++ b/soh/soh/Enhancements/mod_menu.cpp @@ -117,7 +117,7 @@ void UpdateModFiles(bool init = false) { void AfterModChange() { SaveEnabledModsCVarValue(); gfx_texture_cache_clear(); - SOH::SkeletonPatcher::UpdateSkeletons(); + SOH::SkeletonPatcher::ClearSkeletons(); Ship::Context::GetInstance()->GetWindow()->GetGui()->SaveConsoleVariablesNextFrame(); } @@ -160,11 +160,16 @@ void DrawDisabledMods() { } } +const std::string updateButtonTooltip = "Re-check the mods folder for new files"; + void ModMenuWindow::DrawElement() { ImGui::BeginDisabled(CVarGetInteger(CVAR_SETTING("DisableChanges"), 0)); if (UIWidgets::Button("Update", UIWidgets::ButtonOptions().Size(ImVec2(250.0f, 0.0f)).Color(THEME_COLOR))) { + UIWidgets::Tooltip(updateButtonTooltip.c_str()); UpdateModFiles(); + } else { + UIWidgets::Tooltip(updateButtonTooltip.c_str()); } if (ImGui::BeginTable("tableMods", 2, ImGuiTableFlags_BordersH | ImGuiTableFlags_BordersV)) {