Add option to configure minimum window size.

This commit is contained in:
Ottermandias 2023-05-06 12:46:19 +02:00
parent d403f44256
commit f9cc88cbb0
4 changed files with 79 additions and 6 deletions

View file

@ -42,11 +42,6 @@ public sealed class ConfigWindow : Window
_validityChecker = checker;
RespectCloseHotkey = true;
SizeConstraints = new WindowSizeConstraints()
{
MinimumSize = new Vector2(900, 675),
MaximumSize = new Vector2(4096, 2160),
};
tutorial.UpdateTutorialStep();
IsOpen = _config.DebugMode;
}
@ -66,6 +61,11 @@ public sealed class ConfigWindow : Window
Flags |= ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove;
else
Flags &= ~(ImGuiWindowFlags.NoResize | ImGuiWindowFlags.NoMove);
SizeConstraints = new WindowSizeConstraints()
{
MinimumSize = _config.MinimumSize,
MaximumSize = new Vector2(4096, 2160),
};
}
public override void Draw()