This commit is contained in:
4am 2018-03-27 16:55:31 -04:00
parent b2a6d076db
commit 4d629edff4
6 changed files with 16 additions and 15 deletions

View File

@ -19,10 +19,10 @@
!source "src/path.a"
!source "src/infoparser.a"
!source "src/prefs.a"
!source "src/action.a"
!source "src/uicommon.a"
!source "src/mainscreen.a"
!source "src/settingsdialog.a"
!source "src/ui.common.a"
!source "src/ui.main.a"
!source "src/ui.main.keys.a"
!source "src/ui.options.a"
!source "src/sound.a"
!source "src/launch.a"

View File

@ -1,7 +1,7 @@
;license:MIT
;(c) 2018 by 4am
;
; Global and per-game preferences
; Global preferences
;
; Public functions
; - LoadGlobalPreferences

View File

@ -1,7 +1,7 @@
;license:MIT
;(c) 2018 by 4am
;
; User interface - views and paint routines
; User interface - views and paint routines for main screen
;
; Public functions
; - CreateViews

View File

@ -1,12 +1,12 @@
;license:MIT
;(c) 2018 by 4am
;
; User interface - click/activation callbacks
; User interface - click/activation callbacks and key handlers for main screen
;
; Public functions
; - HandleKey
;
; (all callbacks are defined in view configuration blocks in paint.a
; (all callbacks are defined in view configuration blocks
; and triggered through UI actions or called from HandleKey)
;
@ -21,7 +21,14 @@ kArtworkRootDirectory ; length-prefixed pathname of DHGR box art
!byte 8
!raw "ARTWORK/"
; action keys for main screen (should correspond to button titles in paint.a)
; IDs of actions that do not correspond to WeeGUI view IDs have high bit set
ID_SCROLLUP = $81
ID_SCROLLDOWN = $82
ID_X = $83
ID_Y = $84
ID_Z = $85
; action keys for main screen (should correspond to button titles)
.keys
!byte $C7,ID_PLAY ; G
!byte $E7,ID_PLAY ; g
@ -38,12 +45,6 @@ kArtworkRootDirectory ; length-prefixed pathname of DHGR box art
!byte $CE,ID_NEXT ; N
!byte $EE,ID_NEXT ; n
!byte $95,ID_NEXT ; right arrow
; IDs of actions that do not correspond to WeeGUI view IDs have high bit set
ID_SCROLLUP = $81
ID_SCROLLDOWN = $82
ID_X = $83
ID_Y = $84
ID_Z = $85
!byte $8B,ID_SCROLLUP ; up arrow
!byte $8A,ID_SCROLLDOWN ; down arrow
!byte $D8,ID_X ; X