diff --git a/src/hollywoo_flixel/FlxMovie.hx b/src/hollywoo_flixel/FlxMovie.hx index a09ac7a..1ad6841 100644 --- a/src/hollywoo_flixel/FlxMovie.hx +++ b/src/hollywoo_flixel/FlxMovie.hx @@ -33,6 +33,8 @@ enum FlxScreenPosition { * Model/controller of a Hollywoo-Flixel film, and main execution script */ class FlxMovie extends Movie { + // Think of HollywooFlixelDSL.kiss as the corresponding Kiss file for this class! + public function new(director:FlxDirector, ?voiceLinesAssetPath:String) { var voiceLinesJson = null; if (voiceLinesAssetPath != null) { diff --git a/src/hollywoo_flixel/HollywooFlixelDSL.kiss b/src/hollywoo_flixel/HollywooFlixelDSL.kiss index 5a09caa..e77c5e2 100644 --- a/src/hollywoo_flixel/HollywooFlixelDSL.kiss +++ b/src/hollywoo_flixel/HollywooFlixelDSL.kiss @@ -33,4 +33,16 @@ (method :Void update [:Float elapsed] (#when debug (when FlxG.keys.justPressed.N - (skipToNextLabel)))) \ No newline at end of file + (skipToNextLabel)) + (when FlxG.keys.justPressed.L + (showLabelSkipButtons)))) + +(method :Void showLabelSkipButtons [] + (let [runners (labelRunners) + buttons (new flixel.group.FlxGroup.FlxTypedGroup)] + (localVar &mut buttonY 0) + (doFor =>label runner runners + (let [b (new flixel.ui.FlxButton 0 buttonY label ->{(FlxG.state.remove buttons)(runner)})] + (buttons.add b)) + (+= buttonY 20)) + (FlxG.state.add buttons))) \ No newline at end of file