Add option to fix the penumbra window.

This commit is contained in:
Ottermandias 2022-06-06 22:23:51 +02:00
parent caf19f24cb
commit c97b8e8e9a
4 changed files with 23 additions and 5 deletions

View file

@ -37,6 +37,14 @@ public partial class ConfigWindow
DrawEnabledBox();
DrawShowAdvancedBox();
Checkbox( "Fix Main Window", "Prevent the main window from being resized or moved.", Penumbra.Config.FixMainWindow, v =>
{
Penumbra.Config.FixMainWindow = v;
_window.Flags = v
? _window.Flags | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize
: _window.Flags & ~( ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize );
} );
ImGui.NewLine();
DrawRootFolder();
DrawRediscoverButton();