1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-03-12 22:35:18 +00:00

Remove fallback for OS.min_window_size now that Godot 3.2 is out (#249)

The latest Pixelorama versions require Godot 3.2 to run.
This commit is contained in:
Hugo Locurcio 2020-05-30 23:20:41 +02:00 committed by GitHub
parent 02045ec60c
commit 9a1f5bf5b8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,7 @@ var is_quitting_on_save := false
func _ready() -> void:
get_tree().set_auto_accept_quit(false)
# 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, 576))
OS.min_window_size = Vector2(1024, 576)
Global.loaded_locales = TranslationServer.get_loaded_locales()
# Make sure locales are always sorted, in the same order