mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
fix onboarding event
This commit is contained in:
parent
941e214499
commit
9598ec94f0
4 changed files with 16 additions and 6 deletions
|
@ -78,7 +78,7 @@ func refresh_mouse_position() -> void:
|
|||
Input.parse_input_event(event)
|
||||
|
||||
|
||||
#region Dragging
|
||||
# DRAGGING
|
||||
|
||||
func set_buttons_disabled(disabled: bool) -> void:
|
||||
close.disabled = disabled
|
||||
|
@ -163,5 +163,3 @@ func apply_drag(delta_x: float) -> void:
|
|||
new_x = drag_start_line_x + delta_from_start
|
||||
|
||||
line.position.x = new_x
|
||||
|
||||
#endregion Dragging
|
||||
|
|
|
@ -33,7 +33,7 @@ func try_show_onboarding() -> void:
|
|||
var is_shown = DataSaver.get_value(SECTION, KEY, false)
|
||||
if is_shown and not show_always: return
|
||||
|
||||
ui_events.onboarding_started_emit()
|
||||
ui_events.onboarding_requested_emit()
|
||||
|
||||
await get_tree().create_timer(INITIAL_DELAY).timeout
|
||||
show_onboarding()
|
||||
|
@ -47,6 +47,8 @@ func show_onboarding() -> void:
|
|||
if is_instance_valid(tween): tween.stop()
|
||||
tween = create_tween()
|
||||
tween.tween_property(root, "modulate", SHOWN, fade_in)
|
||||
|
||||
ui_events.onboarding_started_emit()
|
||||
|
||||
|
||||
func hide_onboarding() -> void:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue