mirror of
https://github.com/Orama-Interactive/Pixelorama.git
synced 2025-02-20 12:33:14 +00:00
Merge pull request #50 from Calinou/darken-ui-when-exiting
Darken the UI when exiting the application
This commit is contained in:
commit
5301131670
1 changed files with 4 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue