Initial Commit
Initial commit of Code Base.
This commit is contained in:
parent
293b1213e1
commit
c11a4ebbc2
653 changed files with 36893 additions and 1 deletions
17
addons/twitcher/editor/twitch_tweens.gd
Normal file
17
addons/twitcher/editor/twitch_tweens.gd
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
static func flash(object: Control, color: Color, duration: float = .25) -> void:
|
||||
var tween = object.create_tween()
|
||||
tween.tween_property(object, ^"modulate", color, duration)\
|
||||
.set_ease(Tween.EASE_OUT)\
|
||||
.set_trans(Tween.TRANS_CIRC)
|
||||
tween.tween_property(object, ^"modulate", Color.WHITE, duration)\
|
||||
.set_ease(Tween.EASE_OUT)\
|
||||
.set_trans(Tween.TRANS_CIRC)
|
||||
await tween.finished
|
||||
|
||||
|
||||
static func loading(object: Control, color: Color = Color.YELLOW) -> void:
|
||||
var tween: Tween = object.create_tween()
|
||||
tween.tween_property(object, ^"modulate", color, 0.2) \
|
||||
.set_trans(Tween.TRANS_LINEAR) \
|
||||
.set_ease(Tween.EASE_IN_OUT)
|
||||
await tween.finished
|
||||
Loading…
Add table
Add a link
Reference in a new issue