Destroyed the bug

This commit is contained in:
Schweini07 2020-01-01 16:26:58 +01:00 committed by GitHub
parent 6025271e29
commit 13fa0bbc54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 17 deletions

View file

@ -156,15 +156,11 @@ func _ready() -> void:
Import.import_brushes("Brushes")
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")
$SplashDialog.popup_centered() # Splash screen
if not Global.config_cache.get_value("preferences", "startup"):
$SplashDialog.hide()
OS.set_window_title("(" + tr("untitled") + ") - Pixelorama")
func _input(event : InputEvent) -> void:
Global.left_cursor.position = get_global_mouse_position() + Vector2(-32, 32)