mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-05-05 16:24:49 -04:00
Merge pull request #6 from Calinou/set-minimum-window-size
Define a minimum window size when supported
This commit is contained in:
commit
7c4eea16af
1 changed files with 4 additions and 0 deletions
|
@ -14,6 +14,10 @@ var animation_forward := true
|
||||||
|
|
||||||
# Called when the node enters the scene tree for the first time.
|
# Called when the node enters the scene tree for the first time.
|
||||||
func _ready() -> void:
|
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 := {
|
var file_menu_items := {
|
||||||
"New..." : KEY_MASK_CTRL + KEY_N,
|
"New..." : KEY_MASK_CTRL + KEY_N,
|
||||||
#The import and export key shortcuts will change,
|
#The import and export key shortcuts will change,
|
||||||
|
|
Loading…
Add table
Reference in a new issue