1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Define a minimum window size when supported

This prevents UI elements from collapsing when resizing the window.
This commit is contained in:
Hugo Locurcio 2019-09-14 19:02:29 +02:00
parent 7781126162
commit cec04970d1
No known key found for this signature in database
GPG key ID: 39E8F8BE30B0A49C

View file

@ -14,6 +14,10 @@ var animation_forward := true
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
# 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))
var file_menu_items := {
"New..." : KEY_MASK_CTRL + KEY_N,
#The import and export key shortcuts will change,