rename consistency
This commit is contained in:
30
singleton/Pause.gd
Normal file
30
singleton/Pause.gd
Normal file
@@ -0,0 +1,30 @@
|
||||
class_name PauseSingleton extends Node
|
||||
|
||||
var cutscenePaused:bool = false
|
||||
|
||||
func cutscenePause() -> void:
|
||||
cutscenePaused = true
|
||||
|
||||
func cutsceneResume() -> void:
|
||||
cutscenePaused = false
|
||||
|
||||
func isMovementPaused() -> bool:
|
||||
if cutscenePaused:
|
||||
return true
|
||||
|
||||
if !UI.TEXTBOX.isClosed:
|
||||
return true
|
||||
|
||||
if UI.PAUSE.isOpen():
|
||||
return true
|
||||
|
||||
if OVERWORLD.isMapChanging():
|
||||
return true
|
||||
|
||||
return false
|
||||
|
||||
func menuPause() -> void:
|
||||
if UI.PAUSE.isOpen():
|
||||
UI.PAUSE.close()
|
||||
else:
|
||||
UI.PAUSE.open()
|
Reference in New Issue
Block a user