mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-23 00:49:18 +01:00
Add option to configure minimum window size.
This commit is contained in:
parent
d403f44256
commit
f9cc88cbb0
4 changed files with 79 additions and 6 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue