mirror of
https://github.com/tonytins/dressupzack
synced 2025-08-14 12:44:44 -04:00
Game experience should be more consistent now
- The Exit (to menu) and Settings buttons have been merged into a single Pause window that can be accessed by pressing Escape or Start/"Nintendo +" from the keyboard or game controllers, respectfully. Interacting with the game should be more user friendly and predictable now.
This commit is contained in:
parent
20a553f9c3
commit
e96a904041
14 changed files with 197 additions and 271 deletions
|
@ -1,3 +1,8 @@
|
|||
# Anthony Wilcox licenses this file to you under the GPL license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends Node
|
||||
|
||||
func _process(delta):
|
||||
if Input.is_action_pressed("ui_pause"):
|
||||
get_tree().paused = true
|
||||
$WinDialogs/PauseWin.show()
|
|
@ -1,9 +0,0 @@
|
|||
# Anthony Wilcox licenses this file to you under the GPL license.
|
||||
# See the LICENSE file in the project root for more information.
|
||||
extends Control
|
||||
|
||||
func _on_SettingsBtn_pressed():
|
||||
$WinDialogs/SettingsWin.show()
|
||||
|
||||
func _on_ExitBtn_pressed():
|
||||
get_tree().change_scene("res://StartScn.tscn")
|
|
@ -6,17 +6,15 @@ func _on_ClassicBtn_pressed():
|
|||
get_tree().change_scene("res://ClassicScn.tscn")
|
||||
|
||||
func _on_ModernBtn_pressed():
|
||||
get_tree().change_scene("res://GameScn.tscn")
|
||||
get_tree().change_scene("res://ModernScn.tscn")
|
||||
|
||||
func _on_ClassicBtn_mouse_entered():
|
||||
$ModernBG.hide()
|
||||
$WordrobeBG.hide()
|
||||
$Modern.hide()
|
||||
$ClassicBG.show()
|
||||
|
||||
func _on_ClassicBtn_mouse_exited():
|
||||
$ClassicBG.hide()
|
||||
$WordrobeBG.show()
|
||||
$ModernBG.show()
|
||||
$Modern.show()
|
||||
|
||||
func _on_CreditsBtn_pressed():
|
||||
$WinDialogs/CreditsWin.show()
|
||||
|
|
|
@ -2,6 +2,19 @@
|
|||
# See the LICENSE file in the project root for more information.
|
||||
extends Control
|
||||
|
||||
func pause_zdressup(is_paused):
|
||||
if is_paused == true:
|
||||
get_tree().paused = true
|
||||
else:
|
||||
get_tree().paused = false
|
||||
|
||||
func _on_ExitBtn_pressed():
|
||||
pause_zdressup(false)
|
||||
get_tree().change_scene("res://StartScn.tscn")
|
||||
|
||||
func _on_SettingsBtn_pressed():
|
||||
$SettingsWin.show()
|
||||
|
||||
func _on_CreditsBtn_pressed():
|
||||
$CreditsWin.show()
|
||||
|
||||
|
@ -15,4 +28,8 @@ func _on_MusicBtn_toggled(button_pressed):
|
|||
if button_pressed == true:
|
||||
$Music.playing = true
|
||||
else:
|
||||
$Music.playing = false
|
||||
$Music.playing = false
|
||||
|
||||
func _on_ResumeBtn_pressed():
|
||||
$PauseWin.hide()
|
||||
pause_zdressup(false)
|
Loading…
Add table
Add a link
Reference in a new issue