ArchiveUI showPrefixMap and hidePrefixMap

This commit is contained in:
2022-07-05 15:21:15 +00:00
parent 36d17b9cef
commit df334fc7a6
3 changed files with 17 additions and 6 deletions

View File

@@ -16,11 +16,6 @@
(set FlxG.sound.volumeDownKeys null)
(set FlxG.sound.volumeUpKeys null)
(set shortcutHandler.onSelectPrefixMap ->map {
(clearUI)
(doFor =>key thing map
(displayMessage "$key - $thing"))})
// TODO find a better way to pass the archiveDir to a HaxeFlixel game
(let [archiveDir
(or (Sys.getEnv "NAT_DIR") (throw "NAT_DIR environment variable must be set"))
@@ -101,6 +96,14 @@
(FlxG.camera.calculateScrollBounds entryGroup SCROLL_BOUND_MARGIN))
(method :Void showPrefixMap [:Map<String,ShortcutKey<Entry>> map]
(clearUI)
(doFor =>key thing map
(displayMessage "$key - $thing")))
(method :Void hidePrefixMap []
(clearUI))
(defAlias &ident sh (cast shortcutHandler FlxKeyShortcutHandler<Dynamic>))
(method &override :Void update [:Float elapsed]
(super.update elapsed)