From fd9bf2669577d0e27468eb0b0dc0ca5643856849 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Sun, 15 Dec 2019 21:47:01 +0100 Subject: [PATCH] Darken the UI when exiting the application This improves user experience a bit when quitting Pixelorama, especially on slower hardware. --- Scripts/Main.gd | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Scripts/Main.gd b/Scripts/Main.gd index af7a0796c..9c321c37e 100644 --- a/Scripts/Main.gd +++ b/Scripts/Main.gd @@ -1025,6 +1025,10 @@ func _on_RightVerticalMirroring_toggled(button_pressed) -> void: Global.right_vertical_mirror = button_pressed func _on_QuitDialog_confirmed() -> void: + # Darken the UI to denote that the application is currently exiting + # (it won't respond to user input in this state). + modulate = Color(0.5, 0.5, 0.5) + get_tree().quit() func _exit_tree() -> void: