diff --git a/util/TweenChannel.gd b/util/TweenChannel.gd index da1471c..ad727c0 100644 --- a/util/TweenChannel.gd +++ b/util/TweenChannel.gd @@ -29,6 +29,18 @@ func _init( ) -> void: arbitration_mode = p_arbitration_mode +## Creates a TweenChannel which arbitrates by yielding. +static func make_yielding() -> TweenChannel: + return new(ArbitrationMode.YIELD) + +## Creates a TweenChannel which arbitrates by replacing. +static func make_replacing() -> TweenChannel: + return new(ArbitrationMode.REPLACE) + +## Creates a TweenChannel which arbitrates by ignoring. +static func make_ignoring() -> TweenChannel: + return new(ArbitrationMode.IGNORE) + ## Returns target.create_tween() if and when arbitration_mode allows. ## ## "If:" if arbitration_mode is IGNORE and there is a current tween,