Godot Version
v4.8.dev7.official [c971f93e7] CachyOS KDE Plasma x86_64 Linux
Question
Hi,
Is there any method in Godot Engine version 4.8 Dev7
to detect if the game’s window was [Maximize] or [Restore] ?
(talking about the button on the windows title bar)
Hope someone can help us. thank you!
Savant Savior
If you want to check the state of the current window you can do so by first getting the window with Node.get_window and checking its Window.mode.
If you want to check if the maximize buttons exist then that’s handled by ProjectSettings. For example if ProjectSettings.display/window/size/maximize_disabled then the project cannot be maximized and the button should be disabled.
Though as I’m testing this I can still maximize the application so that may be a bug.
Hi,
Very helpful info, thank you!