mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
MenuDataHeader → MenuHeader, MenuData2 → MenuData (might complete issue #440)
This commit is contained in:
parent
8f2878c37e
commit
ead103d2c6
@ -1,4 +1,4 @@
|
||||
; MenuDataHeader flags
|
||||
; MenuHeader flags
|
||||
const_def
|
||||
shift_const MENU_RESTORE_TILES ; Will be set if MENU_BACKUP_TILES(_2) is set.
|
||||
shift_const MENU_UNUSED_1
|
||||
@ -9,7 +9,7 @@
|
||||
shift_const MENU_BACKUP_TILES
|
||||
shift_const MENU_BACKUP_TILES_2
|
||||
|
||||
; VerticalMenu/DoNthMenu/SetUpMenu/_2DMenu MenuDataHeader2 flags
|
||||
; VerticalMenu/DoNthMenu/SetUpMenu/_2DMenu MenuData flags
|
||||
; Per flag the comment specifies which menus actually implement it
|
||||
const_def
|
||||
shift_const STATICMENU_DISABLE_B ; VerticalMenu/_2DMenu
|
||||
@ -21,7 +21,7 @@
|
||||
shift_const STATICMENU_NO_TOP_SPACING ; VerticalMenu/_2DMenu
|
||||
shift_const STATICMENU_CURSOR ; VerticalMenu/_2DMenu
|
||||
|
||||
; ScrollingMenu MenuDataHeader2 flags
|
||||
; ScrollingMenu MenuData flags
|
||||
const_def
|
||||
shift_const SCROLLINGMENU_CALL_FUNCTION1_CANCEL
|
||||
shift_const SCROLLINGMENU_CALL_FUNCTION3_NO_SWITCH
|
||||
|
@ -267,7 +267,7 @@ NUM_FRUIT_TREES EQU const_value +- 1
|
||||
NUM_UNOWN_PUZZLES EQU const_value
|
||||
|
||||
; Special_DisplayUnownWords writebyte arguments
|
||||
; UnownWalls and MenuDataHeaders_UnownWalls indexes (see data/unown_walls.asm)
|
||||
; UnownWalls and MenuHeaders_UnownWalls indexes (see data/unown_walls.asm)
|
||||
const_def
|
||||
const UNOWNWORDS_ESCAPE ; 0
|
||||
const UNOWNWORDS_LIGHT ; 1
|
||||
|
@ -1,4 +1,4 @@
|
||||
RooftopSaleData1: ; 15aee
|
||||
RooftopSaleMart1: ; 15aee
|
||||
db 5
|
||||
dbw POKE_BALL, 150
|
||||
dbw GREAT_BALL, 500
|
||||
@ -7,7 +7,7 @@ RooftopSaleData1: ; 15aee
|
||||
dbw REVIVE, 1200
|
||||
db -1
|
||||
|
||||
RooftopSaleData2: ; 15aff
|
||||
RooftopSaleMart2: ; 15aff
|
||||
db 5
|
||||
dbw HYPER_POTION, 1000
|
||||
dbw FULL_RESTORE, 2000
|
||||
|
@ -1,4 +1,4 @@
|
||||
ChrisNameMenuDataHeader: ; 882b5
|
||||
ChrisNameMenuHeader: ; 882b5
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, 10, TEXTBOX_Y - 1
|
||||
dw .MaleNames
|
||||
@ -17,7 +17,7 @@ MalePlayerNameArray: ; 882c9
|
||||
db 2 ; displacement
|
||||
db " NAME @" ; title
|
||||
|
||||
KrisNameMenuDataHeader: ; 882e5
|
||||
KrisNameMenuHeader: ; 882e5
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, 10, TEXTBOX_Y - 1
|
||||
dw .FemaleNames
|
||||
|
@ -38,7 +38,7 @@ UnownWalls: ; 8aebc
|
||||
unownwall "H", "O", "-", "O", "H"
|
||||
; 8aed5
|
||||
|
||||
MenuDataHeaders_UnownWalls: ; 0x8aed5
|
||||
MenuHeaders_UnownWalls: ; 0x8aed5
|
||||
; UNOWNWORDS_ESCAPE
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 3, 4, 16, 9
|
||||
|
@ -165,7 +165,7 @@ Defined in [macros/scripts/events.asm](/macros/scripts/events.asm) and [engine/s
|
||||
|
||||
## `$4E`: `yesorno`
|
||||
|
||||
## `$4F`: <code>loadmenudata <i>data_pointer</i></code>
|
||||
## `$4F`: <code>loadmenuheader <i>menu_header</i></code>
|
||||
|
||||
## `$50`: `closewindow`
|
||||
|
||||
|
40
docs/menu.md
40
docs/menu.md
@ -19,13 +19,13 @@ This is the only menu that does scrolling. It doesn't draw any `TextBox` around
|
||||
Structure:
|
||||
|
||||
```asm
|
||||
.MenuDataHeader:
|
||||
.MenuHeader:
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 2, 4, SCREEN_WIDTH - 1, 13
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
|
||||
.MenuData2:
|
||||
.MenuData:
|
||||
db 0 ; flags
|
||||
db 5, 0 ; rows, columns
|
||||
db 1 ; horizontal spacing
|
||||
@ -35,7 +35,7 @@ Structure:
|
||||
dba Function3
|
||||
```
|
||||
|
||||
`wMenuData2Flags`:
|
||||
`wMenuDataFlags`:
|
||||
|
||||
```
|
||||
7: Select is functional
|
||||
@ -48,9 +48,9 @@ Structure:
|
||||
0: Call Function1 to display the cancel entry
|
||||
```
|
||||
|
||||
If the columns entry in `MenuDataHeader2` of a scrolling menu is 0, `Function2` isn't called either. It doesn't affect the position of the arrows.
|
||||
If the columns entry in `MenuData` of a scrolling menu is 0, `Function2` isn't called either. It doesn't affect the position of the arrows.
|
||||
|
||||
Call state for functions in `MenuDataHeader2` of `ScrollingMenu`:
|
||||
Call state for functions in `MenuData` of `ScrollingMenu`:
|
||||
|
||||
```
|
||||
All of them:
|
||||
@ -68,7 +68,7 @@ Function3: Called to display anything else, whenever the cursor is moved.
|
||||
|
||||
There is no register of importance that should be preserved in any of these functions.
|
||||
|
||||
The `; horizontal spacing` item in each `MenuData2` is a misnomer. It changes how the `Items` struct looks.
|
||||
The `; horizontal spacing` item in each `MenuData` is a misnomer. It changes how the `Items` struct looks.
|
||||
|
||||
If it's 1:
|
||||
|
||||
@ -99,14 +99,14 @@ This, like is implied by the name, is a 2-dimensional menu, where you can move y
|
||||
Structure:
|
||||
|
||||
```asm
|
||||
.MenuDataHeader:
|
||||
.MenuHeader:
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
db 12, 08 ; start coords
|
||||
db 17, 19 ; end coords
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
|
||||
.MenuData2:
|
||||
.MenuData:
|
||||
db STATICMENU_CURSOR ; flags
|
||||
dn 2, 2 ; rows, columns
|
||||
db 6 ; spacing
|
||||
@ -114,7 +114,7 @@ Structure:
|
||||
dba Function
|
||||
```
|
||||
|
||||
`wMenuData2Flags`:
|
||||
`wMenuDataFlags`:
|
||||
|
||||
```
|
||||
7: Leave one tile of spacing between the left textbox border and the text, enabling the cursor.
|
||||
@ -141,13 +141,13 @@ These are like the regular `VerticalMenu`, except they allow for creating slight
|
||||
Structure:
|
||||
|
||||
```
|
||||
.MenuDataHeader:
|
||||
.MenuHeader:
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, 10, 7
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
|
||||
.MenuData2:
|
||||
.MenuData:
|
||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||
db 0 ; items
|
||||
dw Items
|
||||
@ -155,7 +155,7 @@ Structure:
|
||||
dw StringPointers
|
||||
```
|
||||
|
||||
`wMenuData2Flags`:
|
||||
`wMenuDataFlags`:
|
||||
|
||||
```
|
||||
7: Unused
|
||||
@ -219,20 +219,20 @@ This is the simplest menu. Like, the most boring. Nothing special. Just normal.
|
||||
Structure:
|
||||
|
||||
```asm
|
||||
.MenuDataHeader:
|
||||
.MenuHeader:
|
||||
db MENU_SPRITE_ANIMS | MENU_BACKUP_TILES ; flags
|
||||
menu_coords 12, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
|
||||
.MenuData2:
|
||||
.MenuData:
|
||||
db STATICMENU_CURSOR ; flags
|
||||
db 2 ; # items
|
||||
db "GIVE@"
|
||||
db "TAKE@"
|
||||
```
|
||||
|
||||
`wMenuData2Flags`:
|
||||
`wMenuDataFlags`:
|
||||
|
||||
```
|
||||
7: Leave one tile of spacing between the left textbox border and the text
|
||||
@ -259,7 +259,7 @@ This is used in the menu for selecting the character's name.
|
||||
|
||||
## Misc/Generic
|
||||
|
||||
`MenuDataHeader` flags (`wMenuFlags`):
|
||||
`MenuHeader` flags (`wMenuFlags`):
|
||||
|
||||
```
|
||||
7: Save a backup of the tiles
|
||||
|
@ -2781,7 +2781,7 @@ AskUseNextPokemon: ; 3d1f8
|
||||
|
||||
ForcePlayerMonChoice: ; 3d227
|
||||
call EmptyBattleTextBox
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call SetUpBattlePartyMenu_NoLoop
|
||||
call ForcePickPartyMonInBattle
|
||||
ld a, [wLinkMode]
|
||||
@ -3300,7 +3300,7 @@ ResetEnemyBattleVars: ; 3d557
|
||||
ld a, 8
|
||||
call SlideBattlePicOut
|
||||
call EmptyBattleTextBox
|
||||
jp LoadStandardMenuDataHeader
|
||||
jp LoadStandardMenuHeader
|
||||
; 3d57a
|
||||
|
||||
ResetBattleParticipants: ; 3d57a
|
||||
@ -5107,7 +5107,7 @@ BattleMenu_Pack: ; 3e1c7
|
||||
and a
|
||||
jp nz, .ItemsCantBeUsed
|
||||
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
|
||||
ld a, [BattleType]
|
||||
cp BATTLETYPE_TUTORIAL
|
||||
@ -5202,10 +5202,10 @@ BattleMenu_Pack: ; 3e1c7
|
||||
; 3e28d
|
||||
|
||||
BattleMenu_PKMN: ; 3e28d
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
BattleMenuPKMN_ReturnFromStats:
|
||||
call ExitMenu
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call ClearBGPalettes
|
||||
BattleMenuPKMN_Loop:
|
||||
call SetUpBattlePartyMenu
|
||||
@ -5345,7 +5345,7 @@ PlayerSwitch: ; 3e3ad
|
||||
ld a, [wLinkMode]
|
||||
and a
|
||||
jr z, .not_linked
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call LinkBattleSendReceiveAction
|
||||
call CloseWindow
|
||||
|
||||
|
@ -8973,7 +8973,7 @@ BattleCommand_BatonPass: ; 379c9
|
||||
call DelayFrames
|
||||
|
||||
; Transition into switchmon menu
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
farcall SetUpBattlePartyMenu_NoLoop
|
||||
|
||||
farcall ForcePickSwitchMonInBattle
|
||||
@ -9048,7 +9048,7 @@ BatonPass_LinkPlayerSwitch: ; 37a67
|
||||
ld a, 1
|
||||
ld [wPlayerAction], a
|
||||
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
ld hl, LinkBattleSendReceiveAction
|
||||
call CallBattleCore
|
||||
call CloseWindow
|
||||
@ -9065,7 +9065,7 @@ BatonPass_LinkEnemySwitch: ; 37a82
|
||||
and a
|
||||
ret z
|
||||
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
ld hl, LinkBattleSendReceiveAction
|
||||
call CallBattleCore
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
LoadBattleMenu: ; 24ef2
|
||||
ld hl, BattleMenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, BattleMenuHeader
|
||||
call LoadMenuHeader
|
||||
ld a, [wBattleMenuCursorBuffer]
|
||||
ld [wMenuCursorBuffer], a
|
||||
call InterpretBattleMenu
|
||||
@ -12,14 +12,14 @@ LoadBattleMenu: ; 24ef2
|
||||
|
||||
SafariBattleMenu: ; 24f0b
|
||||
; untranslated
|
||||
ld hl, MenuDataHeader_0x24f4e
|
||||
call LoadMenuDataHeader
|
||||
ld hl, MenuHeader_0x24f4e
|
||||
call LoadMenuHeader
|
||||
jr Function24f19
|
||||
; 24f13
|
||||
|
||||
ContestBattleMenu: ; 24f13
|
||||
ld hl, MenuDataHeader_0x24f89
|
||||
call LoadMenuDataHeader
|
||||
ld hl, MenuHeader_0x24f89
|
||||
call LoadMenuHeader
|
||||
; 24f19
|
||||
|
||||
Function24f19: ; 24f19
|
||||
@ -32,7 +32,7 @@ Function24f19: ; 24f19
|
||||
ret
|
||||
; 24f2c
|
||||
|
||||
BattleMenuDataHeader: ; 24f2c
|
||||
BattleMenuHeader: ; 24f2c
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 8, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw MenuData_0x24f34
|
||||
@ -54,7 +54,7 @@ Strings24f3d: ; 0x24f3d
|
||||
db "RUN@"
|
||||
; 24f4e
|
||||
|
||||
MenuDataHeader_0x24f4e: ; 24f4e
|
||||
MenuHeader_0x24f4e: ; 24f4e
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw MenuData_0x24f56
|
||||
@ -84,7 +84,7 @@ Function24f7c: ; 24f7c
|
||||
ret
|
||||
; 24f89
|
||||
|
||||
MenuDataHeader_0x24f89: ; 24f89
|
||||
MenuHeader_0x24f89: ; 24f89
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 2, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw MenuData_0x24f91
|
||||
|
@ -14,6 +14,6 @@ _ReturnToBattle_UseBall: ; 2715c
|
||||
farcall _LoadBattleFontsHPBar
|
||||
call GetMemSGBLayout
|
||||
call CloseWindow
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call WaitBGMap
|
||||
jp SetPalettes
|
||||
|
@ -128,8 +128,8 @@ _DepositPKMN: ; e2391 (38:6391)
|
||||
ret
|
||||
|
||||
.Submenu: ; e247d (38:647d)
|
||||
ld hl, BillsPCDepositMenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, BillsPCDepositMenuHeader
|
||||
call CopyMenuHeader
|
||||
ld a, [wMenuCursorY]
|
||||
call StoreTo_wMenuCursorBuffer
|
||||
call VerticalMenu
|
||||
@ -172,7 +172,7 @@ BillsPCDepositFuncDeposit: ; e24a9 (38:64a9)
|
||||
ret
|
||||
|
||||
BillsPCDepositFuncStats: ; e24c8 (38:64c8)
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call BillsPC_StatsScreen
|
||||
call ExitMenu
|
||||
call PCMonInfo
|
||||
@ -191,7 +191,7 @@ BillsPCDepositFuncRelease: ; e24e0 (38:64e0)
|
||||
push af
|
||||
ld de, PCString_ReleasePKMN
|
||||
call BillsPC_PlaceString
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
lb bc, 14, 11
|
||||
call PlaceYesNoBox
|
||||
ld a, [wMenuCursorY]
|
||||
@ -228,14 +228,14 @@ BillsPCDepositFuncCancel: ; e2537 (38:6537)
|
||||
ret
|
||||
; e253d (38:653d)
|
||||
|
||||
BillsPCDepositMenuDataHeader: ; 0xe253d (38:653d)
|
||||
BillsPCDepositMenuHeader: ; 0xe253d (38:653d)
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
; 0xe2545
|
||||
|
||||
.MenuData2: ; 0xe2545 (38:6545)
|
||||
.MenuData: ; 0xe2545 (38:6545)
|
||||
db STATICMENU_CURSOR ; flags
|
||||
db 4 ; items
|
||||
db "DEPOSIT@"
|
||||
@ -391,8 +391,8 @@ _WithdrawPKMN: ; e2583 (38:6583)
|
||||
ret
|
||||
|
||||
BillsPC_Withdraw: ; e2675 (38:6675)
|
||||
ld hl, .MenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call CopyMenuHeader
|
||||
ld a, [wMenuCursorY]
|
||||
call StoreTo_wMenuCursorBuffer
|
||||
call VerticalMenu
|
||||
@ -434,7 +434,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
||||
ret
|
||||
|
||||
.stats ; e26c0 (38:66c0)
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call BillsPC_StatsScreen
|
||||
call ExitMenu
|
||||
call PCMonInfo
|
||||
@ -451,7 +451,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
||||
jr c, .FailedRelease
|
||||
ld de, PCString_ReleasePKMN
|
||||
call BillsPC_PlaceString
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
lb bc, 14, 11
|
||||
call PlaceYesNoBox
|
||||
ld a, [wMenuCursorY]
|
||||
@ -487,7 +487,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
||||
ret
|
||||
; e2731 (38:6731)
|
||||
|
||||
.MenuDataHeader: ; 0xe2731
|
||||
.MenuHeader: ; 0xe2731
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
||||
dw .MenuData
|
||||
@ -652,8 +652,8 @@ _MovePKMNWithoutMail: ; e2759
|
||||
; e285d
|
||||
|
||||
.MoveMonWOMailSubmenu: ; e285d
|
||||
ld hl, .MenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call CopyMenuHeader
|
||||
ld a, [wMenuCursorY]
|
||||
call StoreTo_wMenuCursorBuffer
|
||||
call VerticalMenu
|
||||
@ -693,7 +693,7 @@ _MovePKMNWithoutMail: ; e2759
|
||||
; e28a5
|
||||
|
||||
.Stats: ; e28a5
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call BillsPC_StatsScreen
|
||||
call ExitMenu
|
||||
call PCMonInfo
|
||||
@ -710,14 +710,14 @@ _MovePKMNWithoutMail: ; e2759
|
||||
ret
|
||||
; e28c3
|
||||
|
||||
.MenuDataHeader: ; 0xe28c3
|
||||
.MenuHeader: ; 0xe28c3
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
; 0xe28cb
|
||||
|
||||
.MenuData2: ; 0xe28cb
|
||||
.MenuData: ; 0xe28cb
|
||||
db STATICMENU_CURSOR ; flags
|
||||
db 3 ; items
|
||||
db "MOVE@"
|
||||
@ -2293,15 +2293,15 @@ PCString_NoReleasingEGGS: db "No releasing EGGS!@"
|
||||
|
||||
|
||||
_ChangeBox: ; e35aa (38:75aa)
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call BillsPC_ClearTilemap
|
||||
.loop
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call BillsPC_PrintBoxName
|
||||
call BillsPC_PlaceChooseABoxString
|
||||
ld hl, _ChangeBox_menudataheader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, _ChangeBox_MenuHeader
|
||||
call CopyMenuHeader
|
||||
xor a
|
||||
ld [wMenuScrollPosition], a
|
||||
hlcoord 0, 4
|
||||
@ -2328,14 +2328,14 @@ BillsPC_ClearTilemap: ; e35e2 (38:75e2)
|
||||
ret
|
||||
; e35f1 (38:75f1)
|
||||
|
||||
_ChangeBox_menudataheader: ; 0xe35f1
|
||||
_ChangeBox_MenuHeader: ; 0xe35f1
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 1, 5, 9, 12
|
||||
dw .menudata2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
; 0xe35f9
|
||||
|
||||
.menudata2 ; 0xe35f9
|
||||
.MenuData ; 0xe35f9
|
||||
db MENU_UNUSED_1 | MENU_UNUSED_3 ; flags
|
||||
db 4, 0
|
||||
db 1
|
||||
@ -2487,8 +2487,8 @@ BillsPC_PrintBoxName: ; e36cf (38:76cf)
|
||||
; e36f9
|
||||
|
||||
BillsPC_ChangeBoxSubmenu: ; e36f9 (38:76f9)
|
||||
ld hl, .MenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call LoadMenuHeader
|
||||
call VerticalMenu
|
||||
call ExitMenu
|
||||
ret c
|
||||
@ -2556,14 +2556,14 @@ BillsPC_ChangeBoxSubmenu: ; e36f9 (38:76f9)
|
||||
|
||||
hlcoord 11, 7 ; unused
|
||||
|
||||
.MenuDataHeader: ; 0xe377b
|
||||
.MenuHeader: ; 0xe377b
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 11, 4, SCREEN_WIDTH - 1, 13
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
; 0xe3783
|
||||
|
||||
.MenuData2: ; 0xe3783
|
||||
.MenuData: ; 0xe3783
|
||||
db STATICMENU_CURSOR ; flags
|
||||
db 4 ; items
|
||||
db "SWITCH@"
|
||||
|
@ -22,7 +22,7 @@ _BillsPC: ; e3fd
|
||||
.LogIn: ; e41c (3:641c)
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call ClearPCItemScreen
|
||||
ld hl, Options
|
||||
ld a, [hl]
|
||||
@ -45,8 +45,8 @@ _BillsPC: ; e3fd
|
||||
ret
|
||||
|
||||
.UseBillsPC: ; e443 (3:6443)
|
||||
ld hl, .MenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call LoadMenuHeader
|
||||
ld a, $1
|
||||
.loop
|
||||
ld [wMenuCursorBuffer], a
|
||||
@ -68,13 +68,13 @@ _BillsPC: ; e3fd
|
||||
call CloseWindow
|
||||
ret
|
||||
|
||||
.MenuDataHeader: ; 0xe46f
|
||||
.MenuHeader: ; 0xe46f
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
|
||||
.MenuData2: ; 0xe477
|
||||
.MenuData: ; 0xe477
|
||||
db STATICMENU_CURSOR ; flags
|
||||
db 0 ; items
|
||||
dw .items
|
||||
@ -109,7 +109,7 @@ BillsPC_SeeYa: ; e4cb
|
||||
ret
|
||||
|
||||
BillsPC_MovePKMNMenu: ; e4cd
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
farcall IsAnyMonHoldingMail
|
||||
jr nc, .no_mail
|
||||
ld hl, .Text_MonHoldingMail
|
||||
@ -134,7 +134,7 @@ BillsPC_MovePKMNMenu: ; e4cd
|
||||
db "@"
|
||||
|
||||
BillsPC_DepositMenu: ; e4fe (3:64fe)
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
farcall _DepositPKMN
|
||||
call ReturnToMapFromSubmenu
|
||||
call ClearPCItemScreen
|
||||
@ -203,7 +203,7 @@ CheckCurPartyMonFainted: ; e538
|
||||
ret
|
||||
|
||||
BillsPC_WithdrawMenu: ; e559 (3:6559)
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
farcall _WithdrawPKMN
|
||||
call ReturnToMapFromSubmenu
|
||||
call ClearPCItemScreen
|
||||
|
@ -202,7 +202,7 @@ DoEggStep:: ; 16f3e
|
||||
|
||||
OverworldHatchEgg:: ; 16f5e
|
||||
call RefreshScreen
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call HatchEggs
|
||||
call ExitAllMenus
|
||||
call RestartMapMusic
|
||||
|
@ -1,6 +1,6 @@
|
||||
SelectQuantityToToss: ; 24fbf
|
||||
ld hl, TossItem_MenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, TossItem_MenuHeader
|
||||
call LoadMenuHeader
|
||||
call Toss_Sell_Loop
|
||||
ret
|
||||
; 24fc9
|
||||
@ -12,8 +12,8 @@ RooftopSale_SelectQuantityToBuy: ; 24fcf
|
||||
ld [Buffer1], a
|
||||
ld a, e
|
||||
ld [Buffer2], a
|
||||
ld hl, BuyItem_MenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, BuyItem_MenuHeader
|
||||
call LoadMenuHeader
|
||||
call Toss_Sell_Loop
|
||||
ret
|
||||
; 24fe1
|
||||
@ -24,8 +24,8 @@ SelectQuantityToSell: ; 24fe1
|
||||
ld [Buffer1], a
|
||||
ld a, e
|
||||
ld [Buffer2], a
|
||||
ld hl, SellItem_MenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, SellItem_MenuHeader
|
||||
call LoadMenuHeader
|
||||
call Toss_Sell_Loop
|
||||
ret
|
||||
; 24ff9
|
||||
@ -138,9 +138,9 @@ BuySellToss_UpdateQuantityDisplay: ; 25072
|
||||
ld de, wItemQuantityChangeBuffer
|
||||
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
||||
call PrintNum
|
||||
ld a, [wMenuData2Pointer]
|
||||
ld a, [wMenuDataPointer]
|
||||
ld e, a
|
||||
ld a, [wMenuData2Pointer + 1]
|
||||
ld a, [wMenuDataPointer + 1]
|
||||
ld d, a
|
||||
ld a, [wMenuDataBank]
|
||||
call FarCall_de
|
||||
@ -213,21 +213,21 @@ BuySell_DisplaySubtotal: ; 250d1
|
||||
ret
|
||||
; 250ed
|
||||
|
||||
TossItem_MenuDataHeader: ; 0x250ed
|
||||
TossItem_MenuHeader: ; 0x250ed
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 15, 9, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||
dw ret_25097
|
||||
db 0 ; default option
|
||||
; 0x250f5
|
||||
|
||||
BuyItem_MenuDataHeader: ; 0x250f5
|
||||
BuyItem_MenuHeader: ; 0x250f5
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 7, 15, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw DisplayPurchasePrice
|
||||
db -1 ; default option
|
||||
; 0x250fd
|
||||
|
||||
SellItem_MenuDataHeader: ; 0x250fd
|
||||
SellItem_MenuHeader: ; 0x250fd
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 7, 15, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw DisplaySellingPrice
|
||||
|
@ -38,7 +38,7 @@ RestartClock: ; 20021 (8:4021)
|
||||
ld a, [hl]
|
||||
push af
|
||||
set NO_TEXT_SCROLL, [hl]
|
||||
call LoadStandardMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
call ClearTileMap
|
||||
ld hl, .Text_SetWithControlPad
|
||||
call PrintText
|
||||
|
@ -8,8 +8,8 @@ InitDecorations: ; 26751 (9:6751)
|
||||
_PlayerDecorationMenu: ; 0x2675c
|
||||
ld a, [wWhichIndexSet]
|
||||
push af
|
||||
ld hl, .MenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call LoadMenuHeader
|
||||
xor a
|
||||
ld [Buffer5], a
|
||||
ld a, $1
|
||||
@ -36,14 +36,14 @@ _PlayerDecorationMenu: ; 0x2675c
|
||||
ret
|
||||
; 0x2679a
|
||||
|
||||
.MenuDataHeader: ; 0x2679a
|
||||
.MenuHeader: ; 0x2679a
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 5, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
; 0x267a2
|
||||
|
||||
.MenuData2: ; 0x267a2
|
||||
.MenuData: ; 0x267a2
|
||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||
db 0 ; items
|
||||
dw wd002
|
||||
@ -374,8 +374,8 @@ PopulateDecoCategoryMenu: ; 2695b
|
||||
jr nc, .beyond_eight
|
||||
xor a
|
||||
ld [wWhichIndexSet], a
|
||||
ld hl, .NonscrollingMenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, .NonscrollingMenuHeader
|
||||
call LoadMenuHeader
|
||||
call DoNthMenu
|
||||
jr c, .no_action_1
|
||||
call DoDecorationAction2
|
||||
@ -391,9 +391,9 @@ PopulateDecoCategoryMenu: ; 2695b
|
||||
ld d, 0
|
||||
add hl, de
|
||||
ld [hl], -1
|
||||
call LoadStandardMenuDataHeader
|
||||
ld hl, .ScrollingMenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
call LoadStandardMenuHeader
|
||||
ld hl, .ScrollingMenuHeader
|
||||
call CopyMenuHeader
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
call InitScrollingMenu
|
||||
@ -421,14 +421,14 @@ PopulateDecoCategoryMenu: ; 2695b
|
||||
db "@"
|
||||
; 0x269b5
|
||||
|
||||
.NonscrollingMenuDataHeader: ; 0x269b5
|
||||
.NonscrollingMenuHeader: ; 0x269b5
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||
dw .NonscrollingMenuData2
|
||||
dw .NonscrollingMenuData
|
||||
db 1 ; default option
|
||||
; 0x269bd
|
||||
|
||||
.NonscrollingMenuData2: ; 0x269bd
|
||||
.NonscrollingMenuData: ; 0x269bd
|
||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||
db 0 ; items
|
||||
dw wd002
|
||||
@ -436,14 +436,14 @@ PopulateDecoCategoryMenu: ; 2695b
|
||||
dw DecorationAttributes
|
||||
; 0x269c5
|
||||
|
||||
.ScrollingMenuDataHeader: ; 0x269c5
|
||||
.ScrollingMenuHeader: ; 0x269c5
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 1, 1, SCREEN_WIDTH - 2, SCREEN_HEIGHT - 2
|
||||
dw .ScrollingMenuData2
|
||||
dw .ScrollingMenuData
|
||||
db 1 ; default option
|
||||
; 0x269cd
|
||||
|
||||
.ScrollingMenuData2: ; 0x269cd
|
||||
.ScrollingMenuData: ; 0x269cd
|
||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||
db 8, 0 ; rows, columns
|
||||
db 1 ; horizontal spacing
|
||||
@ -912,10 +912,10 @@ DecoText_WhichSide: ; 0x26e6b
|
||||
|
||||
DecoAction_AskWhichSide: ; 26e70
|
||||
call MenuTextBox
|
||||
ld hl, MenuDataHeader_0x26eab
|
||||
ld hl, MenuHeader_0x26eab
|
||||
call GetMenu2
|
||||
call ExitMenu
|
||||
call CopyMenuData2
|
||||
call CopyMenuData
|
||||
jr c, .nope
|
||||
ld a, [wMenuCursorY]
|
||||
cp 3
|
||||
@ -947,14 +947,14 @@ QueryWhichSide: ; 26e9a
|
||||
ret
|
||||
; 26eab
|
||||
|
||||
MenuDataHeader_0x26eab: ; 0x26eab
|
||||
MenuHeader_0x26eab: ; 0x26eab
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, 13, 7
|
||||
dw MenuData2_0x26eb3
|
||||
dw MenuData_0x26eb3
|
||||
db 1 ; default option
|
||||
; 0x26eb3
|
||||
|
||||
MenuData2_0x26eb3: ; 0x26eb3
|
||||
MenuData_0x26eb3: ; 0x26eb3
|
||||
db STATICMENU_CURSOR ; flags
|
||||
db 3 ; items
|
||||
db "RIGHT SIDE@"
|
||||
|
@ -8,8 +8,8 @@ _ResetClock: ; 4d3b1
|
||||
call PlayMusic
|
||||
ld hl, .text_askreset
|
||||
call PrintText
|
||||
ld hl, .NoYes_MenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, .NoYes_MenuHeader
|
||||
call CopyMenuHeader
|
||||
call VerticalMenu
|
||||
ret c
|
||||
ld a, [wMenuCursorY]
|
||||
@ -46,13 +46,13 @@ _ResetClock: ; 4d3b1
|
||||
text_jump UnknownText_0x1c561c
|
||||
db "@"
|
||||
|
||||
.NoYes_MenuDataHeader: ; 0x4d40d
|
||||
.NoYes_MenuHeader: ; 0x4d40d
|
||||
db 0 ; flags
|
||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||
dw .NoYes_MenuData2
|
||||
dw .NoYes_MenuData
|
||||
db 1 ; default option
|
||||
|
||||
.NoYes_MenuData2: ; 0x4d415
|
||||
.NoYes_MenuData: ; 0x4d415
|
||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||
db 2 ; items
|
||||
db "NO@"
|
||||
@ -268,8 +268,8 @@ _DeleteSaveData: ; 4d54c
|
||||
call PlayMusic
|
||||
ld hl, .Text_ClearAllSaveData
|
||||
call PrintText
|
||||
ld hl, .NoYesMenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, .NoYesMenuHeader
|
||||
call CopyMenuHeader
|
||||
call VerticalMenu
|
||||
ret c
|
||||
ld a, [wMenuCursorY]
|
||||
@ -283,13 +283,13 @@ _DeleteSaveData: ; 4d54c
|
||||
text_jump UnknownText_0x1c564a
|
||||
db "@"
|
||||
|
||||
.NoYesMenuDataHeader: ; 0x4d585
|
||||
.NoYesMenuHeader: ; 0x4d585
|
||||
db 0 ; flags
|
||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
|
||||
.MenuData2: ; 0x4d58d
|
||||
.MenuData: ; 0x4d58d
|
||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||
db 2 ; items
|
||||
db "NO@"
|
||||
|
@ -1,8 +1,8 @@
|
||||
Special_BuenasPassword: ; 8af6b
|
||||
xor a
|
||||
ld [wWhichIndexSet], a
|
||||
ld hl, .MenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call CopyMenuHeader
|
||||
ld a, [wBuenasPassword]
|
||||
ld c, a
|
||||
farcall GetBuenasPassword
|
||||
@ -28,16 +28,16 @@ Special_BuenasPassword: ; 8af6b
|
||||
ret
|
||||
; 8afa9
|
||||
|
||||
.MenuDataHeader: ; 0x8afa9
|
||||
.MenuHeader: ; 0x8afa9
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, 10, 7
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
; 0x8afb1
|
||||
|
||||
db 0
|
||||
|
||||
.MenuData2: ; 0x8afb2
|
||||
.MenuData: ; 0x8afb2
|
||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||
db 0 ; items
|
||||
dw .PasswordIndices
|
||||
@ -187,8 +187,8 @@ Special_BuenaPrize: ; 8afd4
|
||||
; 0x8b090
|
||||
|
||||
Buena_DisplayBlueCardBalance: ; 8b090
|
||||
ld hl, BlueCardBalanceMenuDataHeader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, BlueCardBalanceMenuHeader
|
||||
call LoadMenuHeader
|
||||
ret
|
||||
; 8b097
|
||||
|
||||
@ -202,8 +202,8 @@ PrintBlueCardBalance: ; 8b097
|
||||
push de
|
||||
xor a
|
||||
ld [hBGMapMode], a
|
||||
ld hl, BlueCardBalanceMenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, BlueCardBalanceMenuHeader
|
||||
call CopyMenuHeader
|
||||
call MenuBox
|
||||
call UpdateSprites
|
||||
call MenuBoxCoord2Tile
|
||||
@ -227,25 +227,25 @@ PrintBlueCardBalance: ; 8b097
|
||||
db "Points@"
|
||||
; 8b0d1
|
||||
|
||||
BlueCardBalanceMenuDataHeader: ; 0x8b0d1
|
||||
BlueCardBalanceMenuHeader: ; 0x8b0d1
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 11, 11, 13
|
||||
; 8b0d6
|
||||
|
||||
Buena_PlacePrizeMenuBox: ; 8b0d6
|
||||
ld hl, .menudataheader
|
||||
call LoadMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call LoadMenuHeader
|
||||
ret
|
||||
; 8b0dd
|
||||
|
||||
.menudataheader ; 0x8b0dd
|
||||
.MenuHeader ; 0x8b0dd
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 0, 0, 17, TEXTBOX_Y - 1
|
||||
; 8b0e2
|
||||
|
||||
Buena_PrizeMenu: ; 8b0e2
|
||||
ld hl, .MenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, .MenuHeader
|
||||
call CopyMenuHeader
|
||||
ld a, [MenuSelection]
|
||||
ld [wMenuCursorBuffer], a
|
||||
xor a
|
||||
@ -270,16 +270,16 @@ Buena_PrizeMenu: ; 8b0e2
|
||||
ret
|
||||
; 8b113
|
||||
|
||||
.MenuDataHeader: ; 0x8b113
|
||||
.MenuHeader: ; 0x8b113
|
||||
db MENU_BACKUP_TILES ; flags
|
||||
menu_coords 1, 1, 16, 9
|
||||
dw .MenuData2
|
||||
dw .MenuData
|
||||
db 1 ; default option
|
||||
; 0x8b11b
|
||||
|
||||
db 0
|
||||
|
||||
.MenuData2: ; 0x8b11c
|
||||
.MenuData: ; 0x8b11c
|
||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||
db 4, 13 ; rows, columns
|
||||
db 1 ; spacing
|
||||
|
@ -11,8 +11,8 @@ Special_AskRememberPassword: ; 4ae12
|
||||
.DoMenu: ; 4ae1f
|
||||
lb bc, 14, 7
|
||||
push bc
|
||||
ld hl, YesNoMenuDataHeader
|
||||
call CopyMenuDataHeader
|
||||
ld hl, YesNoMenuHeader
|
||||
call CopyMenuHeader
|
||||
pop bc
|
||||
ld a, b
|
||||
ld [wMenuBorderLeftCoord], a
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user