Updated TwitchUserInfo

Added signal for when we start expanding, and added it to the tween
callback.
This commit is contained in:
Mario Steele 2026-03-08 16:20:12 -05:00
parent 58e4207cd5
commit 6a384d3052

View file

@ -6,6 +6,7 @@ const CHEVRONS = [
]
@export var expanded: bool = false
signal extra_expanding(is_expanding: bool)
signal extra_expanded(is_expanded: bool)
var is_extra_panel_expanded: bool
@ -90,6 +91,7 @@ func toggle_extra_panel(val: bool) -> void:
tw_expand.kill()
%ExtraInfo.show()
tw_expand = create_tween()
tw_expand.tween_callback(extra_expanding.emit.bind(is_extra_panel_expanded))
tw_expand.set_ease(Tween.EASE_OUT)
tw_expand.set_trans(Tween.TRANS_CUBIC)
tw_expand.tween_property(%ExtraInfo, ^"custom_minimum_size:x", min_size_x, 0.3)