From 956f1c4a4e8d5fc6c42102bda87368e2d11a10d2 Mon Sep 17 00:00:00 2001 From: Nat Quayle Nelson Date: Thu, 6 Apr 2023 10:39:43 -0600 Subject: [PATCH] Options button in pause menu --- README.md | 7 +++++++ src/hollywoo_flixel/FlxDirector.kiss | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..35e138a --- /dev/null +++ b/README.md @@ -0,0 +1,7 @@ +# hollywoo-flixel + +## Gotchas + +### MenuState + +Your project must define and import a MenuState type! This must extend FlxState and provide static function `optionsMenu(onBack:Continuation):Void` \ No newline at end of file diff --git a/src/hollywoo_flixel/FlxDirector.kiss b/src/hollywoo_flixel/FlxDirector.kiss index 07d76e0..58931ff 100644 --- a/src/hollywoo_flixel/FlxDirector.kiss +++ b/src/hollywoo_flixel/FlxDirector.kiss @@ -57,7 +57,7 @@ ->choice (case choice ("Resume" (resume)) - ("Options" null) // TODO + ("Options" (MenuState.optionsMenu ->(showPauseMenu resume))) ("Main Menu" (FlxG.switchState (new MenuState))) ("Quit to Desktop" (Sys.exit 0)) (never otherwise))))