Options button in pause menu
This commit is contained in:
7
README.md
Normal file
7
README.md
Normal file
@@ -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`
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
->choice
|
->choice
|
||||||
(case choice
|
(case choice
|
||||||
("Resume" (resume))
|
("Resume" (resume))
|
||||||
("Options" null) // TODO
|
("Options" (MenuState.optionsMenu ->(showPauseMenu resume)))
|
||||||
("Main Menu" (FlxG.switchState (new MenuState)))
|
("Main Menu" (FlxG.switchState (new MenuState)))
|
||||||
("Quit to Desktop" (Sys.exit 0))
|
("Quit to Desktop" (Sys.exit 0))
|
||||||
(never otherwise))))
|
(never otherwise))))
|
||||||
|
|||||||
Reference in New Issue
Block a user