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))