Fix reloading mods not fixing settings, add some messages on IPC.

This commit is contained in:
Ottermandias 2024-03-18 16:41:40 +01:00
parent ceb3bbc5c3
commit 0ec440c388
4 changed files with 103 additions and 23 deletions

View file

@ -211,6 +211,11 @@ public class ModPanelSettingsTab : ITab
var selectedOption = _empty ? (int)group.DefaultSettings : (int)_settings.Settings[groupIdx];
var minWidth = Widget.BeginFramedGroup(group.Name, description:group.Description);
DrawCollapseHandling(group, minWidth, DrawOptions);
Widget.EndFramedGroup();
return;
void DrawOptions()
{
for (var idx = 0; idx < group.Count; ++idx)
@ -227,10 +232,6 @@ public class ModPanelSettingsTab : ITab
ImGuiComponents.HelpMarker(option.Description);
}
}
DrawCollapseHandling(group, minWidth, DrawOptions);
Widget.EndFramedGroup();
}