FeebackWindow in pause menu
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
# @install: lix --silent download "gh://github.com/kiss-lang/kiss-flixel#ffbf4a90ad79f11f1bf9b46b1df664fc1cb2901b" into kiss-flixel/0.0.0/github/ffbf4a90ad79f11f1bf9b46b1df664fc1cb2901b
|
# @install: lix --silent download "gh://github.com/kiss-lang/kiss-flixel#bcdc1124ee6a87bcdbcffe127be9632829caaae6" into kiss-flixel/0.0.0/github/bcdc1124ee6a87bcdbcffe127be9632829caaae6
|
||||||
-lib flixel
|
-lib flixel
|
||||||
-lib flixel-addons
|
-lib flixel-addons
|
||||||
-lib flixel-ui
|
-lib flixel-ui
|
||||||
@@ -6,5 +6,5 @@
|
|||||||
-lib kiss-tools
|
-lib kiss-tools
|
||||||
-lib lime
|
-lib lime
|
||||||
-lib openfl
|
-lib openfl
|
||||||
-cp ${HAXE_LIBCACHE}/kiss-flixel/0.0.0/github/ffbf4a90ad79f11f1bf9b46b1df664fc1cb2901b/src/
|
-cp ${HAXE_LIBCACHE}/kiss-flixel/0.0.0/github/bcdc1124ee6a87bcdbcffe127be9632829caaae6/src/
|
||||||
-D kiss-flixel=0.0.0
|
-D kiss-flixel=0.0.0
|
||||||
@@ -112,12 +112,13 @@
|
|||||||
(sh.registerItem "{escape} pause" ->cc (showPauseMenu cc) true)
|
(sh.registerItem "{escape} pause" ->cc (showPauseMenu cc) true)
|
||||||
(resume)
|
(resume)
|
||||||
} true)
|
} true)
|
||||||
(let [choices ["" "Resume" "Scene Selection" "Options" "Main Menu" "Quit to Desktop"]
|
(let [choices ["" "Resume" "Scene Selection" "Options" "Send Feedback" "Main Menu" "Quit to Desktop"]
|
||||||
sceneSelectionIndex (choices.indexOf "Scene Selection")
|
sceneSelectionIndex (choices.indexOf "Scene Selection")
|
||||||
optsIdx (choices.indexOf "Options")]
|
optsIdx (choices.indexOf "Options")
|
||||||
|
feedbackIdx (choices.indexOf "Send Feedback")]
|
||||||
// chooseString automatically sets pauseMenu
|
// chooseString automatically sets pauseMenu
|
||||||
(chooseString "PAUSED" choices
|
(chooseString "PAUSED" choices
|
||||||
->choice
|
->:Void choice
|
||||||
(case choice
|
(case choice
|
||||||
("Resume"
|
("Resume"
|
||||||
(sh.registerItem "{escape} pause" ->cc (showPauseMenu cc) true)
|
(sh.registerItem "{escape} pause" ->cc (showPauseMenu cc) true)
|
||||||
@@ -141,6 +142,19 @@
|
|||||||
(showPauseMenu resume)
|
(showPauseMenu resume)
|
||||||
(set pauseMenu.selectedIndex optsIdx)
|
(set pauseMenu.selectedIndex optsIdx)
|
||||||
}))
|
}))
|
||||||
|
("Send Feedback"
|
||||||
|
(sh.cancel)
|
||||||
|
(.enableGamepadInput
|
||||||
|
(kiss_flixel.FeedbackWindow.collectFeedback
|
||||||
|
->:Void {
|
||||||
|
(sh.start)
|
||||||
|
(showPauseMenu resume)
|
||||||
|
(set pauseMenu.selectedIndex feedbackIdx)
|
||||||
|
}
|
||||||
|
null
|
||||||
|
null
|
||||||
|
true
|
||||||
|
"escape") true))
|
||||||
("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)))))
|
||||||
@@ -455,7 +469,8 @@
|
|||||||
(FlxG.state.add loop)))
|
(FlxG.state.add loop)))
|
||||||
|
|
||||||
(method :Void hideTitleCard []
|
(method :Void hideTitleCard []
|
||||||
(FlxG.state.remove titleCard true))
|
(FlxG.state.remove titleCard true)
|
||||||
|
(set titleCard null))
|
||||||
|
|
||||||
// TODO these could be customizable to the Actor, wrylies, etc.
|
// TODO these could be customizable to the Actor, wrylies, etc.
|
||||||
(var DIALOG_BOX_COLOR FlxColor.BLACK)
|
(var DIALOG_BOX_COLOR FlxColor.BLACK)
|
||||||
|
|||||||
Reference in New Issue
Block a user