1
0
Fork 0
mirror of https://github.com/tonytins/dressupzack synced 2025-05-06 05:44:48 -04:00
dressupzack/scripts/PauseScn.gd
Anthony Foxclaw 8f6ab4592d Moved entire project to root
- Removed assets and publishing directories
2020-06-21 09:16:37 -04:00

34 lines
815 B
GDScript

# Anthony Wilcox licenses this file to you under the MPL license.
# See the LICENSE file in the project root for more information.
extends Node
func _process(delta):
if Input.is_action_just_pressed("ui_pause"):
$PauseWin.show()
GameKit.is_game_paused(true)
func _on_ExitBtn_pressed():
GameKit.is_game_paused(false)
GameKit.switch_scenes("title")
func _on_SettingsBtn_pressed():
$SettingsWin.show()
func _on_CreditsBtn_pressed():
GameKit.switch_scenes("credits")
func _on_LicenseBtn_pressed():
$LicenseWin.show()
func _on_CloseAbtBtn_pressed():
$AboutWin.hide()
func _on_MusicBtn_toggled(button_pressed):
if button_pressed == true:
UserSettings.IsMusicPaused = true
else:
UserSettings.IsMusicPaused = false
func _on_ResumeBtn_pressed():
$PauseWin.hide()
GameKit.is_game_paused(false)