mirror of
https://github.com/tonytins/CozyPixelStudio.git
synced 2025-06-25 17:24:44 -04:00
Make the Splash Screen popup optional
This commit is contained in:
parent
e61fea32bc
commit
6025271e29
4 changed files with 35 additions and 10 deletions
|
@ -156,8 +156,15 @@ func _ready() -> void:
|
|||
|
||||
Import.import_brushes("Brushes")
|
||||
|
||||
$SplashDialog.popup_centered() # Splash screen
|
||||
OS.set_window_title("(" + tr("untitled") + ") - Pixelorama")
|
||||
if Global.config_cache.has_section_key("preferences", "startup"):
|
||||
Global.startup = Global.config_cache.get_value("preferences", "startup")
|
||||
else:
|
||||
Global.startup = true
|
||||
Global.config_cache.set_value("preferences", "startup", Global.startup)
|
||||
|
||||
if Global.config_cache.get_value("preferences", "startup"):
|
||||
$SplashDialog.popup_centered() # Splash screen
|
||||
OS.set_window_title("(" + tr("untitled") + ") - Pixelorama")
|
||||
|
||||
func _input(event : InputEvent) -> void:
|
||||
Global.left_cursor.position = get_global_mouse_position() + Vector2(-32, 32)
|
||||
|
@ -925,4 +932,4 @@ func _on_QuitDialog_confirmed() -> void:
|
|||
# (it won't respond to user input in this state).
|
||||
modulate = Color(0.5, 0.5, 0.5)
|
||||
|
||||
get_tree().quit()
|
||||
get_tree().quit()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue