Updated TwitchUserInfo
Added signal for when we start expanding, and added it to the tween callback.
This commit is contained in:
parent
58e4207cd5
commit
6a384d3052
1 changed files with 2 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue