mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-23 08:17:34 -04:00
onboarding mouse filter changes
This commit is contained in:
parent
3131b731e0
commit
ad3fddb4eb
6 changed files with 14 additions and 7 deletions
|
@ -3,7 +3,7 @@ class_name OnboardingBoard
|
|||
|
||||
signal request_focus
|
||||
|
||||
@export var focus_button: TextureButton
|
||||
@export var focus_button: Button
|
||||
@export var unfocus_color: Color
|
||||
@export var unfocus_scale: Vector2
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ extends Button
|
|||
|
||||
@export var content: Control
|
||||
@export var tween_duration: float
|
||||
@export var base_modulate: Color
|
||||
@export var normal_modulate: Color
|
||||
@export var hover_scale: float
|
||||
|
||||
var tween: Tween
|
||||
|
@ -31,4 +31,4 @@ func on_mouse_exited() -> void:
|
|||
|
||||
tween.set_trans(Tween.TRANS_QUAD).set_ease(Tween.EASE_OUT)
|
||||
tween.tween_property(content, "scale", Vector2.ONE, tween_duration)
|
||||
tween.tween_property(content, "modulate", base_modulate, tween_duration)
|
||||
tween.tween_property(content, "modulate", normal_modulate, tween_duration)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue