newFlxTextProp

This commit is contained in:
2023-08-17 16:56:21 -06:00
parent 77ea2c1f56
commit 5f42c0cfe2

View File

@@ -7,6 +7,10 @@
(method :Dynamic callPrivate [:Dynamic obj :String method &rest :Array<Dynamic> args]
(Reflect.callMethod obj (Reflect.field obj method) args))
(method newFlxTextProp [:String key :String text :Int size :FlxColor color &opt :String font]
(assert isLoading)
(newProp key (SpriteTools.textPlate text size 0 color FlxColor.TRANSPARENT null font)))
(method tween [:FlxTween tween]
(callPrivate FlxTween.globalManager "remove" tween false)
(tweens.push tween))