Merge pull request #125 from Calinou/min-window-size-godot-3.2

Remove fallback for `OS.min_window_size` now that Godot 3.2 is out
This commit is contained in:
Rodz Labs 2020-05-31 06:30:28 +02:00 committed by GitHub
commit 025d58c0b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -125,8 +125,7 @@ func _ready() -> void:
get_tree().set_screen_stretch(SceneTree.STRETCH_MODE_DISABLED, SceneTree.STRETCH_ASPECT_IGNORE, Vector2(), 2)
# 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))
OS.min_window_size = Vector2(1024, 600)
# Set window title
OS.set_window_title(ProjectSettings.get_setting("application/config/name")+" v"+ProjectSettings.get_setting("application/config/release"))