From 261cd124a60135e783ffb536e64f26c2f5f0e359 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Mon, 14 Aug 2023 20:23:24 -0600 Subject: [PATCH] input icon --- haxe_libraries/hollywoo.hxml | 6 +++--- src/hollywoo_flixel/FlxDirector.kiss | 14 +++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/haxe_libraries/hollywoo.hxml b/haxe_libraries/hollywoo.hxml index f5198bc..d7add39 100644 --- a/haxe_libraries/hollywoo.hxml +++ b/haxe_libraries/hollywoo.hxml @@ -1,6 +1,6 @@ -# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#db816b54a79f3d06f1ddd36156172b2f7000168b" into hollywoo/0.0.0/github/db816b54a79f3d06f1ddd36156172b2f7000168b -# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/db816b54a79f3d06f1ddd36156172b2f7000168b" +# @install: lix --silent download "gh://github.com/kiss-lang/hollywoo#fe376ff590ce59ea9152e8aefcfafc89505a6470" into hollywoo/0.0.0/github/fe376ff590ce59ea9152e8aefcfafc89505a6470 +# @run: haxelib run-dir hollywoo "${HAXE_LIBCACHE}/hollywoo/0.0.0/github/fe376ff590ce59ea9152e8aefcfafc89505a6470" -lib kiss -lib kiss-tools --cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/db816b54a79f3d06f1ddd36156172b2f7000168b/src/ +-cp ${HAXE_LIBCACHE}/hollywoo/0.0.0/github/fe376ff590ce59ea9152e8aefcfafc89505a6470/src/ -D hollywoo=0.0.0 \ No newline at end of file diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index a1df617..d83e769 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -861,4 +861,16 @@ (tweenArgs.push (- text.y textY)) (tweenArgs.push scrollSpeed) (tweenArgs.push cc) - (Reflect.callMethod flxMovie (Reflect.field flxMovie "linearMotion") tweenArgs))))) \ No newline at end of file + (Reflect.callMethod flxMovie (Reflect.field flxMovie "linearMotion") tweenArgs))))) + +(prop &mut :FlxSprite inputIcon) + +(method :Void showInputIcon [] + (set inputIcon (SpriteTools.textPlate "[...]" DIALOG_SIZE SUPER_MARGIN null null applyFormat)) + (set inputIcon.cameras [flxMovie.uiCamera]) + (inputIcon.screenCenter) + (set inputIcon.y (- flxMovie.DIALOG_Y inputIcon.height)) + (FlxG.state.add inputIcon)) + +(method :Void hideInputIcon [] + (FlxG.state.remove inputIcon true)) \ No newline at end of file