From 16119f6a8a40171ffe5dba46db423c192713b32d Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Wed, 12 Jan 2022 23:42:58 -0700 Subject: [PATCH] fix removing scene buttons --- .../hollywoo-flixel/src/hollywoo_flixel/HollywooFlixelDSL.kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/hollywoo-flixel/src/hollywoo_flixel/HollywooFlixelDSL.kiss b/projects/hollywoo-flixel/src/hollywoo_flixel/HollywooFlixelDSL.kiss index 744fb42b..01a5dd31 100644 --- a/projects/hollywoo-flixel/src/hollywoo_flixel/HollywooFlixelDSL.kiss +++ b/projects/hollywoo-flixel/src/hollywoo_flixel/HollywooFlixelDSL.kiss @@ -57,7 +57,7 @@ (localVar buttonsPerColumn 25) (doFor [num label] (enumerate (sort (collect (runners.keys)))) (let [runner (dictGet runners label) - b (new flixel.ui.FlxButton 0 buttonY label ->{(FlxG.state.remove buttons)(runner)})] + b (new flixel.ui.FlxButton 0 buttonY label ->{(.remove (cast (_currentScene) SceneFlxState) buttons)(runner)})] (let [column (Std.int (/ num buttonsPerColumn))] (set b.x (* b.width column))) (buttons.add b))