mirror of
https://github.com/Ottermandias/Glamourer.git
synced 2025-12-30 20:33:44 +01:00
Add locking and color options and commands.
This commit is contained in:
parent
a84a66a344
commit
27c41cac49
5 changed files with 73 additions and 22 deletions
|
|
@ -79,6 +79,13 @@ public class MainWindow : Window, IDisposable
|
|||
IsOpen = _config.DebugMode;
|
||||
}
|
||||
|
||||
public override void PreDraw()
|
||||
{
|
||||
Flags = _config.LockMainWindow
|
||||
? Flags | ImGuiWindowFlags.NoMove | ImGuiWindowFlags.NoResize
|
||||
: Flags & ~(ImGuiWindowFlags.NoMove |ImGuiWindowFlags.NoResize);
|
||||
}
|
||||
|
||||
public void Dispose()
|
||||
=> _event.Unsubscribe(OnTabSelected);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue