mirror of
https://github.com/thornAvery/kep-hack.git
synced 2026-02-06 23:55:24 +13:00
menu wram variable names
This commit is contained in:
parent
bcfca2e267
commit
95b1660e59
8 changed files with 35 additions and 28 deletions
|
|
@ -2305,7 +2305,7 @@ DisplayBagMenu:
|
|||
ld a, [wCurrentMenuItem]
|
||||
ld [wcc2c], a
|
||||
ld a, $0
|
||||
ld [wcc37], a
|
||||
ld [wMenuWatchMovingOutOfBounds], a
|
||||
ld [wMenuItemToSwap], a
|
||||
jp c, DisplayBattleMenu ; go back to battle menu if an item was not selected
|
||||
|
||||
|
|
|
|||
|
|
@ -317,7 +317,7 @@ TradeCenter_SelectMon:
|
|||
ld [hli], a
|
||||
ld [hli], a
|
||||
ld [hl], a
|
||||
ld [wcc37], a
|
||||
ld [wMenuWatchMovingOutOfBounds], a
|
||||
ld [wCurrentMenuItem], a
|
||||
ld [wLastMenuItem], a
|
||||
ld [wMenuJoypadPollCount], a
|
||||
|
|
@ -326,7 +326,7 @@ TradeCenter_SelectMon:
|
|||
jp .playerMonMenu
|
||||
.enemyMonMenu
|
||||
xor a
|
||||
ld [wcc37], a
|
||||
ld [wMenuWatchMovingOutOfBounds], a
|
||||
inc a
|
||||
ld [wWhichTradeMonSelectionMenu], a
|
||||
ld a, D_DOWN | D_LEFT | A_BUTTON
|
||||
|
|
@ -390,7 +390,7 @@ TradeCenter_SelectMon:
|
|||
.playerMonMenu
|
||||
xor a ; player mon menu
|
||||
ld [wWhichTradeMonSelectionMenu], a
|
||||
ld [wcc37], a
|
||||
ld [wMenuWatchMovingOutOfBounds], a
|
||||
ld a, D_DOWN | D_RIGHT | A_BUTTON
|
||||
ld [wMenuWatchedKeys], a
|
||||
ld a, [wPartyCount]
|
||||
|
|
@ -682,7 +682,7 @@ TradeCenter_Trade:
|
|||
xor a
|
||||
ld [wSerialExchangeNybbleSendData + 1], a ; unnecessary
|
||||
ld [wSerialExchangeNybbleReceiveData], a
|
||||
ld [wcc37], a
|
||||
ld [wMenuWatchMovingOutOfBounds], a
|
||||
ld [wMenuJoypadPollCount], a
|
||||
hlCoord 0, 12
|
||||
ld b, 4
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ ShowPokedexMenu: ; 40000 (10:4000)
|
|||
xor a
|
||||
ld [hli],a ; top menu item X
|
||||
inc a
|
||||
ld [wcc37],a
|
||||
ld [wMenuWatchMovingOutOfBounds],a
|
||||
inc hl
|
||||
inc hl
|
||||
ld a,6
|
||||
|
|
@ -32,7 +32,7 @@ ShowPokedexMenu: ; 40000 (10:4000)
|
|||
jr c,.goToSideMenu ; if the player chose a pokemon from the list
|
||||
.exitPokedex
|
||||
xor a
|
||||
ld [wcc37],a
|
||||
ld [wMenuWatchMovingOutOfBounds],a
|
||||
ld [wCurrentMenuItem],a
|
||||
ld [wLastMenuItem],a
|
||||
ld [hJoy7],a
|
||||
|
|
@ -91,7 +91,7 @@ HandlePokedexSideMenu: ; 4006d (10:406d)
|
|||
ld [hli],a ; menu watched keys (A button and B button)
|
||||
xor a
|
||||
ld [hli],a ; old menu item ID
|
||||
ld [wcc37],a
|
||||
ld [wMenuWatchMovingOutOfBounds],a
|
||||
.handleMenuInput
|
||||
call HandleMenuInput
|
||||
bit 1,a ; was the B button pressed?
|
||||
|
|
|
|||
|
|
@ -421,7 +421,7 @@ Func_7393f: ; 7393f (1c:793f)
|
|||
ld a, $c
|
||||
ld [wTopMenuItemX], a
|
||||
xor a
|
||||
ld [wcc37], a
|
||||
ld [wMenuWatchMovingOutOfBounds], a
|
||||
ld a, [wd5a0]
|
||||
and $7f
|
||||
ld [wCurrentMenuItem], a
|
||||
|
|
|
|||
|
|
@ -78,7 +78,7 @@ MainSlotMachineLoop: ; 37395 (d:7395)
|
|||
xor a
|
||||
ld [wCurrentMenuItem], a
|
||||
ld [wLastMenuItem], a
|
||||
ld [wcc37], a
|
||||
ld [wMenuWatchMovingOutOfBounds], a
|
||||
ld hl, wTileMap + $ea
|
||||
ld b, $5
|
||||
ld c, $4
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue