Merge pull request #17 from Calinou/set-minimum-window-size

Define a minimum window size when supported
This commit is contained in:
Rodz Labs 2019-10-17 22:22:18 +02:00 committed by GitHub
commit 4212dee2a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,10 @@ const MENU = [
signal quit signal quit
func _ready(): func _ready():
# Set a minimum window size to prevent UI elements from collapsing on each other.
# This property is only available in 3.2alpha or later, so use `set()` to fail gracefully if it doesn't exist.
OS.set("min_window_size", Vector2(1024, 600))
if !Engine.editor_hint: if !Engine.editor_hint:
OS.set_window_title(ProjectSettings.get_setting("application/config/name")+" v"+ProjectSettings.get_setting("application/config/release")) OS.set_window_title(ProjectSettings.get_setting("application/config/name")+" v"+ProjectSettings.get_setting("application/config/release"))
load_recents() load_recents()