Make bubble menu feedback immediate
This commit is contained in:
parent
8f8398cbcd
commit
3dbfd74b6c
6 changed files with 214 additions and 238 deletions
|
|
@ -3,7 +3,7 @@ extends Control
|
|||
|
||||
const INPUT_OWNER: StringName = &"game_menu"
|
||||
const PAUSE_DESKTOP_REFERENCE_SIZE: Vector2 = Vector2(1280.0, 720.0)
|
||||
const VISIBILITY_FADE_DURATION: float = 0.55
|
||||
const VISIBILITY_FADE_DURATION: float = 0.10
|
||||
const PlayerType = preload("res://player/player.gd")
|
||||
const SaveManagerType = preload("res://save/player_save_manager.gd")
|
||||
const SettingsManagerType = preload(
|
||||
|
|
@ -371,7 +371,7 @@ func _open_confirmation(
|
|||
|
||||
func _show_confirmation() -> void:
|
||||
_confirmation_page.transition_in(
|
||||
0.0,
|
||||
VISIBILITY_FADE_DURATION,
|
||||
_finish_confirmation_open
|
||||
)
|
||||
|
||||
|
|
@ -386,7 +386,7 @@ func _close_confirmation() -> void:
|
|||
_confirmation_action = ConfirmationAction.NONE
|
||||
_emit_transition_flurry()
|
||||
_confirmation_page.transition_out(
|
||||
0.0,
|
||||
VISIBILITY_FADE_DURATION,
|
||||
_finish_confirmation_cancel
|
||||
)
|
||||
|
||||
|
|
@ -548,7 +548,7 @@ func _finish_close(reason: CloseReason, restore_controls: bool) -> void:
|
|||
|
||||
|
||||
func _emit_transition_flurry() -> void:
|
||||
_transition_flurry.emit_flurry()
|
||||
_transition_flurry.clear_flurries()
|
||||
|
||||
|
||||
func _update_responsive_pause_stage() -> void:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue