mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -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
|
const_def
|
||||||
shift_const MENU_RESTORE_TILES ; Will be set if MENU_BACKUP_TILES(_2) is set.
|
shift_const MENU_RESTORE_TILES ; Will be set if MENU_BACKUP_TILES(_2) is set.
|
||||||
shift_const MENU_UNUSED_1
|
shift_const MENU_UNUSED_1
|
||||||
@ -9,7 +9,7 @@
|
|||||||
shift_const MENU_BACKUP_TILES
|
shift_const MENU_BACKUP_TILES
|
||||||
shift_const MENU_BACKUP_TILES_2
|
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
|
; Per flag the comment specifies which menus actually implement it
|
||||||
const_def
|
const_def
|
||||||
shift_const STATICMENU_DISABLE_B ; VerticalMenu/_2DMenu
|
shift_const STATICMENU_DISABLE_B ; VerticalMenu/_2DMenu
|
||||||
@ -21,7 +21,7 @@
|
|||||||
shift_const STATICMENU_NO_TOP_SPACING ; VerticalMenu/_2DMenu
|
shift_const STATICMENU_NO_TOP_SPACING ; VerticalMenu/_2DMenu
|
||||||
shift_const STATICMENU_CURSOR ; VerticalMenu/_2DMenu
|
shift_const STATICMENU_CURSOR ; VerticalMenu/_2DMenu
|
||||||
|
|
||||||
; ScrollingMenu MenuDataHeader2 flags
|
; ScrollingMenu MenuData flags
|
||||||
const_def
|
const_def
|
||||||
shift_const SCROLLINGMENU_CALL_FUNCTION1_CANCEL
|
shift_const SCROLLINGMENU_CALL_FUNCTION1_CANCEL
|
||||||
shift_const SCROLLINGMENU_CALL_FUNCTION3_NO_SWITCH
|
shift_const SCROLLINGMENU_CALL_FUNCTION3_NO_SWITCH
|
||||||
|
@ -267,7 +267,7 @@ NUM_FRUIT_TREES EQU const_value +- 1
|
|||||||
NUM_UNOWN_PUZZLES EQU const_value
|
NUM_UNOWN_PUZZLES EQU const_value
|
||||||
|
|
||||||
; Special_DisplayUnownWords writebyte arguments
|
; 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_def
|
||||||
const UNOWNWORDS_ESCAPE ; 0
|
const UNOWNWORDS_ESCAPE ; 0
|
||||||
const UNOWNWORDS_LIGHT ; 1
|
const UNOWNWORDS_LIGHT ; 1
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
RooftopSaleData1: ; 15aee
|
RooftopSaleMart1: ; 15aee
|
||||||
db 5
|
db 5
|
||||||
dbw POKE_BALL, 150
|
dbw POKE_BALL, 150
|
||||||
dbw GREAT_BALL, 500
|
dbw GREAT_BALL, 500
|
||||||
@ -7,7 +7,7 @@ RooftopSaleData1: ; 15aee
|
|||||||
dbw REVIVE, 1200
|
dbw REVIVE, 1200
|
||||||
db -1
|
db -1
|
||||||
|
|
||||||
RooftopSaleData2: ; 15aff
|
RooftopSaleMart2: ; 15aff
|
||||||
db 5
|
db 5
|
||||||
dbw HYPER_POTION, 1000
|
dbw HYPER_POTION, 1000
|
||||||
dbw FULL_RESTORE, 2000
|
dbw FULL_RESTORE, 2000
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
ChrisNameMenuDataHeader: ; 882b5
|
ChrisNameMenuHeader: ; 882b5
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 10, TEXTBOX_Y - 1
|
menu_coords 0, 0, 10, TEXTBOX_Y - 1
|
||||||
dw .MaleNames
|
dw .MaleNames
|
||||||
@ -17,7 +17,7 @@ MalePlayerNameArray: ; 882c9
|
|||||||
db 2 ; displacement
|
db 2 ; displacement
|
||||||
db " NAME @" ; title
|
db " NAME @" ; title
|
||||||
|
|
||||||
KrisNameMenuDataHeader: ; 882e5
|
KrisNameMenuHeader: ; 882e5
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 10, TEXTBOX_Y - 1
|
menu_coords 0, 0, 10, TEXTBOX_Y - 1
|
||||||
dw .FemaleNames
|
dw .FemaleNames
|
||||||
|
@ -38,7 +38,7 @@ UnownWalls: ; 8aebc
|
|||||||
unownwall "H", "O", "-", "O", "H"
|
unownwall "H", "O", "-", "O", "H"
|
||||||
; 8aed5
|
; 8aed5
|
||||||
|
|
||||||
MenuDataHeaders_UnownWalls: ; 0x8aed5
|
MenuHeaders_UnownWalls: ; 0x8aed5
|
||||||
; UNOWNWORDS_ESCAPE
|
; UNOWNWORDS_ESCAPE
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 3, 4, 16, 9
|
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`
|
## `$4E`: `yesorno`
|
||||||
|
|
||||||
## `$4F`: <code>loadmenudata <i>data_pointer</i></code>
|
## `$4F`: <code>loadmenuheader <i>menu_header</i></code>
|
||||||
|
|
||||||
## `$50`: `closewindow`
|
## `$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:
|
Structure:
|
||||||
|
|
||||||
```asm
|
```asm
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 2, 4, SCREEN_WIDTH - 1, 13
|
menu_coords 2, 4, SCREEN_WIDTH - 1, 13
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db 0 ; flags
|
db 0 ; flags
|
||||||
db 5, 0 ; rows, columns
|
db 5, 0 ; rows, columns
|
||||||
db 1 ; horizontal spacing
|
db 1 ; horizontal spacing
|
||||||
@ -35,7 +35,7 @@ Structure:
|
|||||||
dba Function3
|
dba Function3
|
||||||
```
|
```
|
||||||
|
|
||||||
`wMenuData2Flags`:
|
`wMenuDataFlags`:
|
||||||
|
|
||||||
```
|
```
|
||||||
7: Select is functional
|
7: Select is functional
|
||||||
@ -48,9 +48,9 @@ Structure:
|
|||||||
0: Call Function1 to display the cancel entry
|
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:
|
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.
|
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:
|
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:
|
Structure:
|
||||||
|
|
||||||
```asm
|
```asm
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
db 12, 08 ; start coords
|
db 12, 08 ; start coords
|
||||||
db 17, 19 ; end coords
|
db 17, 19 ; end coords
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
dn 2, 2 ; rows, columns
|
dn 2, 2 ; rows, columns
|
||||||
db 6 ; spacing
|
db 6 ; spacing
|
||||||
@ -114,7 +114,7 @@ Structure:
|
|||||||
dba Function
|
dba Function
|
||||||
```
|
```
|
||||||
|
|
||||||
`wMenuData2Flags`:
|
`wMenuDataFlags`:
|
||||||
|
|
||||||
```
|
```
|
||||||
7: Leave one tile of spacing between the left textbox border and the text, enabling the cursor.
|
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:
|
Structure:
|
||||||
|
|
||||||
```
|
```
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 10, 7
|
menu_coords 0, 0, 10, 7
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||||
db 0 ; items
|
db 0 ; items
|
||||||
dw Items
|
dw Items
|
||||||
@ -155,7 +155,7 @@ Structure:
|
|||||||
dw StringPointers
|
dw StringPointers
|
||||||
```
|
```
|
||||||
|
|
||||||
`wMenuData2Flags`:
|
`wMenuDataFlags`:
|
||||||
|
|
||||||
```
|
```
|
||||||
7: Unused
|
7: Unused
|
||||||
@ -219,20 +219,20 @@ This is the simplest menu. Like, the most boring. Nothing special. Just normal.
|
|||||||
Structure:
|
Structure:
|
||||||
|
|
||||||
```asm
|
```asm
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_SPRITE_ANIMS | MENU_BACKUP_TILES ; flags
|
db MENU_SPRITE_ANIMS | MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 12, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 12, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 2 ; # items
|
db 2 ; # items
|
||||||
db "GIVE@"
|
db "GIVE@"
|
||||||
db "TAKE@"
|
db "TAKE@"
|
||||||
```
|
```
|
||||||
|
|
||||||
`wMenuData2Flags`:
|
`wMenuDataFlags`:
|
||||||
|
|
||||||
```
|
```
|
||||||
7: Leave one tile of spacing between the left textbox border and the text
|
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
|
## Misc/Generic
|
||||||
|
|
||||||
`MenuDataHeader` flags (`wMenuFlags`):
|
`MenuHeader` flags (`wMenuFlags`):
|
||||||
|
|
||||||
```
|
```
|
||||||
7: Save a backup of the tiles
|
7: Save a backup of the tiles
|
||||||
|
@ -2781,7 +2781,7 @@ AskUseNextPokemon: ; 3d1f8
|
|||||||
|
|
||||||
ForcePlayerMonChoice: ; 3d227
|
ForcePlayerMonChoice: ; 3d227
|
||||||
call EmptyBattleTextBox
|
call EmptyBattleTextBox
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call SetUpBattlePartyMenu_NoLoop
|
call SetUpBattlePartyMenu_NoLoop
|
||||||
call ForcePickPartyMonInBattle
|
call ForcePickPartyMonInBattle
|
||||||
ld a, [wLinkMode]
|
ld a, [wLinkMode]
|
||||||
@ -3300,7 +3300,7 @@ ResetEnemyBattleVars: ; 3d557
|
|||||||
ld a, 8
|
ld a, 8
|
||||||
call SlideBattlePicOut
|
call SlideBattlePicOut
|
||||||
call EmptyBattleTextBox
|
call EmptyBattleTextBox
|
||||||
jp LoadStandardMenuDataHeader
|
jp LoadStandardMenuHeader
|
||||||
; 3d57a
|
; 3d57a
|
||||||
|
|
||||||
ResetBattleParticipants: ; 3d57a
|
ResetBattleParticipants: ; 3d57a
|
||||||
@ -5107,7 +5107,7 @@ BattleMenu_Pack: ; 3e1c7
|
|||||||
and a
|
and a
|
||||||
jp nz, .ItemsCantBeUsed
|
jp nz, .ItemsCantBeUsed
|
||||||
|
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
|
|
||||||
ld a, [BattleType]
|
ld a, [BattleType]
|
||||||
cp BATTLETYPE_TUTORIAL
|
cp BATTLETYPE_TUTORIAL
|
||||||
@ -5202,10 +5202,10 @@ BattleMenu_Pack: ; 3e1c7
|
|||||||
; 3e28d
|
; 3e28d
|
||||||
|
|
||||||
BattleMenu_PKMN: ; 3e28d
|
BattleMenu_PKMN: ; 3e28d
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
BattleMenuPKMN_ReturnFromStats:
|
BattleMenuPKMN_ReturnFromStats:
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
BattleMenuPKMN_Loop:
|
BattleMenuPKMN_Loop:
|
||||||
call SetUpBattlePartyMenu
|
call SetUpBattlePartyMenu
|
||||||
@ -5345,7 +5345,7 @@ PlayerSwitch: ; 3e3ad
|
|||||||
ld a, [wLinkMode]
|
ld a, [wLinkMode]
|
||||||
and a
|
and a
|
||||||
jr z, .not_linked
|
jr z, .not_linked
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call LinkBattleSendReceiveAction
|
call LinkBattleSendReceiveAction
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
|
|
||||||
|
@ -8973,7 +8973,7 @@ BattleCommand_BatonPass: ; 379c9
|
|||||||
call DelayFrames
|
call DelayFrames
|
||||||
|
|
||||||
; Transition into switchmon menu
|
; Transition into switchmon menu
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall SetUpBattlePartyMenu_NoLoop
|
farcall SetUpBattlePartyMenu_NoLoop
|
||||||
|
|
||||||
farcall ForcePickSwitchMonInBattle
|
farcall ForcePickSwitchMonInBattle
|
||||||
@ -9048,7 +9048,7 @@ BatonPass_LinkPlayerSwitch: ; 37a67
|
|||||||
ld a, 1
|
ld a, 1
|
||||||
ld [wPlayerAction], a
|
ld [wPlayerAction], a
|
||||||
|
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, LinkBattleSendReceiveAction
|
ld hl, LinkBattleSendReceiveAction
|
||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
@ -9065,7 +9065,7 @@ BatonPass_LinkEnemySwitch: ; 37a82
|
|||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, LinkBattleSendReceiveAction
|
ld hl, LinkBattleSendReceiveAction
|
||||||
call CallBattleCore
|
call CallBattleCore
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
LoadBattleMenu: ; 24ef2
|
LoadBattleMenu: ; 24ef2
|
||||||
ld hl, BattleMenuDataHeader
|
ld hl, BattleMenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld a, [wBattleMenuCursorBuffer]
|
ld a, [wBattleMenuCursorBuffer]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
call InterpretBattleMenu
|
call InterpretBattleMenu
|
||||||
@ -12,14 +12,14 @@ LoadBattleMenu: ; 24ef2
|
|||||||
|
|
||||||
SafariBattleMenu: ; 24f0b
|
SafariBattleMenu: ; 24f0b
|
||||||
; untranslated
|
; untranslated
|
||||||
ld hl, MenuDataHeader_0x24f4e
|
ld hl, MenuHeader_0x24f4e
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
jr Function24f19
|
jr Function24f19
|
||||||
; 24f13
|
; 24f13
|
||||||
|
|
||||||
ContestBattleMenu: ; 24f13
|
ContestBattleMenu: ; 24f13
|
||||||
ld hl, MenuDataHeader_0x24f89
|
ld hl, MenuHeader_0x24f89
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
; 24f19
|
; 24f19
|
||||||
|
|
||||||
Function24f19: ; 24f19
|
Function24f19: ; 24f19
|
||||||
@ -32,7 +32,7 @@ Function24f19: ; 24f19
|
|||||||
ret
|
ret
|
||||||
; 24f2c
|
; 24f2c
|
||||||
|
|
||||||
BattleMenuDataHeader: ; 24f2c
|
BattleMenuHeader: ; 24f2c
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 8, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 8, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw MenuData_0x24f34
|
dw MenuData_0x24f34
|
||||||
@ -54,7 +54,7 @@ Strings24f3d: ; 0x24f3d
|
|||||||
db "RUN@"
|
db "RUN@"
|
||||||
; 24f4e
|
; 24f4e
|
||||||
|
|
||||||
MenuDataHeader_0x24f4e: ; 24f4e
|
MenuHeader_0x24f4e: ; 24f4e
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw MenuData_0x24f56
|
dw MenuData_0x24f56
|
||||||
@ -84,7 +84,7 @@ Function24f7c: ; 24f7c
|
|||||||
ret
|
ret
|
||||||
; 24f89
|
; 24f89
|
||||||
|
|
||||||
MenuDataHeader_0x24f89: ; 24f89
|
MenuHeader_0x24f89: ; 24f89
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 2, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 2, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw MenuData_0x24f91
|
dw MenuData_0x24f91
|
||||||
|
@ -14,6 +14,6 @@ _ReturnToBattle_UseBall: ; 2715c
|
|||||||
farcall _LoadBattleFontsHPBar
|
farcall _LoadBattleFontsHPBar
|
||||||
call GetMemSGBLayout
|
call GetMemSGBLayout
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
jp SetPalettes
|
jp SetPalettes
|
||||||
|
@ -128,8 +128,8 @@ _DepositPKMN: ; e2391 (38:6391)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.Submenu: ; e247d (38:647d)
|
.Submenu: ; e247d (38:647d)
|
||||||
ld hl, BillsPCDepositMenuDataHeader
|
ld hl, BillsPCDepositMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
call StoreTo_wMenuCursorBuffer
|
call StoreTo_wMenuCursorBuffer
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
@ -172,7 +172,7 @@ BillsPCDepositFuncDeposit: ; e24a9 (38:64a9)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
BillsPCDepositFuncStats: ; e24c8 (38:64c8)
|
BillsPCDepositFuncStats: ; e24c8 (38:64c8)
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call BillsPC_StatsScreen
|
call BillsPC_StatsScreen
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call PCMonInfo
|
call PCMonInfo
|
||||||
@ -191,7 +191,7 @@ BillsPCDepositFuncRelease: ; e24e0 (38:64e0)
|
|||||||
push af
|
push af
|
||||||
ld de, PCString_ReleasePKMN
|
ld de, PCString_ReleasePKMN
|
||||||
call BillsPC_PlaceString
|
call BillsPC_PlaceString
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
lb bc, 14, 11
|
lb bc, 14, 11
|
||||||
call PlaceYesNoBox
|
call PlaceYesNoBox
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
@ -228,14 +228,14 @@ BillsPCDepositFuncCancel: ; e2537 (38:6537)
|
|||||||
ret
|
ret
|
||||||
; e253d (38:653d)
|
; e253d (38:653d)
|
||||||
|
|
||||||
BillsPCDepositMenuDataHeader: ; 0xe253d (38:653d)
|
BillsPCDepositMenuHeader: ; 0xe253d (38:653d)
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0xe2545
|
; 0xe2545
|
||||||
|
|
||||||
.MenuData2: ; 0xe2545 (38:6545)
|
.MenuData: ; 0xe2545 (38:6545)
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "DEPOSIT@"
|
db "DEPOSIT@"
|
||||||
@ -391,8 +391,8 @@ _WithdrawPKMN: ; e2583 (38:6583)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
BillsPC_Withdraw: ; e2675 (38:6675)
|
BillsPC_Withdraw: ; e2675 (38:6675)
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
call StoreTo_wMenuCursorBuffer
|
call StoreTo_wMenuCursorBuffer
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
@ -434,7 +434,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.stats ; e26c0 (38:66c0)
|
.stats ; e26c0 (38:66c0)
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call BillsPC_StatsScreen
|
call BillsPC_StatsScreen
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call PCMonInfo
|
call PCMonInfo
|
||||||
@ -451,7 +451,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
|||||||
jr c, .FailedRelease
|
jr c, .FailedRelease
|
||||||
ld de, PCString_ReleasePKMN
|
ld de, PCString_ReleasePKMN
|
||||||
call BillsPC_PlaceString
|
call BillsPC_PlaceString
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
lb bc, 14, 11
|
lb bc, 14, 11
|
||||||
call PlaceYesNoBox
|
call PlaceYesNoBox
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
@ -487,7 +487,7 @@ BillsPC_Withdraw: ; e2675 (38:6675)
|
|||||||
ret
|
ret
|
||||||
; e2731 (38:6731)
|
; e2731 (38:6731)
|
||||||
|
|
||||||
.MenuDataHeader: ; 0xe2731
|
.MenuHeader: ; 0xe2731
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
||||||
dw .MenuData
|
dw .MenuData
|
||||||
@ -652,8 +652,8 @@ _MovePKMNWithoutMail: ; e2759
|
|||||||
; e285d
|
; e285d
|
||||||
|
|
||||||
.MoveMonWOMailSubmenu: ; e285d
|
.MoveMonWOMailSubmenu: ; e285d
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
call StoreTo_wMenuCursorBuffer
|
call StoreTo_wMenuCursorBuffer
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
@ -693,7 +693,7 @@ _MovePKMNWithoutMail: ; e2759
|
|||||||
; e28a5
|
; e28a5
|
||||||
|
|
||||||
.Stats: ; e28a5
|
.Stats: ; e28a5
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call BillsPC_StatsScreen
|
call BillsPC_StatsScreen
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call PCMonInfo
|
call PCMonInfo
|
||||||
@ -710,14 +710,14 @@ _MovePKMNWithoutMail: ; e2759
|
|||||||
ret
|
ret
|
||||||
; e28c3
|
; e28c3
|
||||||
|
|
||||||
.MenuDataHeader: ; 0xe28c3
|
.MenuHeader: ; 0xe28c3
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
menu_coords 9, 4, SCREEN_WIDTH - 1, 13
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0xe28cb
|
; 0xe28cb
|
||||||
|
|
||||||
.MenuData2: ; 0xe28cb
|
.MenuData: ; 0xe28cb
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "MOVE@"
|
db "MOVE@"
|
||||||
@ -2293,15 +2293,15 @@ PCString_NoReleasingEGGS: db "No releasing EGGS!@"
|
|||||||
|
|
||||||
|
|
||||||
_ChangeBox: ; e35aa (38:75aa)
|
_ChangeBox: ; e35aa (38:75aa)
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call BillsPC_ClearTilemap
|
call BillsPC_ClearTilemap
|
||||||
.loop
|
.loop
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call BillsPC_PrintBoxName
|
call BillsPC_PrintBoxName
|
||||||
call BillsPC_PlaceChooseABoxString
|
call BillsPC_PlaceChooseABoxString
|
||||||
ld hl, _ChangeBox_menudataheader
|
ld hl, _ChangeBox_MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
xor a
|
xor a
|
||||||
ld [wMenuScrollPosition], a
|
ld [wMenuScrollPosition], a
|
||||||
hlcoord 0, 4
|
hlcoord 0, 4
|
||||||
@ -2328,14 +2328,14 @@ BillsPC_ClearTilemap: ; e35e2 (38:75e2)
|
|||||||
ret
|
ret
|
||||||
; e35f1 (38:75f1)
|
; e35f1 (38:75f1)
|
||||||
|
|
||||||
_ChangeBox_menudataheader: ; 0xe35f1
|
_ChangeBox_MenuHeader: ; 0xe35f1
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 1, 5, 9, 12
|
menu_coords 1, 5, 9, 12
|
||||||
dw .menudata2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0xe35f9
|
; 0xe35f9
|
||||||
|
|
||||||
.menudata2 ; 0xe35f9
|
.MenuData ; 0xe35f9
|
||||||
db MENU_UNUSED_1 | MENU_UNUSED_3 ; flags
|
db MENU_UNUSED_1 | MENU_UNUSED_3 ; flags
|
||||||
db 4, 0
|
db 4, 0
|
||||||
db 1
|
db 1
|
||||||
@ -2487,8 +2487,8 @@ BillsPC_PrintBoxName: ; e36cf (38:76cf)
|
|||||||
; e36f9
|
; e36f9
|
||||||
|
|
||||||
BillsPC_ChangeBoxSubmenu: ; e36f9 (38:76f9)
|
BillsPC_ChangeBoxSubmenu: ; e36f9 (38:76f9)
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
ret c
|
ret c
|
||||||
@ -2556,14 +2556,14 @@ BillsPC_ChangeBoxSubmenu: ; e36f9 (38:76f9)
|
|||||||
|
|
||||||
hlcoord 11, 7 ; unused
|
hlcoord 11, 7 ; unused
|
||||||
|
|
||||||
.MenuDataHeader: ; 0xe377b
|
.MenuHeader: ; 0xe377b
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 4, SCREEN_WIDTH - 1, 13
|
menu_coords 11, 4, SCREEN_WIDTH - 1, 13
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0xe3783
|
; 0xe3783
|
||||||
|
|
||||||
.MenuData2: ; 0xe3783
|
.MenuData: ; 0xe3783
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "SWITCH@"
|
db "SWITCH@"
|
||||||
|
@ -22,7 +22,7 @@ _BillsPC: ; e3fd
|
|||||||
.LogIn: ; e41c (3:641c)
|
.LogIn: ; e41c (3:641c)
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call ClearPCItemScreen
|
call ClearPCItemScreen
|
||||||
ld hl, Options
|
ld hl, Options
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
@ -45,8 +45,8 @@ _BillsPC: ; e3fd
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.UseBillsPC: ; e443 (3:6443)
|
.UseBillsPC: ; e443 (3:6443)
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld a, $1
|
ld a, $1
|
||||||
.loop
|
.loop
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
@ -68,13 +68,13 @@ _BillsPC: ; e3fd
|
|||||||
call CloseWindow
|
call CloseWindow
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.MenuDataHeader: ; 0xe46f
|
.MenuHeader: ; 0xe46f
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2: ; 0xe477
|
.MenuData: ; 0xe477
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 0 ; items
|
db 0 ; items
|
||||||
dw .items
|
dw .items
|
||||||
@ -109,7 +109,7 @@ BillsPC_SeeYa: ; e4cb
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
BillsPC_MovePKMNMenu: ; e4cd
|
BillsPC_MovePKMNMenu: ; e4cd
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall IsAnyMonHoldingMail
|
farcall IsAnyMonHoldingMail
|
||||||
jr nc, .no_mail
|
jr nc, .no_mail
|
||||||
ld hl, .Text_MonHoldingMail
|
ld hl, .Text_MonHoldingMail
|
||||||
@ -134,7 +134,7 @@ BillsPC_MovePKMNMenu: ; e4cd
|
|||||||
db "@"
|
db "@"
|
||||||
|
|
||||||
BillsPC_DepositMenu: ; e4fe (3:64fe)
|
BillsPC_DepositMenu: ; e4fe (3:64fe)
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall _DepositPKMN
|
farcall _DepositPKMN
|
||||||
call ReturnToMapFromSubmenu
|
call ReturnToMapFromSubmenu
|
||||||
call ClearPCItemScreen
|
call ClearPCItemScreen
|
||||||
@ -203,7 +203,7 @@ CheckCurPartyMonFainted: ; e538
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
BillsPC_WithdrawMenu: ; e559 (3:6559)
|
BillsPC_WithdrawMenu: ; e559 (3:6559)
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall _WithdrawPKMN
|
farcall _WithdrawPKMN
|
||||||
call ReturnToMapFromSubmenu
|
call ReturnToMapFromSubmenu
|
||||||
call ClearPCItemScreen
|
call ClearPCItemScreen
|
||||||
|
@ -202,7 +202,7 @@ DoEggStep:: ; 16f3e
|
|||||||
|
|
||||||
OverworldHatchEgg:: ; 16f5e
|
OverworldHatchEgg:: ; 16f5e
|
||||||
call RefreshScreen
|
call RefreshScreen
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call HatchEggs
|
call HatchEggs
|
||||||
call ExitAllMenus
|
call ExitAllMenus
|
||||||
call RestartMapMusic
|
call RestartMapMusic
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
SelectQuantityToToss: ; 24fbf
|
SelectQuantityToToss: ; 24fbf
|
||||||
ld hl, TossItem_MenuDataHeader
|
ld hl, TossItem_MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Toss_Sell_Loop
|
call Toss_Sell_Loop
|
||||||
ret
|
ret
|
||||||
; 24fc9
|
; 24fc9
|
||||||
@ -12,8 +12,8 @@ RooftopSale_SelectQuantityToBuy: ; 24fcf
|
|||||||
ld [Buffer1], a
|
ld [Buffer1], a
|
||||||
ld a, e
|
ld a, e
|
||||||
ld [Buffer2], a
|
ld [Buffer2], a
|
||||||
ld hl, BuyItem_MenuDataHeader
|
ld hl, BuyItem_MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Toss_Sell_Loop
|
call Toss_Sell_Loop
|
||||||
ret
|
ret
|
||||||
; 24fe1
|
; 24fe1
|
||||||
@ -24,8 +24,8 @@ SelectQuantityToSell: ; 24fe1
|
|||||||
ld [Buffer1], a
|
ld [Buffer1], a
|
||||||
ld a, e
|
ld a, e
|
||||||
ld [Buffer2], a
|
ld [Buffer2], a
|
||||||
ld hl, SellItem_MenuDataHeader
|
ld hl, SellItem_MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Toss_Sell_Loop
|
call Toss_Sell_Loop
|
||||||
ret
|
ret
|
||||||
; 24ff9
|
; 24ff9
|
||||||
@ -138,9 +138,9 @@ BuySellToss_UpdateQuantityDisplay: ; 25072
|
|||||||
ld de, wItemQuantityChangeBuffer
|
ld de, wItemQuantityChangeBuffer
|
||||||
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
lb bc, PRINTNUM_LEADINGZEROS | 1, 2
|
||||||
call PrintNum
|
call PrintNum
|
||||||
ld a, [wMenuData2Pointer]
|
ld a, [wMenuDataPointer]
|
||||||
ld e, a
|
ld e, a
|
||||||
ld a, [wMenuData2Pointer + 1]
|
ld a, [wMenuDataPointer + 1]
|
||||||
ld d, a
|
ld d, a
|
||||||
ld a, [wMenuDataBank]
|
ld a, [wMenuDataBank]
|
||||||
call FarCall_de
|
call FarCall_de
|
||||||
@ -213,21 +213,21 @@ BuySell_DisplaySubtotal: ; 250d1
|
|||||||
ret
|
ret
|
||||||
; 250ed
|
; 250ed
|
||||||
|
|
||||||
TossItem_MenuDataHeader: ; 0x250ed
|
TossItem_MenuHeader: ; 0x250ed
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 15, 9, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 15, 9, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw ret_25097
|
dw ret_25097
|
||||||
db 0 ; default option
|
db 0 ; default option
|
||||||
; 0x250f5
|
; 0x250f5
|
||||||
|
|
||||||
BuyItem_MenuDataHeader: ; 0x250f5
|
BuyItem_MenuHeader: ; 0x250f5
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 15, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 7, 15, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw DisplayPurchasePrice
|
dw DisplayPurchasePrice
|
||||||
db -1 ; default option
|
db -1 ; default option
|
||||||
; 0x250fd
|
; 0x250fd
|
||||||
|
|
||||||
SellItem_MenuDataHeader: ; 0x250fd
|
SellItem_MenuHeader: ; 0x250fd
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 15, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 7, 15, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw DisplaySellingPrice
|
dw DisplaySellingPrice
|
||||||
|
@ -38,7 +38,7 @@ RestartClock: ; 20021 (8:4021)
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
push af
|
push af
|
||||||
set NO_TEXT_SCROLL, [hl]
|
set NO_TEXT_SCROLL, [hl]
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
ld hl, .Text_SetWithControlPad
|
ld hl, .Text_SetWithControlPad
|
||||||
call PrintText
|
call PrintText
|
||||||
|
@ -8,8 +8,8 @@ InitDecorations: ; 26751 (9:6751)
|
|||||||
_PlayerDecorationMenu: ; 0x2675c
|
_PlayerDecorationMenu: ; 0x2675c
|
||||||
ld a, [wWhichIndexSet]
|
ld a, [wWhichIndexSet]
|
||||||
push af
|
push af
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
xor a
|
xor a
|
||||||
ld [Buffer5], a
|
ld [Buffer5], a
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -36,14 +36,14 @@ _PlayerDecorationMenu: ; 0x2675c
|
|||||||
ret
|
ret
|
||||||
; 0x2679a
|
; 0x2679a
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x2679a
|
.MenuHeader: ; 0x2679a
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 5, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 5, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x267a2
|
; 0x267a2
|
||||||
|
|
||||||
.MenuData2: ; 0x267a2
|
.MenuData: ; 0x267a2
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 0 ; items
|
db 0 ; items
|
||||||
dw wd002
|
dw wd002
|
||||||
@ -374,8 +374,8 @@ PopulateDecoCategoryMenu: ; 2695b
|
|||||||
jr nc, .beyond_eight
|
jr nc, .beyond_eight
|
||||||
xor a
|
xor a
|
||||||
ld [wWhichIndexSet], a
|
ld [wWhichIndexSet], a
|
||||||
ld hl, .NonscrollingMenuDataHeader
|
ld hl, .NonscrollingMenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call DoNthMenu
|
call DoNthMenu
|
||||||
jr c, .no_action_1
|
jr c, .no_action_1
|
||||||
call DoDecorationAction2
|
call DoDecorationAction2
|
||||||
@ -391,9 +391,9 @@ PopulateDecoCategoryMenu: ; 2695b
|
|||||||
ld d, 0
|
ld d, 0
|
||||||
add hl, de
|
add hl, de
|
||||||
ld [hl], -1
|
ld [hl], -1
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, .ScrollingMenuDataHeader
|
ld hl, .ScrollingMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call InitScrollingMenu
|
call InitScrollingMenu
|
||||||
@ -421,14 +421,14 @@ PopulateDecoCategoryMenu: ; 2695b
|
|||||||
db "@"
|
db "@"
|
||||||
; 0x269b5
|
; 0x269b5
|
||||||
|
|
||||||
.NonscrollingMenuDataHeader: ; 0x269b5
|
.NonscrollingMenuHeader: ; 0x269b5
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .NonscrollingMenuData2
|
dw .NonscrollingMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x269bd
|
; 0x269bd
|
||||||
|
|
||||||
.NonscrollingMenuData2: ; 0x269bd
|
.NonscrollingMenuData: ; 0x269bd
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 0 ; items
|
db 0 ; items
|
||||||
dw wd002
|
dw wd002
|
||||||
@ -436,14 +436,14 @@ PopulateDecoCategoryMenu: ; 2695b
|
|||||||
dw DecorationAttributes
|
dw DecorationAttributes
|
||||||
; 0x269c5
|
; 0x269c5
|
||||||
|
|
||||||
.ScrollingMenuDataHeader: ; 0x269c5
|
.ScrollingMenuHeader: ; 0x269c5
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 1, 1, SCREEN_WIDTH - 2, SCREEN_HEIGHT - 2
|
menu_coords 1, 1, SCREEN_WIDTH - 2, SCREEN_HEIGHT - 2
|
||||||
dw .ScrollingMenuData2
|
dw .ScrollingMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x269cd
|
; 0x269cd
|
||||||
|
|
||||||
.ScrollingMenuData2: ; 0x269cd
|
.ScrollingMenuData: ; 0x269cd
|
||||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||||
db 8, 0 ; rows, columns
|
db 8, 0 ; rows, columns
|
||||||
db 1 ; horizontal spacing
|
db 1 ; horizontal spacing
|
||||||
@ -912,10 +912,10 @@ DecoText_WhichSide: ; 0x26e6b
|
|||||||
|
|
||||||
DecoAction_AskWhichSide: ; 26e70
|
DecoAction_AskWhichSide: ; 26e70
|
||||||
call MenuTextBox
|
call MenuTextBox
|
||||||
ld hl, MenuDataHeader_0x26eab
|
ld hl, MenuHeader_0x26eab
|
||||||
call GetMenu2
|
call GetMenu2
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
call CopyMenuData2
|
call CopyMenuData
|
||||||
jr c, .nope
|
jr c, .nope
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
cp 3
|
cp 3
|
||||||
@ -947,14 +947,14 @@ QueryWhichSide: ; 26e9a
|
|||||||
ret
|
ret
|
||||||
; 26eab
|
; 26eab
|
||||||
|
|
||||||
MenuDataHeader_0x26eab: ; 0x26eab
|
MenuHeader_0x26eab: ; 0x26eab
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 13, 7
|
menu_coords 0, 0, 13, 7
|
||||||
dw MenuData2_0x26eb3
|
dw MenuData_0x26eb3
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x26eb3
|
; 0x26eb3
|
||||||
|
|
||||||
MenuData2_0x26eb3: ; 0x26eb3
|
MenuData_0x26eb3: ; 0x26eb3
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "RIGHT SIDE@"
|
db "RIGHT SIDE@"
|
||||||
|
@ -8,8 +8,8 @@ _ResetClock: ; 4d3b1
|
|||||||
call PlayMusic
|
call PlayMusic
|
||||||
ld hl, .text_askreset
|
ld hl, .text_askreset
|
||||||
call PrintText
|
call PrintText
|
||||||
ld hl, .NoYes_MenuDataHeader
|
ld hl, .NoYes_MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
ret c
|
ret c
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
@ -46,13 +46,13 @@ _ResetClock: ; 4d3b1
|
|||||||
text_jump UnknownText_0x1c561c
|
text_jump UnknownText_0x1c561c
|
||||||
db "@"
|
db "@"
|
||||||
|
|
||||||
.NoYes_MenuDataHeader: ; 0x4d40d
|
.NoYes_MenuHeader: ; 0x4d40d
|
||||||
db 0 ; flags
|
db 0 ; flags
|
||||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .NoYes_MenuData2
|
dw .NoYes_MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.NoYes_MenuData2: ; 0x4d415
|
.NoYes_MenuData: ; 0x4d415
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "NO@"
|
db "NO@"
|
||||||
@ -268,8 +268,8 @@ _DeleteSaveData: ; 4d54c
|
|||||||
call PlayMusic
|
call PlayMusic
|
||||||
ld hl, .Text_ClearAllSaveData
|
ld hl, .Text_ClearAllSaveData
|
||||||
call PrintText
|
call PrintText
|
||||||
ld hl, .NoYesMenuDataHeader
|
ld hl, .NoYesMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
ret c
|
ret c
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
@ -283,13 +283,13 @@ _DeleteSaveData: ; 4d54c
|
|||||||
text_jump UnknownText_0x1c564a
|
text_jump UnknownText_0x1c564a
|
||||||
db "@"
|
db "@"
|
||||||
|
|
||||||
.NoYesMenuDataHeader: ; 0x4d585
|
.NoYesMenuHeader: ; 0x4d585
|
||||||
db 0 ; flags
|
db 0 ; flags
|
||||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2: ; 0x4d58d
|
.MenuData: ; 0x4d58d
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "NO@"
|
db "NO@"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Special_BuenasPassword: ; 8af6b
|
Special_BuenasPassword: ; 8af6b
|
||||||
xor a
|
xor a
|
||||||
ld [wWhichIndexSet], a
|
ld [wWhichIndexSet], a
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wBuenasPassword]
|
ld a, [wBuenasPassword]
|
||||||
ld c, a
|
ld c, a
|
||||||
farcall GetBuenasPassword
|
farcall GetBuenasPassword
|
||||||
@ -28,16 +28,16 @@ Special_BuenasPassword: ; 8af6b
|
|||||||
ret
|
ret
|
||||||
; 8afa9
|
; 8afa9
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x8afa9
|
.MenuHeader: ; 0x8afa9
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 10, 7
|
menu_coords 0, 0, 10, 7
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8afb1
|
; 0x8afb1
|
||||||
|
|
||||||
db 0
|
db 0
|
||||||
|
|
||||||
.MenuData2: ; 0x8afb2
|
.MenuData: ; 0x8afb2
|
||||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||||
db 0 ; items
|
db 0 ; items
|
||||||
dw .PasswordIndices
|
dw .PasswordIndices
|
||||||
@ -187,8 +187,8 @@ Special_BuenaPrize: ; 8afd4
|
|||||||
; 0x8b090
|
; 0x8b090
|
||||||
|
|
||||||
Buena_DisplayBlueCardBalance: ; 8b090
|
Buena_DisplayBlueCardBalance: ; 8b090
|
||||||
ld hl, BlueCardBalanceMenuDataHeader
|
ld hl, BlueCardBalanceMenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ret
|
ret
|
||||||
; 8b097
|
; 8b097
|
||||||
|
|
||||||
@ -202,8 +202,8 @@ PrintBlueCardBalance: ; 8b097
|
|||||||
push de
|
push de
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld hl, BlueCardBalanceMenuDataHeader
|
ld hl, BlueCardBalanceMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
@ -227,25 +227,25 @@ PrintBlueCardBalance: ; 8b097
|
|||||||
db "Points@"
|
db "Points@"
|
||||||
; 8b0d1
|
; 8b0d1
|
||||||
|
|
||||||
BlueCardBalanceMenuDataHeader: ; 0x8b0d1
|
BlueCardBalanceMenuHeader: ; 0x8b0d1
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 11, 11, 13
|
menu_coords 0, 11, 11, 13
|
||||||
; 8b0d6
|
; 8b0d6
|
||||||
|
|
||||||
Buena_PlacePrizeMenuBox: ; 8b0d6
|
Buena_PlacePrizeMenuBox: ; 8b0d6
|
||||||
ld hl, .menudataheader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ret
|
ret
|
||||||
; 8b0dd
|
; 8b0dd
|
||||||
|
|
||||||
.menudataheader ; 0x8b0dd
|
.MenuHeader ; 0x8b0dd
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 17, TEXTBOX_Y - 1
|
menu_coords 0, 0, 17, TEXTBOX_Y - 1
|
||||||
; 8b0e2
|
; 8b0e2
|
||||||
|
|
||||||
Buena_PrizeMenu: ; 8b0e2
|
Buena_PrizeMenu: ; 8b0e2
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [MenuSelection]
|
ld a, [MenuSelection]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
xor a
|
xor a
|
||||||
@ -270,16 +270,16 @@ Buena_PrizeMenu: ; 8b0e2
|
|||||||
ret
|
ret
|
||||||
; 8b113
|
; 8b113
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x8b113
|
.MenuHeader: ; 0x8b113
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 1, 1, 16, 9
|
menu_coords 1, 1, 16, 9
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8b11b
|
; 0x8b11b
|
||||||
|
|
||||||
db 0
|
db 0
|
||||||
|
|
||||||
.MenuData2: ; 0x8b11c
|
.MenuData: ; 0x8b11c
|
||||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||||
db 4, 13 ; rows, columns
|
db 4, 13 ; rows, columns
|
||||||
db 1 ; spacing
|
db 1 ; spacing
|
||||||
|
@ -11,8 +11,8 @@ Special_AskRememberPassword: ; 4ae12
|
|||||||
.DoMenu: ; 4ae1f
|
.DoMenu: ; 4ae1f
|
||||||
lb bc, 14, 7
|
lb bc, 14, 7
|
||||||
push bc
|
push bc
|
||||||
ld hl, YesNoMenuDataHeader
|
ld hl, YesNoMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
pop bc
|
pop bc
|
||||||
ld a, b
|
ld a, b
|
||||||
ld [wMenuBorderLeftCoord], a
|
ld [wMenuBorderLeftCoord], a
|
||||||
|
@ -119,12 +119,12 @@ Elevator_GoToFloor: ; 134c0
|
|||||||
; 134dd
|
; 134dd
|
||||||
|
|
||||||
Elevator_AskWhichFloor: ; 134dd
|
Elevator_AskWhichFloor: ; 134dd
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, Elevator_WhichFloorText
|
ld hl, Elevator_WhichFloorText
|
||||||
call PrintText
|
call PrintText
|
||||||
call Elevator_GetCurrentFloorText
|
call Elevator_GetCurrentFloorText
|
||||||
ld hl, Elevator_MenuDataHeader
|
ld hl, Elevator_MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call InitScrollingMenu
|
call InitScrollingMenu
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
xor a
|
xor a
|
||||||
@ -187,14 +187,14 @@ Elevator_GetCurrentFloorString: ; 1353f
|
|||||||
ret
|
ret
|
||||||
; 13550
|
; 13550
|
||||||
|
|
||||||
Elevator_MenuDataHeader: ; 0x13550
|
Elevator_MenuHeader: ; 0x13550
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 12, 1, 18, 9
|
menu_coords 12, 1, 18, 9
|
||||||
dw Elevator_MenuData2
|
dw Elevator_MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x13558
|
; 0x13558
|
||||||
|
|
||||||
Elevator_MenuData2: ; 0x13558
|
Elevator_MenuData: ; 0x13558
|
||||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||||
db 4, 0 ; rows, columns
|
db 4, 0 ; rows, columns
|
||||||
db 1 ; horizontal spacing
|
db 1 ; horizontal spacing
|
||||||
|
@ -23,7 +23,7 @@ Kurt_PrintTextHowMany: ; 8800c
|
|||||||
; 0x88018
|
; 0x88018
|
||||||
|
|
||||||
Special_SelectApricornForKurt: ; 88018
|
Special_SelectApricornForKurt: ; 88018
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld c, $1
|
ld c, $1
|
||||||
xor a
|
xor a
|
||||||
ld [wMenuScrollPosition], a
|
ld [wMenuScrollPosition], a
|
||||||
@ -59,8 +59,8 @@ Special_SelectApricornForKurt: ; 88018
|
|||||||
Kurt_SelectApricorn: ; 88055
|
Kurt_SelectApricorn: ; 88055
|
||||||
farcall FindApricornsInBag
|
farcall FindApricornsInBag
|
||||||
jr c, .nope
|
jr c, .nope
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [MenuSelection]
|
ld a, [MenuSelection]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
xor a
|
xor a
|
||||||
@ -83,16 +83,16 @@ Kurt_SelectApricorn: ; 88055
|
|||||||
ret
|
ret
|
||||||
; 88086
|
; 88086
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x88086
|
.MenuHeader: ; 0x88086
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 1, 1, 13, 10
|
menu_coords 1, 1, 13, 10
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8808e
|
; 0x8808e
|
||||||
|
|
||||||
db 0 ; XXX
|
db 0 ; XXX
|
||||||
|
|
||||||
.MenuData2: ; 0x8808f
|
.MenuData: ; 0x8808f
|
||||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||||
db 4, 7
|
db 4, 7
|
||||||
db 1
|
db 1
|
||||||
@ -129,8 +129,8 @@ Kurt_SelectQuantity: ; 880c2
|
|||||||
ld [wItemQuantityBuffer], a
|
ld [wItemQuantityBuffer], a
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wItemQuantityChangeBuffer], a
|
ld [wItemQuantityChangeBuffer], a
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
.loop
|
.loop
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
@ -157,7 +157,7 @@ Kurt_SelectQuantity: ; 880c2
|
|||||||
ret
|
ret
|
||||||
; 8810d
|
; 8810d
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x8810d
|
.MenuHeader: ; 0x8810d
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 6, 9, SCREEN_WIDTH - 1, 12
|
menu_coords 6, 9, SCREEN_WIDTH - 1, 12
|
||||||
dw NULL
|
dw NULL
|
||||||
|
@ -103,9 +103,9 @@ Special_BankOfMom: ; 16218
|
|||||||
.AccessBankOfMom: ; 162a8
|
.AccessBankOfMom: ; 162a8
|
||||||
ld hl, UnknownText_0x1665d
|
ld hl, UnknownText_0x1665d
|
||||||
call PrintText
|
call PrintText
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, MenuDataHeader_0x166b5
|
ld hl, MenuHeader_0x166b5
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
jr c, .cancel
|
jr c, .cancel
|
||||||
@ -147,7 +147,7 @@ Special_BankOfMom: ; 16218
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld a, 5
|
ld a, 5
|
||||||
ld [wMomBankDigitCursorPosition], a
|
ld [wMomBankDigitCursorPosition], a
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call Mom_SetUpDepositMenu
|
call Mom_SetUpDepositMenu
|
||||||
call Mom_Wait10Frames
|
call Mom_Wait10Frames
|
||||||
call Mom_WithdrawDepositMenuJoypad
|
call Mom_WithdrawDepositMenuJoypad
|
||||||
@ -214,7 +214,7 @@ Special_BankOfMom: ; 16218
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld a, 5
|
ld a, 5
|
||||||
ld [wMomBankDigitCursorPosition], a
|
ld [wMomBankDigitCursorPosition], a
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call Mom_SetUpWithdrawMenu
|
call Mom_SetUpWithdrawMenu
|
||||||
call Mom_Wait10Frames
|
call Mom_Wait10Frames
|
||||||
call Mom_WithdrawDepositMenuJoypad
|
call Mom_WithdrawDepositMenuJoypad
|
||||||
@ -727,14 +727,14 @@ Mom_HeldString: ; 166b0
|
|||||||
db "HELD@"
|
db "HELD@"
|
||||||
; 166b5
|
; 166b5
|
||||||
|
|
||||||
MenuDataHeader_0x166b5: ; 0x166b5
|
MenuHeader_0x166b5: ; 0x166b5
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 10, 10
|
menu_coords 0, 0, 10, 10
|
||||||
dw MenuData2_0x166bd
|
dw MenuData_0x166bd
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x166bd
|
; 0x166bd
|
||||||
|
|
||||||
MenuData2_0x166bd: ; 0x166bd
|
MenuData_0x166bd: ; 0x166bd
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "GET@"
|
db "GET@"
|
||||||
|
@ -19,7 +19,7 @@ Special_MoveDeletion:
|
|||||||
jr z, .onlyonemove
|
jr z, .onlyonemove
|
||||||
ld hl, .AskWhichMoveText
|
ld hl, .AskWhichMoveText
|
||||||
call PrintText
|
call PrintText
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall ChooseMoveToDelete
|
farcall ChooseMoveToDelete
|
||||||
push af
|
push af
|
||||||
call ReturnToMapWithSpeechTextbox
|
call ReturnToMapWithSpeechTextbox
|
||||||
|
@ -52,8 +52,8 @@ Special_MoveTutor: ; 4925b
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
CheckCanLearnMoveTutorMove: ; 492b9
|
CheckCanLearnMoveTutorMove: ; 492b9
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
|
|
||||||
predef CanLearnTMHMMove
|
predef CanLearnTMHMMove
|
||||||
|
|
||||||
@ -98,6 +98,6 @@ CheckCanLearnMoveTutorMove: ; 492b9
|
|||||||
scf
|
scf
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x4930a
|
.MenuHeader: ; 0x4930a
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
|
@ -578,7 +578,7 @@ FlyFunction: ; ca3b
|
|||||||
.outdoors
|
.outdoors
|
||||||
xor a
|
xor a
|
||||||
ld [hMapAnims], a
|
ld [hMapAnims], a
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
farcall _FlyMap
|
farcall _FlyMap
|
||||||
ld a, e
|
ld a, e
|
||||||
|
@ -7,7 +7,7 @@ Special_PokemonCenterPC: ; 1559a
|
|||||||
ld hl, PokecenterPCText_AccessWhosePC
|
ld hl, PokecenterPCText_AccessWhosePC
|
||||||
call PC_DisplayTextWaitMenu
|
call PC_DisplayTextWaitMenu
|
||||||
ld hl, .TopMenu
|
ld hl, .TopMenu
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
.loop
|
.loop
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
@ -29,10 +29,10 @@ Special_PokemonCenterPC: ; 1559a
|
|||||||
.TopMenu:
|
.TopMenu:
|
||||||
db MENU_BACKUP_TILES | MENU_NO_CLICK_SFX ; flags
|
db MENU_BACKUP_TILES | MENU_NO_CLICK_SFX ; flags
|
||||||
menu_coords 0, 0, 15, 12
|
menu_coords 0, 0, 15, 12
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 0 ; items
|
db 0 ; items
|
||||||
dw .WhichPC
|
dw .WhichPC
|
||||||
@ -213,7 +213,7 @@ Function15715: ; 15715
|
|||||||
ld [wPCItemsCursor], a
|
ld [wPCItemsCursor], a
|
||||||
ld [wPCItemsScrollPosition], a
|
ld [wPCItemsScrollPosition], a
|
||||||
ld hl, PlayersPCMenuData
|
ld hl, PlayersPCMenuData
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
.asm_15722
|
.asm_15722
|
||||||
call UpdateTimePals
|
call UpdateTimePals
|
||||||
call DoNthMenu
|
call DoNthMenu
|
||||||
@ -234,10 +234,10 @@ PlayersPCMenuData: ; 0x15736
|
|||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
db 0, 0 ; top left corner coords (y, x)
|
db 0, 0 ; top left corner coords (y, x)
|
||||||
db 12, 15 ; bottom right corner coords (y, x)
|
db 12, 15 ; bottom right corner coords (y, x)
|
||||||
dw .PlayersPCMenuData2
|
dw .PlayersPCMenuData
|
||||||
db 1 ; default selected option
|
db 1 ; default selected option
|
||||||
|
|
||||||
.PlayersPCMenuData2:
|
.PlayersPCMenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 0 ; # items?
|
db 0 ; # items?
|
||||||
dw .PlayersPCMenuList1
|
dw .PlayersPCMenuList1
|
||||||
@ -306,7 +306,7 @@ UnknownText_0x157cc: ; 0x157cc
|
|||||||
; 0x157d1
|
; 0x157d1
|
||||||
|
|
||||||
PlayerWithdrawItemMenu: ; 0x157d1
|
PlayerWithdrawItemMenu: ; 0x157d1
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall ClearPCItemScreen
|
farcall ClearPCItemScreen
|
||||||
.loop
|
.loop
|
||||||
call PCItemsJoypad
|
call PCItemsJoypad
|
||||||
@ -382,7 +382,7 @@ PlayerWithdrawItemMenu: ; 0x157d1
|
|||||||
db "@"
|
db "@"
|
||||||
|
|
||||||
PlayerTossItemMenu: ; 0x1585f
|
PlayerTossItemMenu: ; 0x1585f
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall ClearPCItemScreen
|
farcall ClearPCItemScreen
|
||||||
.loop
|
.loop
|
||||||
call PCItemsJoypad
|
call PCItemsJoypad
|
||||||
@ -416,7 +416,7 @@ PlayerDepositItemMenu: ; 0x1588b
|
|||||||
call .CheckItemsInBag
|
call .CheckItemsInBag
|
||||||
jr c, .nope
|
jr c, .nope
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall DepositSellInitPackBuffers
|
farcall DepositSellInitPackBuffers
|
||||||
.loop
|
.loop
|
||||||
farcall DepositSellPack
|
farcall DepositSellPack
|
||||||
@ -558,7 +558,7 @@ PCItemsJoypad: ; 0x15985
|
|||||||
ld a, $0
|
ld a, $0
|
||||||
ld [wSpriteUpdatesEnabled], a
|
ld [wSpriteUpdatesEnabled], a
|
||||||
ld hl, .PCItemsMenuData
|
ld hl, .PCItemsMenuData
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
hlcoord 0, 0
|
hlcoord 0, 0
|
||||||
ld b, 10
|
ld b, 10
|
||||||
ld c, 18
|
ld c, 18
|
||||||
@ -621,10 +621,10 @@ PCItemsJoypad: ; 0x15985
|
|||||||
.PCItemsMenuData:
|
.PCItemsMenuData:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 4, 1, 18, 10
|
menu_coords 4, 1, 18, 10
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db SCROLLINGMENU_ENABLE_SELECT | SCROLLINGMENU_ENABLE_FUNCTION3 | SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
db SCROLLINGMENU_ENABLE_SELECT | SCROLLINGMENU_ENABLE_FUNCTION3 | SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||||
db 4, 8 ; rows/cols?
|
db 4, 8 ; rows/cols?
|
||||||
db 2 ; horizontal spacing?
|
db 2 ; horizontal spacing?
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
Pokepic:: ; 244e3
|
Pokepic:: ; 244e3
|
||||||
ld hl, PokepicMenuDataHeader
|
ld hl, PokepicMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call ApplyTilemap
|
call ApplyTilemap
|
||||||
@ -28,8 +28,8 @@ Pokepic:: ; 244e3
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
ClosePokepic:: ; 24528
|
ClosePokepic:: ; 24528
|
||||||
ld hl, PokepicMenuDataHeader
|
ld hl, PokepicMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call ClearMenuBoxInterior
|
call ClearMenuBoxInterior
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call GetMemSGBLayout
|
call GetMemSGBLayout
|
||||||
@ -41,7 +41,7 @@ ClosePokepic:: ; 24528
|
|||||||
call LoadStandardFont
|
call LoadStandardFont
|
||||||
ret
|
ret
|
||||||
|
|
||||||
PokepicMenuDataHeader: ; 0x24547
|
PokepicMenuHeader: ; 0x24547
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 6, 4, 14, 13
|
menu_coords 6, 4, 14, 13
|
||||||
dw NULL
|
dw NULL
|
||||||
|
@ -1811,7 +1811,7 @@ CoinVendor_IntroScript: ; 0xbcde0
|
|||||||
|
|
||||||
.loop ; 0xbcde4
|
.loop ; 0xbcde4
|
||||||
special Special_DisplayMoneyAndCoinBalance
|
special Special_DisplayMoneyAndCoinBalance
|
||||||
loadmenudata .MenuDataHeader
|
loadmenuheader .MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .Buy50
|
if_equal 1, .Buy50
|
||||||
@ -1869,13 +1869,13 @@ CoinVendor_IntroScript: ; 0xbcde0
|
|||||||
; 0xbce54
|
; 0xbce54
|
||||||
|
|
||||||
|
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 4, 15, TEXTBOX_Y - 1
|
menu_coords 0, 4, 15, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db " 50 : ¥1000@"
|
db " 50 : ¥1000@"
|
||||||
|
@ -105,7 +105,7 @@ SpecialKabutoChamber: ; 8ae4e
|
|||||||
|
|
||||||
Special_DisplayUnownWords: ; 8ae68
|
Special_DisplayUnownWords: ; 8ae68
|
||||||
ld a, [ScriptVar]
|
ld a, [ScriptVar]
|
||||||
ld hl, MenuDataHeaders_UnownWalls
|
ld hl, MenuHeaders_UnownWalls
|
||||||
and a
|
and a
|
||||||
jr z, .load
|
jr z, .load
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ Special_DisplayUnownWords: ; 8ae68
|
|||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
|
||||||
.load
|
.load
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call MenuBox
|
call MenuBox
|
||||||
|
@ -30,8 +30,8 @@ InitGender: ; 48dcb (12:4dcb)
|
|||||||
call SetPalettes
|
call SetPalettes
|
||||||
ld hl, TextJump_AreYouABoyOrAreYouAGirl
|
ld hl, TextJump_AreYouABoyOrAreYouAGirl
|
||||||
call PrintText
|
call PrintText
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call WaitBGMap2
|
call WaitBGMap2
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
@ -43,14 +43,14 @@ InitGender: ; 48dcb (12:4dcb)
|
|||||||
ret
|
ret
|
||||||
; 48dfc (12:4dfc)
|
; 48dfc (12:4dfc)
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x48dfc
|
.MenuHeader: ; 0x48dfc
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 6, 4, 12, 9
|
menu_coords 6, 4, 12, 9
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x48e04
|
; 0x48e04
|
||||||
|
|
||||||
.MenuData2: ; 0x48e04
|
.MenuData: ; 0x48e04
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP | STATICMENU_DISABLE_B ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "Boy@"
|
db "Boy@"
|
||||||
|
@ -352,7 +352,7 @@ Continue: ; 5d65
|
|||||||
farcall TryLoadSaveFile
|
farcall TryLoadSaveFile
|
||||||
jr c, .FailToLoad
|
jr c, .FailToLoad
|
||||||
farcall _LoadData
|
farcall _LoadData
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call DisplaySaveInfoOnContinue
|
call DisplaySaveInfoOnContinue
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
@ -539,27 +539,27 @@ DisplayContinueDataWithRTCError: ; 5eaf
|
|||||||
Continue_LoadMenuHeader: ; 5ebf
|
Continue_LoadMenuHeader: ; 5ebf
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld hl, .MenuDataHeader_Dex
|
ld hl, .MenuHeader_Dex
|
||||||
ld a, [wStatusFlags]
|
ld a, [wStatusFlags]
|
||||||
bit STATUSFLAGS_POKEDEX_F, a
|
bit STATUSFLAGS_POKEDEX_F, a
|
||||||
jr nz, .show_menu
|
jr nz, .show_menu
|
||||||
ld hl, .MenuDataHeader_NoDex
|
ld hl, .MenuHeader_NoDex
|
||||||
|
|
||||||
.show_menu
|
.show_menu
|
||||||
call _OffsetMenuDataHeader
|
call _OffsetMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call PlaceVerticalMenuItems
|
call PlaceVerticalMenuItems
|
||||||
ret
|
ret
|
||||||
; 5ed9
|
; 5ed9
|
||||||
|
|
||||||
.MenuDataHeader_Dex: ; 5ed9
|
.MenuHeader_Dex: ; 5ed9
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 15, 9
|
menu_coords 0, 0, 15, 9
|
||||||
dw .MenuData2_Dex
|
dw .MenuData_Dex
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 5ee1
|
; 5ee1
|
||||||
|
|
||||||
.MenuData2_Dex: ; 5ee1
|
.MenuData_Dex: ; 5ee1
|
||||||
db 0 ; flags
|
db 0 ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "PLAYER@"
|
db "PLAYER@"
|
||||||
@ -568,14 +568,14 @@ Continue_LoadMenuHeader: ; 5ebf
|
|||||||
db "TIME@"
|
db "TIME@"
|
||||||
; 5efb
|
; 5efb
|
||||||
|
|
||||||
.MenuDataHeader_NoDex: ; 5efb
|
.MenuHeader_NoDex: ; 5efb
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 15, 9
|
menu_coords 0, 0, 15, 9
|
||||||
dw .MenuData2_NoDex
|
dw .MenuData_NoDex
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 5f03
|
; 5f03
|
||||||
|
|
||||||
.MenuData2_NoDex: ; 5f03
|
.MenuData_NoDex: ; 5f03
|
||||||
db 0 ; flags
|
db 0 ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "PLAYER <PLAYER>@"
|
db "PLAYER <PLAYER>@"
|
||||||
@ -826,7 +826,7 @@ NamePlayer: ; 0x6074
|
|||||||
; 60e9
|
; 60e9
|
||||||
|
|
||||||
Unreferenced_Function60e9:
|
Unreferenced_Function60e9:
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
dec a
|
dec a
|
||||||
|
@ -1670,7 +1670,7 @@ LinkTrade: ; 28b87
|
|||||||
ld hl, UnknownText_0x28eb8
|
ld hl, UnknownText_0x28eb8
|
||||||
bccoord 1, 14
|
bccoord 1, 14
|
||||||
call PlaceHLTextAtBC
|
call PlaceHLTextAtBC
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
hlcoord 10, 7
|
hlcoord 10, 7
|
||||||
ld b, 3
|
ld b, 3
|
||||||
ld c, 7
|
ld c, 7
|
||||||
|
@ -19,7 +19,7 @@ Function16d42e: ; 16d42e
|
|||||||
; 16d43b
|
; 16d43b
|
||||||
|
|
||||||
Function16d43b: ; 16d43b
|
Function16d43b: ; 16d43b
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call ClearTileMap
|
call ClearTileMap
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
@ -169,7 +169,7 @@ LinkTextbox: ; 16d6ca
|
|||||||
; 16d6ce
|
; 16d6ce
|
||||||
|
|
||||||
Function16d6ce: ; 16d6ce
|
Function16d6ce: ; 16d6ce
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call Function16d6e1
|
call Function16d6e1
|
||||||
farcall WaitLinkTransfer
|
farcall WaitLinkTransfer
|
||||||
call Call_ExitMenu
|
call Call_ExitMenu
|
||||||
|
@ -313,7 +313,7 @@ IsAnyMonHoldingMail: ; 44781
|
|||||||
_PlayerMailBoxMenu: ; 0x447a0
|
_PlayerMailBoxMenu: ; 0x447a0
|
||||||
call InitMail
|
call InitMail
|
||||||
jr z, .nomail
|
jr z, .nomail
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call MailboxPC
|
call MailboxPC
|
||||||
jp CloseWindow
|
jp CloseWindow
|
||||||
|
|
||||||
@ -388,8 +388,8 @@ MailboxPC: ; 0x44806
|
|||||||
ld [wCurMessageIndex], a
|
ld [wCurMessageIndex], a
|
||||||
.loop
|
.loop
|
||||||
call InitMail
|
call InitMail
|
||||||
ld hl, .TopMenuDataHeader
|
ld hl, .TopMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call InitScrollingMenu
|
call InitScrollingMenu
|
||||||
@ -417,8 +417,8 @@ MailboxPC: ; 0x44806
|
|||||||
; 0x4484a
|
; 0x4484a
|
||||||
|
|
||||||
.Submenu: ; 0x4484a
|
.Submenu: ; 0x4484a
|
||||||
ld hl, .SubMenuDataHeader
|
ld hl, .SubMenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
jr c, .subexit
|
jr c, .subexit
|
||||||
@ -557,13 +557,13 @@ MailboxPC: ; 0x44806
|
|||||||
.Cancel:
|
.Cancel:
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.TopMenuDataHeader: ; 0x4494c
|
.TopMenuHeader: ; 0x4494c
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 8, 1, SCREEN_WIDTH - 2, 10
|
menu_coords 8, 1, SCREEN_WIDTH - 2, 10
|
||||||
dw .TopMenuData2
|
dw .TopMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.TopMenuData2:
|
.TopMenuData:
|
||||||
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
db SCROLLINGMENU_DISPLAY_ARROWS ; flags
|
||||||
db 4, 0 ; rows/columns?
|
db 4, 0 ; rows/columns?
|
||||||
db 1 ; horizontal spacing?
|
db 1 ; horizontal spacing?
|
||||||
@ -572,13 +572,13 @@ MailboxPC: ; 0x44806
|
|||||||
dba NULL
|
dba NULL
|
||||||
dba NULL
|
dba NULL
|
||||||
|
|
||||||
.SubMenuDataHeader: ; 0x44964
|
.SubMenuHeader: ; 0x44964
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 13, 9
|
menu_coords 0, 0, 13, 9
|
||||||
dw .SubMenuData2
|
dw .SubMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.SubMenuData2:
|
.SubMenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "READ MAIL@"
|
db "READ MAIL@"
|
||||||
|
@ -14,8 +14,8 @@ MainMenu: ; 49cdc
|
|||||||
call MainMenu_GetWhichMenu
|
call MainMenu_GetWhichMenu
|
||||||
ld [wWhichIndexSet], a
|
ld [wWhichIndexSet], a
|
||||||
call MainMenu_PrintCurrentTimeAndDay
|
call MainMenu_PrintCurrentTimeAndDay
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MainMenuJoypadLoop
|
call MainMenuJoypadLoop
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
jr c, .quit
|
jr c, .quit
|
||||||
@ -29,14 +29,14 @@ MainMenu: ; 49cdc
|
|||||||
ret
|
ret
|
||||||
; 49d14
|
; 49d14
|
||||||
|
|
||||||
.MenuDataHeader: ; 49d14
|
.MenuHeader: ; 49d14
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 16, 7
|
menu_coords 0, 0, 16, 7
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 49d1c
|
; 49d1c
|
||||||
|
|
||||||
.MenuData2: ; 49d1c
|
.MenuData: ; 49d1c
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 0 ; items
|
db 0 ; items
|
||||||
dw MainMenuItems
|
dw MainMenuItems
|
||||||
|
@ -36,7 +36,7 @@ MartDialog: ; 15a61
|
|||||||
|
|
||||||
HerbShop: ; 15a6e
|
HerbShop: ; 15a6e
|
||||||
call FarReadMart
|
call FarReadMart
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, Text_HerbShop_Intro
|
ld hl, Text_HerbShop_Intro
|
||||||
call MartTextBox
|
call MartTextBox
|
||||||
call BuyMenu
|
call BuyMenu
|
||||||
@ -50,7 +50,7 @@ BargainShop: ; 15a84
|
|||||||
ld de, BargainShopData
|
ld de, BargainShopData
|
||||||
call LoadMartPointer
|
call LoadMartPointer
|
||||||
call ReadMart
|
call ReadMart
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, Text_BargainShop_Intro
|
ld hl, Text_BargainShop_Intro
|
||||||
call MartTextBox
|
call MartTextBox
|
||||||
call BuyMenu
|
call BuyMenu
|
||||||
@ -69,7 +69,7 @@ BargainShop: ; 15a84
|
|||||||
|
|
||||||
Pharmacist: ; 15aae
|
Pharmacist: ; 15aae
|
||||||
call FarReadMart
|
call FarReadMart
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, Text_Pharmacist_Intro
|
ld hl, Text_Pharmacist_Intro
|
||||||
call MartTextBox
|
call MartTextBox
|
||||||
call BuyMenu
|
call BuyMenu
|
||||||
@ -79,18 +79,18 @@ Pharmacist: ; 15aae
|
|||||||
; 15ac4
|
; 15ac4
|
||||||
|
|
||||||
RooftopSale: ; 15ac4
|
RooftopSale: ; 15ac4
|
||||||
ld b, BANK(RooftopSaleData1)
|
ld b, BANK(RooftopSaleMart1)
|
||||||
ld de, RooftopSaleData1
|
ld de, RooftopSaleMart1
|
||||||
ld hl, wStatusFlags
|
ld hl, wStatusFlags
|
||||||
bit STATUSFLAGS_HALL_OF_FAME_F, [hl]
|
bit STATUSFLAGS_HALL_OF_FAME_F, [hl]
|
||||||
jr z, .ok
|
jr z, .ok
|
||||||
ld b, BANK(RooftopSaleData2)
|
ld b, BANK(RooftopSaleMart2)
|
||||||
ld de, RooftopSaleData2
|
ld de, RooftopSaleMart2
|
||||||
|
|
||||||
.ok
|
.ok
|
||||||
call LoadMartPointer
|
call LoadMartPointer
|
||||||
call ReadMart
|
call ReadMart
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, Text_Mart_HowMayIHelpYou
|
ld hl, Text_Mart_HowMayIHelpYou
|
||||||
call MartTextBox
|
call MartTextBox
|
||||||
call BuyMenu
|
call BuyMenu
|
||||||
@ -158,7 +158,7 @@ StandardMart: ; 15b47
|
|||||||
; 15b62
|
; 15b62
|
||||||
|
|
||||||
.HowMayIHelpYou: ; 15b62
|
.HowMayIHelpYou: ; 15b62
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, Text_Mart_HowMayIHelpYou
|
ld hl, Text_Mart_HowMayIHelpYou
|
||||||
call PrintText
|
call PrintText
|
||||||
ld a, $1 ; top menu
|
ld a, $1 ; top menu
|
||||||
@ -166,8 +166,8 @@ StandardMart: ; 15b47
|
|||||||
; 15b6e
|
; 15b6e
|
||||||
|
|
||||||
.TopMenu: ; 15b6e
|
.TopMenu: ; 15b6e
|
||||||
ld hl, MenuDataHeader_BuySell
|
ld hl, MenuHeader_BuySell
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
jr c, .quit
|
jr c, .quit
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
@ -211,7 +211,7 @@ StandardMart: ; 15b47
|
|||||||
; 15baf
|
; 15baf
|
||||||
|
|
||||||
.AnythingElse: ; 15baf
|
.AnythingElse: ; 15baf
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, Text_Mart_AnythingElse
|
ld hl, Text_Mart_AnythingElse
|
||||||
call PrintText
|
call PrintText
|
||||||
ld a, $1 ; top menu
|
ld a, $1 ; top menu
|
||||||
@ -445,8 +445,8 @@ GetMartDialogGroup: ; 15ca3
|
|||||||
BuyMenuLoop: ; 15cef
|
BuyMenuLoop: ; 15cef
|
||||||
farcall Special_PlaceMoneyTopRight
|
farcall Special_PlaceMoneyTopRight
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
ld hl, MenuDataHeader_Buy
|
ld hl, MenuHeader_Buy
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wMenuCursorBufferBackup]
|
ld a, [wMenuCursorBufferBackup]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wMenuScrollPositionBackup]
|
ld a, [wMenuScrollPositionBackup]
|
||||||
@ -616,14 +616,14 @@ Text_Mart_CostsThisMuch: ; 0x15e13
|
|||||||
db "@"
|
db "@"
|
||||||
; 0x15e18
|
; 0x15e18
|
||||||
|
|
||||||
MenuDataHeader_Buy: ; 0x15e18
|
MenuHeader_Buy: ; 0x15e18
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 1, 3, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 1, 3, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .menudata2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x15e20
|
; 0x15e20
|
||||||
|
|
||||||
.menudata2 ; 0x15e20
|
.MenuData ; 0x15e20
|
||||||
db SCROLLINGMENU_DISPLAY_ARROWS | SCROLLINGMENU_ENABLE_FUNCTION3 ; flags
|
db SCROLLINGMENU_DISPLAY_ARROWS | SCROLLINGMENU_ENABLE_FUNCTION3 ; flags
|
||||||
db 4, 8 ; rows, columns
|
db 4, 8 ; rows, columns
|
||||||
db 1 ; horizontal spacing
|
db 1 ; horizontal spacing
|
||||||
@ -900,14 +900,14 @@ Text_Mart_HowMayIHelpYou: ; 0x15f83
|
|||||||
db "@"
|
db "@"
|
||||||
; 0x15f88
|
; 0x15f88
|
||||||
|
|
||||||
MenuDataHeader_BuySell: ; 0x15f88
|
MenuHeader_BuySell: ; 0x15f88
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 7, 8
|
menu_coords 0, 0, 7, 8
|
||||||
dw .menudata2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x15f90
|
; 0x15f90
|
||||||
|
|
||||||
.menudata2 ; 0x15f90
|
.MenuData ; 0x15f90
|
||||||
db STATICMENU_CURSOR ; strings
|
db STATICMENU_CURSOR ; strings
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "BUY@"
|
db "BUY@"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
_2DMenu_:: ; 2400e
|
_2DMenu_:: ; 2400e
|
||||||
ld hl, CopyMenuData2
|
ld hl, CopyMenuData
|
||||||
ld a, [wMenuData2_2DMenuItemStringsBank]
|
ld a, [wMenuData_2DMenuItemStringsBank]
|
||||||
rst FarCall
|
rst FarCall
|
||||||
|
|
||||||
call Draw2DMenu
|
call Draw2DMenu
|
||||||
@ -11,8 +11,8 @@ _2DMenu_:: ; 2400e
|
|||||||
; 24022
|
; 24022
|
||||||
|
|
||||||
_InterpretBattleMenu:: ; 24022
|
_InterpretBattleMenu:: ; 24022
|
||||||
ld hl, CopyMenuData2
|
ld hl, CopyMenuData
|
||||||
ld a, [wMenuData2_2DMenuItemStringsBank]
|
ld a, [wMenuData_2DMenuItemStringsBank]
|
||||||
rst FarCall
|
rst FarCall
|
||||||
|
|
||||||
call Draw2DMenu
|
call Draw2DMenu
|
||||||
@ -24,8 +24,8 @@ _InterpretBattleMenu:: ; 24022
|
|||||||
; 2403c
|
; 2403c
|
||||||
|
|
||||||
_InterpretMobileMenu:: ; 2403c
|
_InterpretMobileMenu:: ; 2403c
|
||||||
ld hl, CopyMenuData2
|
ld hl, CopyMenuData
|
||||||
ld a, [wMenuData2_2DMenuItemStringsBank]
|
ld a, [wMenuData_2DMenuItemStringsBank]
|
||||||
rst FarCall
|
rst FarCall
|
||||||
|
|
||||||
call Draw2DMenu
|
call Draw2DMenu
|
||||||
@ -73,7 +73,7 @@ Get2DMenuSelection: ; 2408f
|
|||||||
call StaticMenuJoypad
|
call StaticMenuJoypad
|
||||||
call MenuClickSound
|
call MenuClickSound
|
||||||
Mobile_GetMenuSelection: ; 24098
|
Mobile_GetMenuSelection: ; 24098
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jr z, .skip
|
jr z, .skip
|
||||||
call GetMenuJoypad
|
call GetMenuJoypad
|
||||||
@ -81,7 +81,7 @@ Mobile_GetMenuSelection: ; 24098
|
|||||||
jr nz, .quit1
|
jr nz, .quit1
|
||||||
|
|
||||||
.skip
|
.skip
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 0, a
|
bit 0, a
|
||||||
jr nz, .skip2
|
jr nz, .skip2
|
||||||
call GetMenuJoypad
|
call GetMenuJoypad
|
||||||
@ -111,20 +111,20 @@ Mobile_GetMenuSelection: ; 24098
|
|||||||
; 240cd
|
; 240cd
|
||||||
|
|
||||||
Get2DMenuNumberOfColumns: ; 240cd
|
Get2DMenuNumberOfColumns: ; 240cd
|
||||||
ld a, [wMenuData2_2DMenuDimensions]
|
ld a, [wMenuData_2DMenuDimensions]
|
||||||
and $f
|
and $f
|
||||||
ret
|
ret
|
||||||
; 240d3
|
; 240d3
|
||||||
|
|
||||||
Get2DMenuNumberOfRows: ; 240d3
|
Get2DMenuNumberOfRows: ; 240d3
|
||||||
ld a, [wMenuData2_2DMenuDimensions]
|
ld a, [wMenuData_2DMenuDimensions]
|
||||||
swap a
|
swap a
|
||||||
and $f
|
and $f
|
||||||
ret
|
ret
|
||||||
; 240db
|
; 240db
|
||||||
|
|
||||||
Place2DMenuItemStrings: ; 240db
|
Place2DMenuItemStrings: ; 240db
|
||||||
ld hl, wMenuData2_2DMenuItemStringsAddr
|
ld hl, wMenuData_2DMenuItemStringsAddr
|
||||||
ld e, [hl]
|
ld e, [hl]
|
||||||
inc hl
|
inc hl
|
||||||
ld d, [hl]
|
ld d, [hl]
|
||||||
@ -139,10 +139,10 @@ Place2DMenuItemStrings: ; 240db
|
|||||||
ld c, a
|
ld c, a
|
||||||
.col
|
.col
|
||||||
push bc
|
push bc
|
||||||
ld a, [wMenuData2_2DMenuItemStringsBank]
|
ld a, [wMenuData_2DMenuItemStringsBank]
|
||||||
call Place2DMenuItemName
|
call Place2DMenuItemName
|
||||||
inc de
|
inc de
|
||||||
ld a, [wMenuData2_2DMenuSpacing]
|
ld a, [wMenuData_2DMenuSpacing]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld b, 0
|
ld b, 0
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@ -155,13 +155,13 @@ Place2DMenuItemStrings: ; 240db
|
|||||||
pop bc
|
pop bc
|
||||||
dec b
|
dec b
|
||||||
jr nz, .row
|
jr nz, .row
|
||||||
ld hl, wMenuData2_2DMenuFunctionAddr
|
ld hl, wMenuData_2DMenuFunctionAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
or h
|
or h
|
||||||
ret z
|
ret z
|
||||||
ld a, [wMenuData2_2DMenuFunctionBank]
|
ld a, [wMenuData_2DMenuFunctionBank]
|
||||||
rst FarCall
|
rst FarCall
|
||||||
ret
|
ret
|
||||||
; 2411a
|
; 2411a
|
||||||
@ -229,7 +229,7 @@ Init2DMenuCursorPosition: ; 2411a (9:411a)
|
|||||||
ld hl, w2DMenuFlags1
|
ld hl, w2DMenuFlags1
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
ld [hld], a
|
ld [hld], a
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 5, a
|
bit 5, a
|
||||||
ret z
|
ret z
|
||||||
set 5, [hl]
|
set 5, [hl]
|
||||||
@ -238,14 +238,14 @@ Init2DMenuCursorPosition: ; 2411a (9:411a)
|
|||||||
; 2418a
|
; 2418a
|
||||||
|
|
||||||
.InitFlags_b: ; 2418a
|
.InitFlags_b: ; 2418a
|
||||||
ld a, [wMenuData2_2DMenuSpacing]
|
ld a, [wMenuData_2DMenuSpacing]
|
||||||
or $20
|
or $20
|
||||||
ld [w2DMenuCursorOffsets], a
|
ld [w2DMenuCursorOffsets], a
|
||||||
ret
|
ret
|
||||||
; 24193
|
; 24193
|
||||||
|
|
||||||
.InitFlags_c: ; 24193
|
.InitFlags_c: ; 24193
|
||||||
ld hl, wMenuData2Flags
|
ld hl, wMenuDataFlags
|
||||||
ld a, A_BUTTON
|
ld a, A_BUTTON
|
||||||
bit 0, [hl]
|
bit 0, [hl]
|
||||||
jr nz, .skip
|
jr nz, .skip
|
||||||
@ -771,7 +771,7 @@ Error_Cant_ExitMenu: ; 2445d
|
|||||||
; 2446d
|
; 2446d
|
||||||
|
|
||||||
_InitVerticalMenuCursor:: ; 2446d
|
_InitVerticalMenuCursor:: ; 2446d
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld hl, w2DMenuCursorInitY
|
ld hl, w2DMenuCursorInitY
|
||||||
ld a, [wMenuBorderTopCoord]
|
ld a, [wMenuBorderTopCoord]
|
||||||
@ -786,7 +786,7 @@ _InitVerticalMenuCursor:: ; 2446d
|
|||||||
inc a
|
inc a
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
; w2DMenuNumRows
|
; w2DMenuNumRows
|
||||||
ld a, [wMenuData2Items]
|
ld a, [wMenuDataItems]
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
; w2DMenuNumCols
|
; w2DMenuNumCols
|
||||||
ld a, 1
|
ld a, 1
|
||||||
@ -821,7 +821,7 @@ _InitVerticalMenuCursor:: ; 2446d
|
|||||||
and a
|
and a
|
||||||
jr z, .load_at_the_top
|
jr z, .load_at_the_top
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wMenuData2Items]
|
ld a, [wMenuDataItems]
|
||||||
cp c
|
cp c
|
||||||
jr nc, .load_position
|
jr nc, .load_position
|
||||||
.load_at_the_top
|
.load_at_the_top
|
||||||
|
@ -28,21 +28,21 @@ PlaceMenuItemQuantity: ; 0x24ac3
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
Special_PlaceMoneyTopRight: ; 24ae8
|
Special_PlaceMoneyTopRight: ; 24ae8
|
||||||
ld hl, MenuDataHeader_0x24b15
|
ld hl, MenuHeader_0x24b15
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
jr PlaceMoneyDataHeader
|
jr PlaceMoneyTextBox
|
||||||
|
|
||||||
PlaceMoneyBottomLeft: ; 24af0
|
PlaceMoneyBottomLeft: ; 24af0
|
||||||
ld hl, MenuDataHeader_0x24b1d
|
ld hl, MenuHeader_0x24b1d
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
jr PlaceMoneyDataHeader
|
jr PlaceMoneyTextBox
|
||||||
|
|
||||||
PlaceMoneyAtTopLeftOfTextbox: ; 24af8
|
PlaceMoneyAtTopLeftOfTextbox: ; 24af8
|
||||||
ld hl, MenuDataHeader_0x24b15
|
ld hl, MenuHeader_0x24b15
|
||||||
lb de, 0, 11
|
lb de, 0, 11
|
||||||
call OffsetMenuDataHeader
|
call OffsetMenuHeader
|
||||||
|
|
||||||
PlaceMoneyDataHeader: ; 24b01
|
PlaceMoneyTextBox: ; 24b01
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
ld de, SCREEN_WIDTH + 1
|
ld de, SCREEN_WIDTH + 1
|
||||||
@ -52,13 +52,13 @@ PlaceMoneyDataHeader: ; 24b01
|
|||||||
call PrintNum
|
call PrintNum
|
||||||
ret
|
ret
|
||||||
|
|
||||||
MenuDataHeader_0x24b15: ; 0x24b15
|
MenuHeader_0x24b15: ; 0x24b15
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 0, SCREEN_WIDTH - 1, 2
|
menu_coords 11, 0, SCREEN_WIDTH - 1, 2
|
||||||
dw NULL
|
dw NULL
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
MenuDataHeader_0x24b1d: ; 0x24b1d
|
MenuHeader_0x24b1d: ; 0x24b1d
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 11, 8, 13
|
menu_coords 0, 11, 8, 13
|
||||||
dw NULL
|
dw NULL
|
||||||
|
@ -5,8 +5,8 @@ MonSubmenu: ; 24d19
|
|||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call GetMonSubmenuItems
|
call GetMonSubmenuItems
|
||||||
farcall FreezeMonIcons
|
farcall FreezeMonIcons
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call .GetTopCoord
|
call .GetTopCoord
|
||||||
call PopulateMonMenu
|
call PopulateMonMenu
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ MonSubmenu: ; 24d19
|
|||||||
ret
|
ret
|
||||||
; 24d3f
|
; 24d3f
|
||||||
|
|
||||||
.MenuDataHeader: ; 24d3f
|
.MenuHeader: ; 24d3f
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 6, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 6, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw 0
|
dw 0
|
||||||
@ -43,9 +43,9 @@ MonSubmenu: ; 24d19
|
|||||||
MonMenuLoop: ; 24d59
|
MonMenuLoop: ; 24d59
|
||||||
.loop
|
.loop
|
||||||
ld a, MENU_UNUSED_3 | MENU_BACKUP_TILES_2 ; flags
|
ld a, MENU_UNUSED_3 | MENU_BACKUP_TILES_2 ; flags
|
||||||
ld [wMenuData2Flags], a
|
ld [wMenuDataFlags], a
|
||||||
ld a, [Buffer1] ; items
|
ld a, [Buffer1] ; items
|
||||||
ld [wMenuData2Items], a
|
ld [wMenuDataItems], a
|
||||||
call InitVerticalMenuCursor
|
call InitVerticalMenuCursor
|
||||||
ld hl, w2DMenuFlags1
|
ld hl, w2DMenuFlags1
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
@ -256,16 +256,16 @@ AddMonMenuItem: ; 24e83
|
|||||||
; 24e99
|
; 24e99
|
||||||
|
|
||||||
BattleMonMenu: ; 24e99
|
BattleMonMenu: ; 24e99
|
||||||
ld hl, MenuDataHeader_0x24ed4
|
ld hl, MenuHeader_0x24ed4
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call PlaceVerticalMenuItems
|
call PlaceVerticalMenuItems
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call CopyMenuData2
|
call CopyMenuData
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 7, a
|
bit 7, a
|
||||||
jr z, .set_carry
|
jr z, .set_carry
|
||||||
call InitVerticalMenuCursor
|
call InitVerticalMenuCursor
|
||||||
@ -288,14 +288,14 @@ BattleMonMenu: ; 24e99
|
|||||||
ret
|
ret
|
||||||
; 24ed4
|
; 24ed4
|
||||||
|
|
||||||
MenuDataHeader_0x24ed4: ; 24ed4
|
MenuHeader_0x24ed4: ; 24ed4
|
||||||
db 0 ; flags
|
db 0 ; flags
|
||||||
menu_coords 11, 11, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 11, 11, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw MenuData2_0x24edc
|
dw MenuData_0x24edc
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 24edc
|
; 24edc
|
||||||
|
|
||||||
MenuData2_0x24edc: ; 24edc
|
MenuData_0x24edc: ; 24edc
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "SWITCH@"
|
db "SWITCH@"
|
||||||
|
@ -1786,7 +1786,7 @@ TextJump_WasSentToBillsPC: ; 0xe3d9
|
|||||||
|
|
||||||
InitNickname: ; e3de
|
InitNickname: ; e3de
|
||||||
push de
|
push de
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
pop de
|
pop de
|
||||||
push de
|
push de
|
||||||
|
184
engine/pack.asm
184
engine/pack.asm
@ -74,8 +74,8 @@ Pack: ; 10000
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.ItemsPocketMenu: ; 10067 (4:4067)
|
.ItemsPocketMenu: ; 10067 (4:4067)
|
||||||
ld hl, ItemsPocketMenuDataHeader
|
ld hl, ItemsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wItemsPocketCursor]
|
ld a, [wItemsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wItemsPocketScrollPosition]
|
ld a, [wItemsPocketScrollPosition]
|
||||||
@ -102,8 +102,8 @@ Pack: ; 10000
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.KeyItemsPocketMenu: ; 100a6 (4:40a6)
|
.KeyItemsPocketMenu: ; 100a6 (4:40a6)
|
||||||
ld hl, KeyItemsPocketMenuDataHeader
|
ld hl, KeyItemsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wKeyItemsPocketCursor]
|
ld a, [wKeyItemsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wKeyItemsPocketScrollPosition]
|
ld a, [wKeyItemsPocketScrollPosition]
|
||||||
@ -141,16 +141,16 @@ Pack: ; 10000
|
|||||||
ld a, [wItemAttributeParamBuffer]
|
ld a, [wItemAttributeParamBuffer]
|
||||||
and a
|
and a
|
||||||
jr nz, .use_quit
|
jr nz, .use_quit
|
||||||
ld hl, .MenuDataHeader2
|
ld hl, .MenuHeader2
|
||||||
ld de, .Jumptable2
|
ld de, .Jumptable2
|
||||||
jr .load_jump
|
jr .load_jump
|
||||||
|
|
||||||
.use_quit
|
.use_quit
|
||||||
ld hl, .MenuDataHeader1
|
ld hl, .MenuHeader1
|
||||||
ld de, .Jumptable1
|
ld de, .Jumptable1
|
||||||
.load_jump
|
.load_jump
|
||||||
push de
|
push de
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
pop hl
|
pop hl
|
||||||
@ -161,14 +161,14 @@ Pack: ; 10000
|
|||||||
jp hl
|
jp hl
|
||||||
|
|
||||||
; 10124 (4:4124)
|
; 10124 (4:4124)
|
||||||
.MenuDataHeader1: ; 0x10124
|
.MenuHeader1: ; 0x10124
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2_1
|
dw .MenuData_1
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x1012c
|
; 0x1012c
|
||||||
|
|
||||||
.MenuData2_1: ; 0x1012c
|
.MenuData_1: ; 0x1012c
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "USE@"
|
db "USE@"
|
||||||
@ -181,14 +181,14 @@ Pack: ; 10000
|
|||||||
|
|
||||||
; 1013b
|
; 1013b
|
||||||
|
|
||||||
.MenuDataHeader2: ; 0x1013b
|
.MenuHeader2: ; 0x1013b
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2_2
|
dw .MenuData_2
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10143
|
; 0x10143
|
||||||
|
|
||||||
.MenuData2_2: ; 0x10143
|
.MenuData_2: ; 0x10143
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "USE@"
|
db "USE@"
|
||||||
@ -232,8 +232,8 @@ Pack: ; 10000
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.BallsPocketMenu: ; 10198 (4:4198)
|
.BallsPocketMenu: ; 10198 (4:4198)
|
||||||
ld hl, BallsPocketMenuDataHeader
|
ld hl, BallsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wBallsPocketCursor]
|
ld a, [wBallsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wBallsPocketScrollPosition]
|
ld a, [wBallsPocketScrollPosition]
|
||||||
@ -280,36 +280,36 @@ Pack: ; 10000
|
|||||||
jr .tossable_unselectable
|
jr .tossable_unselectable
|
||||||
|
|
||||||
.usable
|
.usable
|
||||||
ld hl, MenuDataHeader_UsableKeyItem
|
ld hl, MenuHeader_UsableKeyItem
|
||||||
ld de, Jumptable_UseGiveTossRegisterQuit
|
ld de, Jumptable_UseGiveTossRegisterQuit
|
||||||
jr .build_menu
|
jr .build_menu
|
||||||
|
|
||||||
.selectable_usable
|
.selectable_usable
|
||||||
ld hl, MenuDataHeader_UsableItem
|
ld hl, MenuHeader_UsableItem
|
||||||
ld de, Jumptable_UseGiveTossQuit
|
ld de, Jumptable_UseGiveTossQuit
|
||||||
jr .build_menu
|
jr .build_menu
|
||||||
|
|
||||||
.tossable_selectable
|
.tossable_selectable
|
||||||
ld hl, MenuDataHeader_UnusableItem
|
ld hl, MenuHeader_UnusableItem
|
||||||
ld de, Jumptable_UseQuit
|
ld de, Jumptable_UseQuit
|
||||||
jr .build_menu
|
jr .build_menu
|
||||||
|
|
||||||
.tossable_unselectable
|
.tossable_unselectable
|
||||||
ld hl, MenuDataHeader_UnusableKeyItem
|
ld hl, MenuHeader_UnusableKeyItem
|
||||||
ld de, Jumptable_UseRegisterQuit
|
ld de, Jumptable_UseRegisterQuit
|
||||||
jr .build_menu
|
jr .build_menu
|
||||||
|
|
||||||
.unusable
|
.unusable
|
||||||
ld hl, MenuDataHeader_HoldableKeyItem
|
ld hl, MenuHeader_HoldableKeyItem
|
||||||
ld de, Jumptable_GiveTossRegisterQuit
|
ld de, Jumptable_GiveTossRegisterQuit
|
||||||
jr .build_menu
|
jr .build_menu
|
||||||
|
|
||||||
.selectable_unusable
|
.selectable_unusable
|
||||||
ld hl, MenuDataHeader_HoldableItem
|
ld hl, MenuHeader_HoldableItem
|
||||||
ld de, Jumptable_GiveTossQuit
|
ld de, Jumptable_GiveTossQuit
|
||||||
.build_menu
|
.build_menu
|
||||||
push de
|
push de
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
pop hl
|
pop hl
|
||||||
@ -320,14 +320,14 @@ Pack: ; 10000
|
|||||||
jp hl
|
jp hl
|
||||||
|
|
||||||
; 10249 (4:4249)
|
; 10249 (4:4249)
|
||||||
MenuDataHeader_UsableKeyItem: ; 0x10249
|
MenuHeader_UsableKeyItem: ; 0x10249
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10251
|
; 0x10251
|
||||||
|
|
||||||
.MenuData2: ; 0x10251
|
.MenuData: ; 0x10251
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 5 ; items
|
db 5 ; items
|
||||||
db "USE@"
|
db "USE@"
|
||||||
@ -345,14 +345,14 @@ Jumptable_UseGiveTossRegisterQuit: ; 1026a
|
|||||||
dw QuitItemSubmenu
|
dw QuitItemSubmenu
|
||||||
; 10274
|
; 10274
|
||||||
|
|
||||||
MenuDataHeader_UsableItem: ; 0x10274
|
MenuHeader_UsableItem: ; 0x10274
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 3, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 3, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x1027c
|
; 0x1027c
|
||||||
|
|
||||||
.MenuData2: ; 0x1027c
|
.MenuData: ; 0x1027c
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "USE@"
|
db "USE@"
|
||||||
@ -368,14 +368,14 @@ Jumptable_UseGiveTossQuit: ; 10291
|
|||||||
dw QuitItemSubmenu
|
dw QuitItemSubmenu
|
||||||
; 10299
|
; 10299
|
||||||
|
|
||||||
MenuDataHeader_UnusableItem: ; 0x10299
|
MenuHeader_UnusableItem: ; 0x10299
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x102a1
|
; 0x102a1
|
||||||
|
|
||||||
.MenuData2: ; 0x102a1
|
.MenuData: ; 0x102a1
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "USE@"
|
db "USE@"
|
||||||
@ -387,14 +387,14 @@ Jumptable_UseQuit: ; 102ac
|
|||||||
dw QuitItemSubmenu
|
dw QuitItemSubmenu
|
||||||
; 102b0
|
; 102b0
|
||||||
|
|
||||||
MenuDataHeader_UnusableKeyItem: ; 0x102b0
|
MenuHeader_UnusableKeyItem: ; 0x102b0
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x102b8
|
; 0x102b8
|
||||||
|
|
||||||
.MenuData2: ; 0x102b8
|
.MenuData: ; 0x102b8
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "USE@"
|
db "USE@"
|
||||||
@ -408,14 +408,14 @@ Jumptable_UseRegisterQuit: ; 102c7
|
|||||||
dw QuitItemSubmenu
|
dw QuitItemSubmenu
|
||||||
; 102cd
|
; 102cd
|
||||||
|
|
||||||
MenuDataHeader_HoldableKeyItem: ; 0x102cd
|
MenuHeader_HoldableKeyItem: ; 0x102cd
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 3, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 3, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x102d5
|
; 0x102d5
|
||||||
|
|
||||||
.MenuData2: ; 0x102d5
|
.MenuData: ; 0x102d5
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "GIVE@"
|
db "GIVE@"
|
||||||
@ -431,14 +431,14 @@ Jumptable_GiveTossRegisterQuit: ; 102ea
|
|||||||
dw QuitItemSubmenu
|
dw QuitItemSubmenu
|
||||||
; 102f2
|
; 102f2
|
||||||
|
|
||||||
MenuDataHeader_HoldableItem: ; 0x102f2
|
MenuHeader_HoldableItem: ; 0x102f2
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x102fa
|
; 0x102fa
|
||||||
|
|
||||||
.MenuData2: ; 0x102fa
|
.MenuData: ; 0x102fa
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "GIVE@"
|
db "GIVE@"
|
||||||
@ -724,8 +724,8 @@ BattlePack: ; 10493
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.ItemsPocketMenu: ; 104fa (4:44fa)
|
.ItemsPocketMenu: ; 104fa (4:44fa)
|
||||||
ld hl, ItemsPocketMenuDataHeader
|
ld hl, ItemsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wItemsPocketCursor]
|
ld a, [wItemsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wItemsPocketScrollPosition]
|
ld a, [wItemsPocketScrollPosition]
|
||||||
@ -752,8 +752,8 @@ BattlePack: ; 10493
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.KeyItemsPocketMenu: ; 10539 (4:4539)
|
.KeyItemsPocketMenu: ; 10539 (4:4539)
|
||||||
ld hl, KeyItemsPocketMenuDataHeader
|
ld hl, KeyItemsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wKeyItemsPocketCursor]
|
ld a, [wKeyItemsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wKeyItemsPocketScrollPosition]
|
ld a, [wKeyItemsPocketScrollPosition]
|
||||||
@ -803,8 +803,8 @@ BattlePack: ; 10493
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.BallsPocketMenu: ; 105a6 (4:45a6)
|
.BallsPocketMenu: ; 105a6 (4:45a6)
|
||||||
ld hl, BallsPocketMenuDataHeader
|
ld hl, BallsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wBallsPocketCursor]
|
ld a, [wBallsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wBallsPocketScrollPosition]
|
ld a, [wBallsPocketScrollPosition]
|
||||||
@ -827,16 +827,16 @@ ItemSubmenu: ; 105d3 (4:45d3)
|
|||||||
TMHMSubmenu: ; 105dc (4:45dc)
|
TMHMSubmenu: ; 105dc (4:45dc)
|
||||||
and a
|
and a
|
||||||
jr z, .NoUse
|
jr z, .NoUse
|
||||||
ld hl, .UsableMenuDataHeader
|
ld hl, .UsableMenuHeader
|
||||||
ld de, .UsableJumptable
|
ld de, .UsableJumptable
|
||||||
jr .proceed
|
jr .proceed
|
||||||
|
|
||||||
.NoUse:
|
.NoUse:
|
||||||
ld hl, .UnusableMenuDataHeader
|
ld hl, .UnusableMenuHeader
|
||||||
ld de, .UnusableJumptable
|
ld de, .UnusableJumptable
|
||||||
.proceed
|
.proceed
|
||||||
push de
|
push de
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
pop hl
|
pop hl
|
||||||
@ -847,14 +847,14 @@ TMHMSubmenu: ; 105dc (4:45dc)
|
|||||||
jp hl
|
jp hl
|
||||||
|
|
||||||
; 10601 (4:4601)
|
; 10601 (4:4601)
|
||||||
.UsableMenuDataHeader: ; 0x10601
|
.UsableMenuHeader: ; 0x10601
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .UsableMenuData2
|
dw .UsableMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10609
|
; 0x10609
|
||||||
|
|
||||||
.UsableMenuData2: ; 0x10609
|
.UsableMenuData: ; 0x10609
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "USE@"
|
db "USE@"
|
||||||
@ -866,14 +866,14 @@ TMHMSubmenu: ; 105dc (4:45dc)
|
|||||||
dw .Quit
|
dw .Quit
|
||||||
; 10618
|
; 10618
|
||||||
|
|
||||||
.UnusableMenuDataHeader: ; 0x10618
|
.UnusableMenuHeader: ; 0x10618
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 9, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 9, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .UnusableMenuData2
|
dw .UnusableMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10620
|
; 0x10620
|
||||||
|
|
||||||
.UnusableMenuData2: ; 0x10620
|
.UnusableMenuData: ; 0x10620
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 1 ; items
|
db 1 ; items
|
||||||
db "QUIT@"
|
db "QUIT@"
|
||||||
@ -1006,8 +1006,8 @@ DepositSellPack: ; 106be
|
|||||||
.ItemsPocket: ; 106d9 (4:46d9)
|
.ItemsPocket: ; 106d9 (4:46d9)
|
||||||
xor a ; ITEM_POCKET
|
xor a ; ITEM_POCKET
|
||||||
call InitPocket
|
call InitPocket
|
||||||
ld hl, PC_Mart_ItemsPocketMenuDataHeader
|
ld hl, PC_Mart_ItemsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wItemsPocketCursor]
|
ld a, [wItemsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wItemsPocketScrollPosition]
|
ld a, [wItemsPocketScrollPosition]
|
||||||
@ -1022,8 +1022,8 @@ DepositSellPack: ; 106be
|
|||||||
.KeyItemsPocket: ; 106ff (4:46ff)
|
.KeyItemsPocket: ; 106ff (4:46ff)
|
||||||
ld a, KEY_ITEM_POCKET
|
ld a, KEY_ITEM_POCKET
|
||||||
call InitPocket
|
call InitPocket
|
||||||
ld hl, PC_Mart_KeyItemsPocketMenuDataHeader
|
ld hl, PC_Mart_KeyItemsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wKeyItemsPocketCursor]
|
ld a, [wKeyItemsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wKeyItemsPocketScrollPosition]
|
ld a, [wKeyItemsPocketScrollPosition]
|
||||||
@ -1047,8 +1047,8 @@ DepositSellPack: ; 106be
|
|||||||
.BallsPocket: ; 1073b (4:473b)
|
.BallsPocket: ; 1073b (4:473b)
|
||||||
ld a, BALL_POCKET
|
ld a, BALL_POCKET
|
||||||
call InitPocket
|
call InitPocket
|
||||||
ld hl, PC_Mart_BallsPocketMenuDataHeader
|
ld hl, PC_Mart_BallsPocketMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wBallsPocketCursor]
|
ld a, [wBallsPocketCursor]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wBallsPocketScrollPosition]
|
ld a, [wBallsPocketScrollPosition]
|
||||||
@ -1153,18 +1153,18 @@ TutorialPack: ; 107bb
|
|||||||
|
|
||||||
.Items: ; 107e9 (4:47e9)
|
.Items: ; 107e9 (4:47e9)
|
||||||
xor a ; ITEM_POCKET
|
xor a ; ITEM_POCKET
|
||||||
ld hl, .ItemsMenuDataHeader
|
ld hl, .ItemsMenuHeader
|
||||||
jr .DisplayPocket
|
jr .DisplayPocket
|
||||||
|
|
||||||
; 107ef (4:47ef)
|
; 107ef (4:47ef)
|
||||||
.ItemsMenuDataHeader: ; 0x107ef
|
.ItemsMenuHeader: ; 0x107ef
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .ItemsMenuData2
|
dw .ItemsMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x107f7
|
; 0x107f7
|
||||||
|
|
||||||
.ItemsMenuData2: ; 0x107f7
|
.ItemsMenuData: ; 0x107f7
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 2 ; horizontal spacing
|
db 2 ; horizontal spacing
|
||||||
@ -1176,18 +1176,18 @@ TutorialPack: ; 107bb
|
|||||||
|
|
||||||
.KeyItems: ; 10807 (4:4807)
|
.KeyItems: ; 10807 (4:4807)
|
||||||
ld a, KEY_ITEM_POCKET
|
ld a, KEY_ITEM_POCKET
|
||||||
ld hl, .KeyItemsMenuDataHeader
|
ld hl, .KeyItemsMenuHeader
|
||||||
jr .DisplayPocket
|
jr .DisplayPocket
|
||||||
|
|
||||||
; 1080e (4:480e)
|
; 1080e (4:480e)
|
||||||
.KeyItemsMenuDataHeader: ; 0x1080e
|
.KeyItemsMenuHeader: ; 0x1080e
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .KeyItemsMenuData2
|
dw .KeyItemsMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10816
|
; 0x10816
|
||||||
|
|
||||||
.KeyItemsMenuData2: ; 0x10816
|
.KeyItemsMenuData: ; 0x10816
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 1 ; horizontal spacing
|
db 1 ; horizontal spacing
|
||||||
@ -1208,18 +1208,18 @@ TutorialPack: ; 107bb
|
|||||||
|
|
||||||
.Balls: ; 1083b (4:483b)
|
.Balls: ; 1083b (4:483b)
|
||||||
ld a, BALL_POCKET
|
ld a, BALL_POCKET
|
||||||
ld hl, .BallsMenuDataHeader
|
ld hl, .BallsMenuHeader
|
||||||
jr .DisplayPocket
|
jr .DisplayPocket
|
||||||
|
|
||||||
; 10842 (4:4842)
|
; 10842 (4:4842)
|
||||||
.BallsMenuDataHeader: ; 0x10842
|
.BallsMenuHeader: ; 0x10842
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .BallsMenuData2
|
dw .BallsMenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x1084a
|
; 0x1084a
|
||||||
|
|
||||||
.BallsMenuData2: ; 0x1084a
|
.BallsMenuData: ; 0x1084a
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 2 ; horizontal spacing
|
db 2 ; horizontal spacing
|
||||||
@ -1233,7 +1233,7 @@ TutorialPack: ; 107bb
|
|||||||
push hl
|
push hl
|
||||||
call InitPocket
|
call InitPocket
|
||||||
pop hl
|
pop hl
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call ScrollingMenu
|
call ScrollingMenu
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@ -1536,14 +1536,14 @@ Pack_InitColors: ; 10a40
|
|||||||
ret
|
ret
|
||||||
; 10a4f
|
; 10a4f
|
||||||
|
|
||||||
ItemsPocketMenuDataHeader: ; 0x10a4f
|
ItemsPocketMenuHeader: ; 0x10a4f
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10a57
|
; 0x10a57
|
||||||
|
|
||||||
.MenuData2: ; 0x10a57
|
.MenuData: ; 0x10a57
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 2 ; horizontal spacing
|
db 2 ; horizontal spacing
|
||||||
@ -1553,14 +1553,14 @@ ItemsPocketMenuDataHeader: ; 0x10a4f
|
|||||||
dba UpdateItemDescription
|
dba UpdateItemDescription
|
||||||
; 10a67
|
; 10a67
|
||||||
|
|
||||||
PC_Mart_ItemsPocketMenuDataHeader: ; 0x10a67
|
PC_Mart_ItemsPocketMenuHeader: ; 0x10a67
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10a6f
|
; 0x10a6f
|
||||||
|
|
||||||
.MenuData2: ; 0x10a6f
|
.MenuData: ; 0x10a6f
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 2 ; horizontal spacing
|
db 2 ; horizontal spacing
|
||||||
@ -1570,14 +1570,14 @@ PC_Mart_ItemsPocketMenuDataHeader: ; 0x10a67
|
|||||||
dba UpdateItemDescription
|
dba UpdateItemDescription
|
||||||
; 10a7f
|
; 10a7f
|
||||||
|
|
||||||
KeyItemsPocketMenuDataHeader: ; 0x10a7f
|
KeyItemsPocketMenuHeader: ; 0x10a7f
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10a87
|
; 0x10a87
|
||||||
|
|
||||||
.MenuData2: ; 0x10a87
|
.MenuData: ; 0x10a87
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 1 ; horizontal spacing
|
db 1 ; horizontal spacing
|
||||||
@ -1587,14 +1587,14 @@ KeyItemsPocketMenuDataHeader: ; 0x10a7f
|
|||||||
dba UpdateItemDescription
|
dba UpdateItemDescription
|
||||||
; 10a97
|
; 10a97
|
||||||
|
|
||||||
PC_Mart_KeyItemsPocketMenuDataHeader: ; 0x10a97
|
PC_Mart_KeyItemsPocketMenuHeader: ; 0x10a97
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10a9f
|
; 0x10a9f
|
||||||
|
|
||||||
.MenuData2: ; 0x10a9f
|
.MenuData: ; 0x10a9f
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 1 ; horizontal spacing
|
db 1 ; horizontal spacing
|
||||||
@ -1604,14 +1604,14 @@ PC_Mart_KeyItemsPocketMenuDataHeader: ; 0x10a97
|
|||||||
dba UpdateItemDescription
|
dba UpdateItemDescription
|
||||||
; 10aaf
|
; 10aaf
|
||||||
|
|
||||||
BallsPocketMenuDataHeader: ; 0x10aaf
|
BallsPocketMenuHeader: ; 0x10aaf
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10ab7
|
; 0x10ab7
|
||||||
|
|
||||||
.MenuData2: ; 0x10ab7
|
.MenuData: ; 0x10ab7
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP | STATICMENU_CURSOR ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 2 ; horizontal spacing
|
db 2 ; horizontal spacing
|
||||||
@ -1621,14 +1621,14 @@ BallsPocketMenuDataHeader: ; 0x10aaf
|
|||||||
dba UpdateItemDescription
|
dba UpdateItemDescription
|
||||||
; 10ac7
|
; 10ac7
|
||||||
|
|
||||||
PC_Mart_BallsPocketMenuDataHeader: ; 0x10ac7
|
PC_Mart_BallsPocketMenuHeader: ; 0x10ac7
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 7, 1, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x10acf
|
; 0x10acf
|
||||||
|
|
||||||
.MenuData2: ; 0x10acf
|
.MenuData: ; 0x10acf
|
||||||
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP ; flags
|
db STATICMENU_ENABLE_SELECT | STATICMENU_ENABLE_LEFT_RIGHT | STATICMENU_ENABLE_START | STATICMENU_WRAP ; flags
|
||||||
db 5, 8 ; rows, columns
|
db 5, 8 ; rows, columns
|
||||||
db 2 ; horizontal spacing
|
db 2 ; horizontal spacing
|
||||||
|
@ -56,13 +56,13 @@ MovePlayerPic: ; 88266
|
|||||||
jr .loop
|
jr .loop
|
||||||
|
|
||||||
ShowPlayerNamingChoices: ; 88297
|
ShowPlayerNamingChoices: ; 88297
|
||||||
ld hl, ChrisNameMenuDataHeader
|
ld hl, ChrisNameMenuHeader
|
||||||
ld a, [wPlayerGender]
|
ld a, [wPlayerGender]
|
||||||
bit PLAYERGENDER_FEMALE_F, a
|
bit PLAYERGENDER_FEMALE_F, a
|
||||||
jr z, .GotGender
|
jr z, .GotGender
|
||||||
ld hl, KrisNameMenuDataHeader
|
ld hl, KrisNameMenuHeader
|
||||||
.GotGender:
|
.GotGender:
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
dec a
|
dec a
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
SaveMenu: ; 14a1a
|
SaveMenu: ; 14a1a
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall DisplaySaveInfoOnSave
|
farcall DisplaySaveInfoOnSave
|
||||||
call SpeechTextBox
|
call SpeechTextBox
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
|
@ -144,7 +144,7 @@ ScriptCommandTable:
|
|||||||
dw Script_writetext ; 4c
|
dw Script_writetext ; 4c
|
||||||
dw Script_repeattext ; 4d
|
dw Script_repeattext ; 4d
|
||||||
dw Script_yesorno ; 4e
|
dw Script_yesorno ; 4e
|
||||||
dw Script_loadmenudata ; 4f
|
dw Script_loadmenuheader ; 4f
|
||||||
dw Script_closewindow ; 50
|
dw Script_closewindow ; 50
|
||||||
dw Script_jumptextfaceplayer ; 51
|
dw Script_jumptextfaceplayer ; 51
|
||||||
if _CRYSTAL
|
if _CRYSTAL
|
||||||
@ -432,15 +432,15 @@ Script_yesorno:
|
|||||||
ld [ScriptVar], a
|
ld [ScriptVar], a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Script_loadmenudata:
|
Script_loadmenuheader:
|
||||||
; script command 0x4f
|
; script command 0x4f
|
||||||
; parameters: data
|
; parameters: menu_header
|
||||||
|
|
||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld l, a
|
ld l, a
|
||||||
call GetScriptByte
|
call GetScriptByte
|
||||||
ld h, a
|
ld h, a
|
||||||
ld de, LoadMenuDataHeader
|
ld de, LoadMenuHeader
|
||||||
ld a, [ScriptBank]
|
ld a, [ScriptBank]
|
||||||
call Call_a_de
|
call Call_a_de
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
|
@ -118,7 +118,7 @@ ScrollingMenuJoyAction: ; 24609
|
|||||||
; 24673
|
; 24673
|
||||||
|
|
||||||
.select ; 24673
|
.select ; 24673
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 7, a
|
bit 7, a
|
||||||
jp z, xor_a_dec_a
|
jp z, xor_a_dec_a
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
@ -136,7 +136,7 @@ ScrollingMenuJoyAction: ; 24609
|
|||||||
; 24695
|
; 24695
|
||||||
|
|
||||||
.start ; 24695
|
.start ; 24695
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 6, a
|
bit 6, a
|
||||||
jp z, xor_a_dec_a
|
jp z, xor_a_dec_a
|
||||||
ld a, START
|
ld a, START
|
||||||
@ -148,7 +148,7 @@ ScrollingMenuJoyAction: ; 24609
|
|||||||
ld hl, w2DMenuFlags2
|
ld hl, w2DMenuFlags2
|
||||||
bit 7, [hl]
|
bit 7, [hl]
|
||||||
jp z, xor_a_dec_a
|
jp z, xor_a_dec_a
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 3, a
|
bit 3, a
|
||||||
jp z, xor_a_dec_a
|
jp z, xor_a_dec_a
|
||||||
ld a, D_LEFT
|
ld a, D_LEFT
|
||||||
@ -160,7 +160,7 @@ ScrollingMenuJoyAction: ; 24609
|
|||||||
ld hl, w2DMenuFlags2
|
ld hl, w2DMenuFlags2
|
||||||
bit 7, [hl]
|
bit 7, [hl]
|
||||||
jp z, xor_a_dec_a
|
jp z, xor_a_dec_a
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 2, a
|
bit 2, a
|
||||||
jp z, xor_a_dec_a
|
jp z, xor_a_dec_a
|
||||||
ld a, D_RIGHT
|
ld a, D_RIGHT
|
||||||
@ -188,7 +188,7 @@ ScrollingMenuJoyAction: ; 24609
|
|||||||
bit 7, [hl]
|
bit 7, [hl]
|
||||||
jp z, xor_a
|
jp z, xor_a
|
||||||
ld hl, wMenuScrollPosition
|
ld hl, wMenuScrollPosition
|
||||||
ld a, [wMenuData2_ScrollingMenuHeight]
|
ld a, [wMenuData_ScrollingMenuHeight]
|
||||||
add [hl]
|
add [hl]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld a, [wScrollingMenuListSize]
|
ld a, [wScrollingMenuListSize]
|
||||||
@ -215,7 +215,7 @@ ScrollingMenu_ClearLeftColumn: ; 24706 (9:4706)
|
|||||||
ld de, SCREEN_WIDTH
|
ld de, SCREEN_WIDTH
|
||||||
add hl, de
|
add hl, de
|
||||||
ld de, 2 * SCREEN_WIDTH
|
ld de, 2 * SCREEN_WIDTH
|
||||||
ld a, [wMenuData2_ScrollingMenuHeight]
|
ld a, [wMenuData_ScrollingMenuHeight]
|
||||||
.loop
|
.loop
|
||||||
ld [hl], " "
|
ld [hl], " "
|
||||||
add hl, de
|
add hl, de
|
||||||
@ -224,14 +224,14 @@ ScrollingMenu_ClearLeftColumn: ; 24706 (9:4706)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
InitScrollingMenuCursor: ; 2471a
|
InitScrollingMenuCursor: ; 2471a
|
||||||
ld hl, wMenuData2_ItemsPointerAddr
|
ld hl, wMenuData_ItemsPointerAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
ld a, [wMenuData2_ItemsPointerBank]
|
ld a, [wMenuData_ItemsPointerBank]
|
||||||
call GetFarByte
|
call GetFarByte
|
||||||
ld [wScrollingMenuListSize], a
|
ld [wScrollingMenuListSize], a
|
||||||
ld a, [wMenuData2_ScrollingMenuHeight]
|
ld a, [wMenuData_ScrollingMenuHeight]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wMenuScrollPosition]
|
ld a, [wMenuScrollPosition]
|
||||||
add c
|
add c
|
||||||
@ -240,7 +240,7 @@ InitScrollingMenuCursor: ; 2471a
|
|||||||
inc a
|
inc a
|
||||||
cp c
|
cp c
|
||||||
jr nc, .skip
|
jr nc, .skip
|
||||||
ld a, [wMenuData2_ScrollingMenuHeight]
|
ld a, [wMenuData_ScrollingMenuHeight]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wScrollingMenuListSize]
|
ld a, [wScrollingMenuListSize]
|
||||||
inc a
|
inc a
|
||||||
@ -274,7 +274,7 @@ InitScrollingMenuCursor: ; 2471a
|
|||||||
; 24764
|
; 24764
|
||||||
|
|
||||||
ScrollingMenu_InitFlags: ; 24764
|
ScrollingMenu_InitFlags: ; 24764
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wScrollingMenuListSize]
|
ld a, [wScrollingMenuListSize]
|
||||||
ld b, a
|
ld b, a
|
||||||
@ -284,7 +284,7 @@ ScrollingMenu_InitFlags: ; 24764
|
|||||||
ld a, [wMenuBorderLeftCoord]
|
ld a, [wMenuBorderLeftCoord]
|
||||||
add 0
|
add 0
|
||||||
ld [w2DMenuCursorInitX], a
|
ld [w2DMenuCursorInitX], a
|
||||||
ld a, [wMenuData2_ScrollingMenuHeight]
|
ld a, [wMenuData_ScrollingMenuHeight]
|
||||||
cp b
|
cp b
|
||||||
jr c, .no_extra_row
|
jr c, .no_extra_row
|
||||||
jr z, .no_extra_row
|
jr z, .no_extra_row
|
||||||
@ -363,7 +363,7 @@ ScrollingMenu_ValidateSwitchItem: ; 247dd
|
|||||||
|
|
||||||
ScrollingMenu_UpdateDisplay: ; 247f0
|
ScrollingMenu_UpdateDisplay: ; 247f0
|
||||||
call ClearWholeMenuBox
|
call ClearWholeMenuBox
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 4, a ; place arrows
|
bit 4, a ; place arrows
|
||||||
jr z, .okay
|
jr z, .okay
|
||||||
ld a, [wMenuScrollPosition]
|
ld a, [wMenuScrollPosition]
|
||||||
@ -380,7 +380,7 @@ ScrollingMenu_UpdateDisplay: ; 247f0
|
|||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
ld bc, SCREEN_WIDTH + 1
|
ld bc, SCREEN_WIDTH + 1
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [wMenuData2_ScrollingMenuHeight]
|
ld a, [wMenuData_ScrollingMenuHeight]
|
||||||
ld b, a
|
ld b, a
|
||||||
ld c, $0
|
ld c, $0
|
||||||
.loop
|
.loop
|
||||||
@ -403,7 +403,7 @@ ScrollingMenu_UpdateDisplay: ; 247f0
|
|||||||
ld a, c
|
ld a, c
|
||||||
cp b
|
cp b
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 4, a ; place arrows
|
bit 4, a ; place arrows
|
||||||
jr z, .done
|
jr z, .done
|
||||||
ld a, [wMenuBorderBottomCoord]
|
ld a, [wMenuBorderBottomCoord]
|
||||||
@ -417,7 +417,7 @@ ScrollingMenu_UpdateDisplay: ; 247f0
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.cancel
|
.cancel
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 0, a ; call function on cancel
|
bit 0, a ; call function on cancel
|
||||||
jr nz, .call_function
|
jr nz, .call_function
|
||||||
ld de, .string_2485f
|
ld de, .string_2485f
|
||||||
@ -430,7 +430,7 @@ ScrollingMenu_UpdateDisplay: ; 247f0
|
|||||||
.call_function
|
.call_function
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, wMenuData2_ScrollingMenuFunction1
|
ld hl, wMenuData_ScrollingMenuFunction1
|
||||||
jp CallPointerAt
|
jp CallPointerAt
|
||||||
; 2486e
|
; 2486e
|
||||||
|
|
||||||
@ -438,10 +438,10 @@ ScrollingMenu_CallFunctions1and2: ; 2486e
|
|||||||
push hl
|
push hl
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, wMenuData2_ScrollingMenuFunction1
|
ld hl, wMenuData_ScrollingMenuFunction1
|
||||||
call CallPointerAt
|
call CallPointerAt
|
||||||
pop hl
|
pop hl
|
||||||
ld a, [wMenuData2_ScrollingMenuWidth]
|
ld a, [wMenuData_ScrollingMenuWidth]
|
||||||
and a
|
and a
|
||||||
jr z, .done
|
jr z, .done
|
||||||
ld e, a
|
ld e, a
|
||||||
@ -449,7 +449,7 @@ ScrollingMenu_CallFunctions1and2: ; 2486e
|
|||||||
add hl, de
|
add hl, de
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, wMenuData2_ScrollingMenuFunction2
|
ld hl, wMenuData_ScrollingMenuFunction2
|
||||||
call CallPointerAt
|
call CallPointerAt
|
||||||
|
|
||||||
.done
|
.done
|
||||||
@ -465,7 +465,7 @@ ScrollingMenu_PlaceCursor: ; 2488b
|
|||||||
cp b
|
cp b
|
||||||
jr nc, .done
|
jr nc, .done
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wMenuData2_ScrollingMenuHeight]
|
ld a, [wMenuData_ScrollingMenuHeight]
|
||||||
add c
|
add c
|
||||||
cp b
|
cp b
|
||||||
jr c, .done
|
jr c, .done
|
||||||
@ -489,7 +489,7 @@ ScrollingMenu_PlaceCursor: ; 2488b
|
|||||||
; 248b8
|
; 248b8
|
||||||
|
|
||||||
ScrollingMenu_CheckCallFunction3: ; 248b8
|
ScrollingMenu_CheckCallFunction3: ; 248b8
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 5, a ; call function 3
|
bit 5, a ; call function 3
|
||||||
ret z
|
ret z
|
||||||
bit 1, a ; call function 3 if not switching items
|
bit 1, a ; call function 3 if not switching items
|
||||||
@ -502,7 +502,7 @@ ScrollingMenu_CheckCallFunction3: ; 248b8
|
|||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
dec a
|
dec a
|
||||||
call ScrollingMenu_GetListItemCoordAndFunctionArgs
|
call ScrollingMenu_GetListItemCoordAndFunctionArgs
|
||||||
ld hl, wMenuData2_ScrollingMenuFunction3
|
ld hl, wMenuData_ScrollingMenuFunction3
|
||||||
call CallPointerAt
|
call CallPointerAt
|
||||||
ret
|
ret
|
||||||
; 248d5
|
; 248d5
|
||||||
@ -515,12 +515,12 @@ ScrollingMenu_GetListItemCoordAndFunctionArgs: ; 248d5
|
|||||||
add e
|
add e
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, $0
|
ld d, $0
|
||||||
ld hl, wMenuData2_ItemsPointerAddr
|
ld hl, wMenuData_ItemsPointerAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
inc hl ; items
|
inc hl ; items
|
||||||
ld a, [wMenuData2_ScrollingMenuSpacing]
|
ld a, [wMenuData_ScrollingMenuSpacing]
|
||||||
cp 1
|
cp 1
|
||||||
jr z, .got_spacing
|
jr z, .got_spacing
|
||||||
cp 2
|
cp 2
|
||||||
@ -529,12 +529,12 @@ ScrollingMenu_GetListItemCoordAndFunctionArgs: ; 248d5
|
|||||||
add hl, de
|
add hl, de
|
||||||
.got_spacing
|
.got_spacing
|
||||||
add hl, de
|
add hl, de
|
||||||
ld a, [wMenuData2_ItemsPointerBank]
|
ld a, [wMenuData_ItemsPointerBank]
|
||||||
call GetFarByte
|
call GetFarByte
|
||||||
ld [MenuSelection], a
|
ld [MenuSelection], a
|
||||||
ld [CurItem], a
|
ld [CurItem], a
|
||||||
inc hl
|
inc hl
|
||||||
ld a, [wMenuData2_ItemsPointerBank]
|
ld a, [wMenuData_ItemsPointerBank]
|
||||||
call GetFarByte
|
call GetFarByte
|
||||||
ld [MenuSelectionQuantity], a
|
ld [MenuSelectionQuantity], a
|
||||||
pop hl
|
pop hl
|
||||||
|
@ -1809,8 +1809,8 @@ Slots_AskBet: ; 9307c (24:707c)
|
|||||||
.loop
|
.loop
|
||||||
ld hl, .Text_BetHowManyCoins
|
ld hl, .Text_BetHowManyCoins
|
||||||
call PrintText
|
call PrintText
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
ret c
|
ret c
|
||||||
@ -1867,14 +1867,14 @@ Slots_AskBet: ; 9307c (24:707c)
|
|||||||
db "@"
|
db "@"
|
||||||
; 0x930d6
|
; 0x930d6
|
||||||
|
|
||||||
.MenuDataHeader: ; 0x930d6
|
.MenuHeader: ; 0x930d6
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 10, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 14, 10, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x930de
|
; 0x930de
|
||||||
|
|
||||||
.MenuData2: ; 0x930de
|
.MenuData: ; 0x930de
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db " 3@"
|
db " 3@"
|
||||||
|
@ -22,12 +22,12 @@ StartMenu:: ; 125cd
|
|||||||
|
|
||||||
ld hl, wStatusFlags2
|
ld hl, wStatusFlags2
|
||||||
bit STATUSFLAGS2_BUG_CONTEST_TIMER_F, [hl]
|
bit STATUSFLAGS2_BUG_CONTEST_TIMER_F, [hl]
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
jr z, .GotMenuData
|
jr z, .GotMenuData
|
||||||
ld hl, .ContestMenuDataHeader
|
ld hl, .ContestMenuHeader
|
||||||
.GotMenuData:
|
.GotMenuData:
|
||||||
|
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call .SetUpMenuItems
|
call .SetUpMenuItems
|
||||||
ld a, [wBattleMenuCursorBuffer]
|
ld a, [wBattleMenuCursorBuffer]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
@ -164,13 +164,13 @@ StartMenu:: ; 125cd
|
|||||||
; 126d3
|
; 126d3
|
||||||
|
|
||||||
|
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 10, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData
|
dw .MenuData
|
||||||
db 1 ; default selection
|
db 1 ; default selection
|
||||||
|
|
||||||
.ContestMenuDataHeader:
|
.ContestMenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 2, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 10, 2, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData
|
dw .MenuData
|
||||||
@ -289,7 +289,7 @@ endr
|
|||||||
.GetMenuAccountTextPointer: ; 12819
|
.GetMenuAccountTextPointer: ; 12819
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, 0
|
ld d, 0
|
||||||
ld hl, wMenuData2PointerTableAddr
|
ld hl, wMenuDataPointerTableAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -813,7 +813,7 @@ GiveTakePartyMonItem: ; 12b60
|
|||||||
jr z, .cancel
|
jr z, .cancel
|
||||||
|
|
||||||
ld hl, GiveTakeItemMenuData
|
ld hl, GiveTakeItemMenuData
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
jr c, .cancel
|
jr c, .cancel
|
||||||
@ -827,7 +827,7 @@ GiveTakePartyMonItem: ; 12b60
|
|||||||
cp 1
|
cp 1
|
||||||
jr nz, .take
|
jr nz, .take
|
||||||
|
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call ClearPalettes
|
call ClearPalettes
|
||||||
call .GiveItem
|
call .GiveItem
|
||||||
call ClearPalettes
|
call ClearPalettes
|
||||||
@ -1121,8 +1121,8 @@ MonMailAction: ; 12d45
|
|||||||
jr z, .read
|
jr z, .read
|
||||||
|
|
||||||
; Show the READ/TAKE/QUIT menu.
|
; Show the READ/TAKE/QUIT menu.
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
|
|
||||||
@ -1184,14 +1184,14 @@ MonMailAction: ; 12d45
|
|||||||
; 12dc9
|
; 12dc9
|
||||||
|
|
||||||
|
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 12, 10, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 12, 10, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x12dd1
|
; 0x12dd1
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "READ@"
|
db "READ@"
|
||||||
@ -1238,7 +1238,7 @@ MonMailAction: ; 12d45
|
|||||||
|
|
||||||
|
|
||||||
OpenPartyStats: ; 12e00
|
OpenPartyStats: ; 12e00
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
; PartyMon
|
; PartyMon
|
||||||
xor a
|
xor a
|
||||||
|
@ -145,7 +145,7 @@ Function249d1: ; 249d1 (9:49d1)
|
|||||||
inc hl
|
inc hl
|
||||||
pop af
|
pop af
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
ld hl, wMenuData2_ItemsPointerAddr
|
ld hl, wMenuData_ItemsPointerAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -199,7 +199,7 @@ Function24a4d: ; 24a4d (9:4a4d)
|
|||||||
ItemSwitch_GetNthItem: ; 24a5c (9:4a5c)
|
ItemSwitch_GetNthItem: ; 24a5c (9:4a5c)
|
||||||
push af
|
push af
|
||||||
call ItemSwitch_ConvertSpacingToDW
|
call ItemSwitch_ConvertSpacingToDW
|
||||||
ld hl, wMenuData2_ItemsPointerAddr
|
ld hl, wMenuData_ItemsPointerAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -227,7 +227,7 @@ Function24a6c: ; 24a6c (9:4a6c)
|
|||||||
ItemSwitch_ConvertSpacingToDW: ; 24a80 (9:4a80)
|
ItemSwitch_ConvertSpacingToDW: ; 24a80 (9:4a80)
|
||||||
; This function is absolutely idiotic.
|
; This function is absolutely idiotic.
|
||||||
push hl
|
push hl
|
||||||
ld a, [wMenuData2_ScrollingMenuSpacing]
|
ld a, [wMenuData_ScrollingMenuSpacing]
|
||||||
ld c, a
|
ld c, a
|
||||||
ld b, 0
|
ld b, 0
|
||||||
ld hl, .spacing_dws
|
ld hl, .spacing_dws
|
||||||
|
@ -426,7 +426,7 @@ Special_SetDayOfWeek: ; 90913
|
|||||||
hlcoord 0, 12
|
hlcoord 0, 12
|
||||||
lb bc, 4, 18
|
lb bc, 4, 18
|
||||||
call TextBox
|
call TextBox
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld hl, .WhatDayIsItText
|
ld hl, .WhatDayIsItText
|
||||||
call PrintText
|
call PrintText
|
||||||
hlcoord 9, 3
|
hlcoord 9, 3
|
||||||
|
2
home.asm
2
home.asm
@ -773,7 +773,7 @@ INCLUDE "home/pokedex_flags.asm"
|
|||||||
INCLUDE "home/names.asm"
|
INCLUDE "home/names.asm"
|
||||||
|
|
||||||
ScrollingMenu:: ; 350c
|
ScrollingMenu:: ; 350c
|
||||||
call CopyMenuData2
|
call CopyMenuData
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
push af
|
push af
|
||||||
|
|
||||||
|
@ -1983,7 +1983,7 @@ CheckCurrentMapCoordEvents:: ; 2ad4
|
|||||||
FadeToMenu:: ; 2b29
|
FadeToMenu:: ; 2b29
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall Special_FadeOutPalettes
|
farcall Special_FadeOutPalettes
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call DisableSpriteUpdates
|
call DisableSpriteUpdates
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
; Functions used in displaying and handling menus.
|
; Functions used in displaying and handling menus.
|
||||||
|
|
||||||
|
|
||||||
LoadMenuDataHeader::
|
LoadMenuHeader::
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
call PushWindow
|
call PushWindow
|
||||||
ret
|
ret
|
||||||
|
|
||||||
CopyMenuDataHeader::
|
CopyMenuHeader::
|
||||||
ld de, wMenuDataHeader
|
ld de, wMenuHeader
|
||||||
ld bc, wMenuDataHeaderEnd - wMenuDataHeader
|
ld bc, wMenuHeaderEnd - wMenuHeader
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
ld [wMenuDataBank], a
|
ld [wMenuDataBank], a
|
||||||
@ -33,12 +33,12 @@ MenuTextBox:: ; 1d4f
|
|||||||
; 1d58
|
; 1d58
|
||||||
|
|
||||||
LoadMenuTextBox:: ; 1d58
|
LoadMenuTextBox:: ; 1d58
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ret
|
ret
|
||||||
; 1d5f
|
; 1d5f
|
||||||
|
|
||||||
.MenuDataHeader: ; 1d5f
|
.MenuHeader: ; 1d5f
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw vTiles0
|
dw vTiles0
|
||||||
@ -51,13 +51,13 @@ MenuTextBoxBackup:: ; 1d67
|
|||||||
ret
|
ret
|
||||||
; 1d6e
|
; 1d6e
|
||||||
|
|
||||||
LoadStandardMenuDataHeader:: ; 1d6e
|
LoadStandardMenuHeader:: ; 1d6e
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ret
|
ret
|
||||||
; 1d75
|
; 1d75
|
||||||
|
|
||||||
.MenuDataHeader: ; 1d75
|
.MenuHeader: ; 1d75
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw 0
|
dw 0
|
||||||
@ -76,8 +76,8 @@ VerticalMenu::
|
|||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call PlaceVerticalMenuItems
|
call PlaceVerticalMenuItems
|
||||||
call ApplyTilemap
|
call ApplyTilemap
|
||||||
call CopyMenuData2
|
call CopyMenuData
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 7, a
|
bit 7, a
|
||||||
jr z, .cancel
|
jr z, .cancel
|
||||||
call InitVerticalMenuCursor
|
call InitVerticalMenuCursor
|
||||||
@ -95,7 +95,7 @@ VerticalMenu::
|
|||||||
; 0x1dab
|
; 0x1dab
|
||||||
|
|
||||||
GetMenu2:: ; 1dab
|
GetMenu2:: ; 1dab
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
ld a, [wMenuCursorY]
|
ld a, [wMenuCursorY]
|
||||||
@ -106,7 +106,7 @@ CopyNameFromMenu::
|
|||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
push af
|
push af
|
||||||
ld hl, wMenuData2Pointer
|
ld hl, wMenuDataPointer
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -130,14 +130,14 @@ PlaceYesNoBox:: ; 1dd2
|
|||||||
jr _YesNoBox
|
jr _YesNoBox
|
||||||
|
|
||||||
PlaceGenericTwoOptionBox:: ; 1dd4
|
PlaceGenericTwoOptionBox:: ; 1dd4
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
jr InterpretTwoOptionMenu
|
jr InterpretTwoOptionMenu
|
||||||
|
|
||||||
_YesNoBox:: ; 1dd9
|
_YesNoBox:: ; 1dd9
|
||||||
; Return nc (yes) or c (no).
|
; Return nc (yes) or c (no).
|
||||||
push bc
|
push bc
|
||||||
ld hl, YesNoMenuDataHeader
|
ld hl, YesNoMenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
pop bc
|
pop bc
|
||||||
; This seems to be an overflow prevention, but
|
; This seems to be an overflow prevention, but
|
||||||
; it was coded wrong.
|
; it was coded wrong.
|
||||||
@ -179,29 +179,29 @@ InterpretTwoOptionMenu:: ; 1dfe
|
|||||||
ret
|
ret
|
||||||
; 1e1d
|
; 1e1d
|
||||||
|
|
||||||
YesNoMenuDataHeader:: ; 1e1d
|
YesNoMenuHeader:: ; 1e1d
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 5, 15, 9
|
menu_coords 10, 5, 15, 9
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 1e25
|
; 1e25
|
||||||
|
|
||||||
.MenuData2: ; 1e25
|
.MenuData: ; 1e25
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2
|
db 2
|
||||||
db "YES@"
|
db "YES@"
|
||||||
db "NO@"
|
db "NO@"
|
||||||
; 1e2e
|
; 1e2e
|
||||||
|
|
||||||
OffsetMenuDataHeader:: ; 1e2e
|
OffsetMenuHeader:: ; 1e2e
|
||||||
call _OffsetMenuDataHeader
|
call _OffsetMenuHeader
|
||||||
call PushWindow
|
call PushWindow
|
||||||
ret
|
ret
|
||||||
; 1e35
|
; 1e35
|
||||||
|
|
||||||
_OffsetMenuDataHeader:: ; 1e35
|
_OffsetMenuHeader:: ; 1e35
|
||||||
push de
|
push de
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
pop de
|
pop de
|
||||||
ld a, [wMenuBorderLeftCoord]
|
ld a, [wMenuBorderLeftCoord]
|
||||||
ld h, a
|
ld h, a
|
||||||
@ -243,7 +243,7 @@ SetUpMenu:: ; 1e70
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
DrawVariableLengthMenuBox::
|
DrawVariableLengthMenuBox::
|
||||||
call CopyMenuData2
|
call CopyMenuData
|
||||||
call GetMenuIndexSet
|
call GetMenuIndexSet
|
||||||
call AutomaticGetMenuBottomCoord
|
call AutomaticGetMenuBottomCoord
|
||||||
call MenuBox
|
call MenuBox
|
||||||
@ -271,7 +271,7 @@ AutomaticGetMenuBottomCoord:: ; 1ea6
|
|||||||
ld a, [wMenuBorderRightCoord]
|
ld a, [wMenuBorderRightCoord]
|
||||||
sub c
|
sub c
|
||||||
ld c, a
|
ld c, a
|
||||||
ld a, [wMenuData2Items]
|
ld a, [wMenuDataItems]
|
||||||
add a
|
add a
|
||||||
inc a
|
inc a
|
||||||
ld b, a
|
ld b, a
|
||||||
@ -282,7 +282,7 @@ AutomaticGetMenuBottomCoord:: ; 1ea6
|
|||||||
; 1ebd
|
; 1ebd
|
||||||
|
|
||||||
GetMenuIndexSet:: ; 1ebd
|
GetMenuIndexSet:: ; 1ebd
|
||||||
ld hl, wMenuData2IndicesPointer
|
ld hl, wMenuDataIndicesPointer
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -302,7 +302,7 @@ GetMenuIndexSet:: ; 1ebd
|
|||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [wMenuData2Items], a
|
ld [wMenuDataItems], a
|
||||||
ret
|
ret
|
||||||
; 1eda
|
; 1eda
|
||||||
|
|
||||||
@ -320,7 +320,7 @@ RunMenuItemPrintingFunction:: ; 1eda
|
|||||||
push hl
|
push hl
|
||||||
ld d, h
|
ld d, h
|
||||||
ld e, l
|
ld e, l
|
||||||
ld hl, wMenuData2DisplayFunctionPointer
|
ld hl, wMenuDataDisplayFunctionPointer
|
||||||
call ._hl_
|
call ._hl_
|
||||||
pop hl
|
pop hl
|
||||||
ld de, 2 * SCREEN_WIDTH
|
ld de, 2 * SCREEN_WIDTH
|
||||||
@ -339,13 +339,13 @@ RunMenuItemPrintingFunction:: ; 1eda
|
|||||||
InitMenuCursorAndButtonPermissions:: ; 1eff
|
InitMenuCursorAndButtonPermissions:: ; 1eff
|
||||||
call InitVerticalMenuCursor
|
call InitVerticalMenuCursor
|
||||||
ld hl, wMenuJoypadFilter
|
ld hl, wMenuJoypadFilter
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 3, a
|
bit 3, a
|
||||||
jr z, .disallow_select
|
jr z, .disallow_select
|
||||||
set START_F, [hl]
|
set START_F, [hl]
|
||||||
|
|
||||||
.disallow_select
|
.disallow_select
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 2, a
|
bit 2, a
|
||||||
jr z, .disallow_left_right
|
jr z, .disallow_left_right
|
||||||
set D_LEFT_F, [hl]
|
set D_LEFT_F, [hl]
|
||||||
@ -422,7 +422,7 @@ ContinueGettingMenuJoypad:
|
|||||||
|
|
||||||
PlaceMenuStrings:: ; 1f79
|
PlaceMenuStrings:: ; 1f79
|
||||||
push de
|
push de
|
||||||
ld hl, wMenuData2PointerTableAddr
|
ld hl, wMenuDataPointerTableAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -471,7 +471,7 @@ MenuJumptable:: ; 1fa7
|
|||||||
GetMenuDataPointerTableEntry:: ; 1fb1
|
GetMenuDataPointerTableEntry:: ; 1fb1
|
||||||
ld e, a
|
ld e, a
|
||||||
ld d, $0
|
ld d, $0
|
||||||
ld hl, wMenuData2PointerTableAddr
|
ld hl, wMenuDataPointerTableAddr
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
@ -485,9 +485,9 @@ GetMenuDataPointerTableEntry:: ; 1fb1
|
|||||||
ClearWindowData:: ; 1fbf
|
ClearWindowData:: ; 1fbf
|
||||||
ld hl, wWindowStackPointer
|
ld hl, wWindowStackPointer
|
||||||
call .bytefill
|
call .bytefill
|
||||||
ld hl, wMenuDataHeader
|
ld hl, wMenuHeader
|
||||||
call .bytefill
|
call .bytefill
|
||||||
ld hl, wMenuData2Flags
|
ld hl, wMenuDataFlags
|
||||||
call .bytefill
|
call .bytefill
|
||||||
ld hl, w2DMenuCursorInitY
|
ld hl, w2DMenuCursorInitY
|
||||||
call .bytefill
|
call .bytefill
|
||||||
@ -563,7 +563,7 @@ Place2DMenuItemName:: ; 201c
|
|||||||
|
|
||||||
_2DMenu:: ; 202a
|
_2DMenu:: ; 202a
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
ld [wMenuData2_2DMenuItemStringsBank], a
|
ld [wMenuData_2DMenuItemStringsBank], a
|
||||||
farcall _2DMenu_
|
farcall _2DMenu_
|
||||||
ld a, [wMenuCursorBuffer]
|
ld a, [wMenuCursorBuffer]
|
||||||
ret
|
ret
|
||||||
@ -571,7 +571,7 @@ _2DMenu:: ; 202a
|
|||||||
|
|
||||||
InterpretBattleMenu:: ; 2039
|
InterpretBattleMenu:: ; 2039
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
ld [wMenuData2_2DMenuItemStringsBank], a
|
ld [wMenuData_2DMenuItemStringsBank], a
|
||||||
farcall _InterpretBattleMenu
|
farcall _InterpretBattleMenu
|
||||||
ld a, [wMenuCursorBuffer]
|
ld a, [wMenuCursorBuffer]
|
||||||
ret
|
ret
|
||||||
@ -579,7 +579,7 @@ InterpretBattleMenu:: ; 2039
|
|||||||
|
|
||||||
InterpretMobileMenu:: ; 2048
|
InterpretMobileMenu:: ; 2048
|
||||||
ld a, [hROMBank]
|
ld a, [hROMBank]
|
||||||
ld [wMenuData2_2DMenuItemStringsBank], a
|
ld [wMenuData_2DMenuItemStringsBank], a
|
||||||
farcall _InterpretMobileMenu
|
farcall _InterpretMobileMenu
|
||||||
ld a, [wMenuCursorBuffer]
|
ld a, [wMenuCursorBuffer]
|
||||||
ret
|
ret
|
||||||
|
@ -79,17 +79,17 @@ GetMenuBoxDims:: ; 0x1c53
|
|||||||
ret
|
ret
|
||||||
; 0x1c66
|
; 0x1c66
|
||||||
|
|
||||||
CopyMenuData2:: ; 1c66
|
CopyMenuData:: ; 1c66
|
||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
push bc
|
push bc
|
||||||
push af
|
push af
|
||||||
ld hl, wMenuData2Pointer
|
ld hl, wMenuDataPointer
|
||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
ld h, [hl]
|
ld h, [hl]
|
||||||
ld l, a
|
ld l, a
|
||||||
ld de, wMenuData2Flags
|
ld de, wMenuDataFlags
|
||||||
ld bc, wMenuData2End - wMenuData2Flags
|
ld bc, wMenuDataEnd - wMenuDataFlags
|
||||||
call CopyBytes
|
call CopyBytes
|
||||||
pop af
|
pop af
|
||||||
pop bc
|
pop bc
|
||||||
@ -111,8 +111,8 @@ GetWindowStackTop:: ; 1c7e
|
|||||||
; 1c89
|
; 1c89
|
||||||
|
|
||||||
PlaceVerticalMenuItems:: ; 1c89
|
PlaceVerticalMenuItems:: ; 1c89
|
||||||
call CopyMenuData2
|
call CopyMenuData
|
||||||
ld hl, wMenuData2Pointer
|
ld hl, wMenuDataPointer
|
||||||
ld e, [hl]
|
ld e, [hl]
|
||||||
inc hl
|
inc hl
|
||||||
ld d, [hl]
|
ld d, [hl]
|
||||||
@ -132,7 +132,7 @@ PlaceVerticalMenuItems:: ; 1c89
|
|||||||
dec b
|
dec b
|
||||||
jr nz, .loop
|
jr nz, .loop
|
||||||
|
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 4, a
|
bit 4, a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
@ -161,14 +161,14 @@ GetMenuTextStartCoord:: ; 1cc6
|
|||||||
ld c, a
|
ld c, a
|
||||||
inc c
|
inc c
|
||||||
; bit 6: if not set, leave extra room on top
|
; bit 6: if not set, leave extra room on top
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 6, a
|
bit 6, a
|
||||||
jr nz, .bit_6_set
|
jr nz, .bit_6_set
|
||||||
inc b
|
inc b
|
||||||
|
|
||||||
.bit_6_set
|
.bit_6_set
|
||||||
; bit 7: if set, leave extra room on the left
|
; bit 7: if set, leave extra room on the left
|
||||||
ld a, [wMenuData2Flags]
|
ld a, [wMenuDataFlags]
|
||||||
bit 7, a
|
bit 7, a
|
||||||
jr z, .bit_7_clear
|
jr z, .bit_7_clear
|
||||||
inc c
|
inc c
|
||||||
|
@ -520,10 +520,10 @@ yesorno: MACRO
|
|||||||
db yesorno_command
|
db yesorno_command
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
enum loadmenudata_command ; $4f
|
enum loadmenuheader_command ; $4f
|
||||||
loadmenudata: MACRO
|
loadmenuheader: MACRO
|
||||||
db loadmenudata_command
|
db loadmenuheader_command
|
||||||
dw \1 ; data
|
dw \1 ; menu_header
|
||||||
ENDM
|
ENDM
|
||||||
|
|
||||||
enum closewindow_command ; $50
|
enum closewindow_command ; $50
|
||||||
|
@ -25,7 +25,7 @@ CeladonDeptStore6FVendingMachine:
|
|||||||
writetext CeladonVendingText
|
writetext CeladonVendingText
|
||||||
.Start:
|
.Start:
|
||||||
special Special_PlaceMoneyTopRight
|
special Special_PlaceMoneyTopRight
|
||||||
loadmenudata .MenuData
|
loadmenuheader .MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .FreshWater
|
if_equal 1, .FreshWater
|
||||||
@ -79,13 +79,13 @@ CeladonDeptStore6FVendingMachine:
|
|||||||
waitbutton
|
waitbutton
|
||||||
jump .Start
|
jump .Start
|
||||||
|
|
||||||
.MenuData:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 0, 2, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "FRESH WATER ¥200@"
|
db "FRESH WATER ¥200@"
|
||||||
|
@ -25,7 +25,7 @@ CeladonGameCornerPrizeRoomTMVendor:
|
|||||||
writetext CeladonPrizeRoom_AskWhichPrizeText
|
writetext CeladonPrizeRoom_AskWhichPrizeText
|
||||||
CeladonPrizeRoom_tmcounterloop:
|
CeladonPrizeRoom_tmcounterloop:
|
||||||
special Special_DisplayCoinCaseBalance
|
special Special_DisplayCoinCaseBalance
|
||||||
loadmenudata CeladonPrizeRoom_TMMenuDataHeader
|
loadmenuheader CeladonPrizeRoom_TMMenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .doubleteam
|
if_equal 1, .doubleteam
|
||||||
@ -102,13 +102,13 @@ CeladonPrizeRoom_NoCoinCase:
|
|||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
CeladonPrizeRoom_TMMenuDataHeader:
|
CeladonPrizeRoom_TMMenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, 15, TEXTBOX_Y - 1
|
menu_coords 0, 2, 15, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "TM32 1500@"
|
db "TM32 1500@"
|
||||||
@ -126,7 +126,7 @@ CeladonGameCornerPrizeRoomPokemonVendor:
|
|||||||
.loop
|
.loop
|
||||||
writetext CeladonPrizeRoom_AskWhichPrizeText
|
writetext CeladonPrizeRoom_AskWhichPrizeText
|
||||||
special Special_DisplayCoinCaseBalance
|
special Special_DisplayCoinCaseBalance
|
||||||
loadmenudata .MenuDataHeader
|
loadmenuheader .MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .pikachu
|
if_equal 1, .pikachu
|
||||||
@ -188,13 +188,13 @@ CeladonGameCornerPrizeRoomPokemonVendor:
|
|||||||
takecoins 8888
|
takecoins 8888
|
||||||
jump .loop
|
jump .loop
|
||||||
|
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, 17, TEXTBOX_Y - 1
|
menu_coords 0, 2, 17, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "PIKACHU 2222@"
|
db "PIKACHU 2222@"
|
||||||
|
@ -30,7 +30,7 @@ DragonShrine_MapScripts:
|
|||||||
setevent EVENT_RECEIVED_BALLS_FROM_KURT
|
setevent EVENT_RECEIVED_BALLS_FROM_KURT
|
||||||
writetext DragonShrineQuestion1Text
|
writetext DragonShrineQuestion1Text
|
||||||
buttonsound
|
buttonsound
|
||||||
loadmenudata DragonShrineQuestion1_MenuDataHeader
|
loadmenuheader DragonShrineQuestion1_MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .RightAnswer
|
if_equal 1, .RightAnswer
|
||||||
@ -42,7 +42,7 @@ DragonShrine_MapScripts:
|
|||||||
setevent EVENT_DRAGON_SHRINE_QUESTION_2
|
setevent EVENT_DRAGON_SHRINE_QUESTION_2
|
||||||
writetext DragonShrineQuestion2Text
|
writetext DragonShrineQuestion2Text
|
||||||
buttonsound
|
buttonsound
|
||||||
loadmenudata DragonShrineQuestion2_MenuDataHeader
|
loadmenuheader DragonShrineQuestion2_MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .RightAnswer
|
if_equal 1, .RightAnswer
|
||||||
@ -52,7 +52,7 @@ DragonShrine_MapScripts:
|
|||||||
setevent EVENT_DRAGON_SHRINE_QUESTION_3
|
setevent EVENT_DRAGON_SHRINE_QUESTION_3
|
||||||
writetext DragonShrineQuestion3Text
|
writetext DragonShrineQuestion3Text
|
||||||
buttonsound
|
buttonsound
|
||||||
loadmenudata DragonShrineQuestion3_MenuDataHeader
|
loadmenuheader DragonShrineQuestion3_MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .WrongAnswer
|
if_equal 1, .WrongAnswer
|
||||||
@ -62,7 +62,7 @@ DragonShrine_MapScripts:
|
|||||||
setevent EVENT_DRAGON_SHRINE_QUESTION_4
|
setevent EVENT_DRAGON_SHRINE_QUESTION_4
|
||||||
writetext DragonShrineQuestion4Text
|
writetext DragonShrineQuestion4Text
|
||||||
buttonsound
|
buttonsound
|
||||||
loadmenudata DragonShrineQuestion4_MenuDataHeader
|
loadmenuheader DragonShrineQuestion4_MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .RightAnswer
|
if_equal 1, .RightAnswer
|
||||||
@ -72,7 +72,7 @@ DragonShrine_MapScripts:
|
|||||||
setevent EVENT_DRAGON_SHRINE_QUESTION_5
|
setevent EVENT_DRAGON_SHRINE_QUESTION_5
|
||||||
writetext DragonShrineQuestion5Text
|
writetext DragonShrineQuestion5Text
|
||||||
buttonsound
|
buttonsound
|
||||||
loadmenudata DragonShrineQuestion5_MenuDataHeader
|
loadmenuheader DragonShrineQuestion5_MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .WrongAnswer
|
if_equal 1, .WrongAnswer
|
||||||
@ -265,65 +265,65 @@ DragonShrineElder3Script:
|
|||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
DragonShrineQuestion1_MenuDataHeader:
|
DragonShrineQuestion1_MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 8, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 8, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "Pal@"
|
db "Pal@"
|
||||||
db "Underling@"
|
db "Underling@"
|
||||||
db "Friend@"
|
db "Friend@"
|
||||||
|
|
||||||
DragonShrineQuestion2_MenuDataHeader:
|
DragonShrineQuestion2_MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 9, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 9, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "Strategy@"
|
db "Strategy@"
|
||||||
db "Raising@"
|
db "Raising@"
|
||||||
db "Cheating@"
|
db "Cheating@"
|
||||||
|
|
||||||
DragonShrineQuestion3_MenuDataHeader:
|
DragonShrineQuestion3_MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 5, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 5, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "Weak person@"
|
db "Weak person@"
|
||||||
db "Tough person@"
|
db "Tough person@"
|
||||||
db "Anybody@"
|
db "Anybody@"
|
||||||
|
|
||||||
DragonShrineQuestion4_MenuDataHeader:
|
DragonShrineQuestion4_MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 8, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 8, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "Love@"
|
db "Love@"
|
||||||
db "Violence@"
|
db "Violence@"
|
||||||
db "Knowledge@"
|
db "Knowledge@"
|
||||||
|
|
||||||
DragonShrineQuestion5_MenuDataHeader:
|
DragonShrineQuestion5_MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 12, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 12, 4, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
db STATICMENU_CURSOR | STATICMENU_DISABLE_B ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "Tough@"
|
db "Tough@"
|
||||||
|
@ -66,7 +66,7 @@ AcademyBlackboard:
|
|||||||
opentext
|
opentext
|
||||||
writetext AcademyBlackboardText
|
writetext AcademyBlackboardText
|
||||||
.Loop:
|
.Loop:
|
||||||
loadmenudata .BlackboardMenuData
|
loadmenuheader .BlackboardMenuHeader
|
||||||
_2dmenu
|
_2dmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .Poison
|
if_equal 1, .Poison
|
||||||
@ -102,13 +102,13 @@ AcademyBlackboard:
|
|||||||
waitbutton
|
waitbutton
|
||||||
jump .Loop
|
jump .Loop
|
||||||
|
|
||||||
.BlackboardMenuData:
|
.BlackboardMenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 11, 8
|
menu_coords 0, 0, 11, 8
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
dn 3, 2 ; rows, columns
|
dn 3, 2 ; rows, columns
|
||||||
db 5 ; spacing
|
db 5 ; spacing
|
||||||
|
@ -65,7 +65,7 @@ MoveTutor:
|
|||||||
checkcoins 4000
|
checkcoins 4000
|
||||||
if_equal HAVE_LESS, .NotEnoughMoney
|
if_equal HAVE_LESS, .NotEnoughMoney
|
||||||
writetext UnknownText_0x1990ce
|
writetext UnknownText_0x1990ce
|
||||||
loadmenudata .MoveMenuDataHeader
|
loadmenuheader .MoveMenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal MOVETUTOR_FLAMETHROWER, .Flamethrower
|
if_equal MOVETUTOR_FLAMETHROWER, .Flamethrower
|
||||||
@ -94,13 +94,13 @@ MoveTutor:
|
|||||||
if_equal FALSE, .TeachMove
|
if_equal FALSE, .TeachMove
|
||||||
jump .Incompatible
|
jump .Incompatible
|
||||||
|
|
||||||
.MoveMenuDataHeader:
|
.MoveMenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, 15, TEXTBOX_Y - 1
|
menu_coords 0, 2, 15, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "FLAMETHROWER@"
|
db "FLAMETHROWER@"
|
||||||
|
@ -14,7 +14,7 @@ GoldenrodVendingMachine:
|
|||||||
writetext GoldenrodVendingText
|
writetext GoldenrodVendingText
|
||||||
.Start:
|
.Start:
|
||||||
special Special_PlaceMoneyTopRight
|
special Special_PlaceMoneyTopRight
|
||||||
loadmenudata .MenuData
|
loadmenuheader .MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .FreshWater
|
if_equal 1, .FreshWater
|
||||||
@ -68,13 +68,13 @@ GoldenrodVendingMachine:
|
|||||||
waitbutton
|
waitbutton
|
||||||
jump .Start
|
jump .Start
|
||||||
|
|
||||||
.MenuData:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 0, 2, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "FRESH WATER ¥200@"
|
db "FRESH WATER ¥200@"
|
||||||
|
@ -61,7 +61,7 @@ GoldenrodGmeCornerTMVendorScript:
|
|||||||
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
|
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
|
||||||
GoldenrodGmeCornerTMVendor_LoopScript: ; 056c36
|
GoldenrodGmeCornerTMVendor_LoopScript: ; 056c36
|
||||||
special Special_DisplayCoinCaseBalance
|
special Special_DisplayCoinCaseBalance
|
||||||
loadmenudata GoldenrodGameCornerTMVendorMenuData
|
loadmenuheader GoldenrodGameCornerTMVendorMenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .Thunder
|
if_equal 1, .Thunder
|
||||||
@ -138,13 +138,13 @@ GoldenrodGameCornerPrizeVendor_NoCoinCaseScript:
|
|||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
GoldenrodGameCornerTMVendorMenuData:
|
GoldenrodGameCornerTMVendorMenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, 15, TEXTBOX_Y - 1
|
menu_coords 0, 2, 15, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "TM25 5500@"
|
db "TM25 5500@"
|
||||||
@ -162,7 +162,7 @@ GoldenrodGameCornerPrizeMonVendorScript:
|
|||||||
.loop
|
.loop
|
||||||
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
|
writetext GoldenrodGameCornerPrizeVendorWhichPrizeText
|
||||||
special Special_DisplayCoinCaseBalance
|
special Special_DisplayCoinCaseBalance
|
||||||
loadmenudata .MenuDataHeader
|
loadmenuheader .MenuHeader
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, .abra
|
if_equal 1, .abra
|
||||||
@ -224,13 +224,13 @@ GoldenrodGameCornerPrizeMonVendorScript:
|
|||||||
takecoins 1500
|
takecoins 1500
|
||||||
jump .loop
|
jump .loop
|
||||||
|
|
||||||
.MenuDataHeader:
|
.MenuHeader:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, 17, TEXTBOX_Y - 1
|
menu_coords 0, 2, 17, TEXTBOX_Y - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "ABRA 100@"
|
db "ABRA 100@"
|
||||||
|
@ -25,7 +25,7 @@ PokecomCenterAdminRoomMobileSignpost0Script:
|
|||||||
waitbutton
|
waitbutton
|
||||||
UnknownScript_0x625df:
|
UnknownScript_0x625df:
|
||||||
reloadmappart
|
reloadmappart
|
||||||
loadmenudata MenuDataHeader_0x62602
|
loadmenuheader MenuHeader_0x62602
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, UnknownScript_0x625f0
|
if_equal 1, UnknownScript_0x625f0
|
||||||
@ -48,13 +48,13 @@ UnknownScript_0x62600:
|
|||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
MenuDataHeader_0x62602:
|
MenuHeader_0x62602:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 15, 8
|
menu_coords 0, 0, 15, 8
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "# つうしん クラブ@" ; # COM CLUB
|
db "# つうしん クラブ@" ; # COM CLUB
|
||||||
@ -67,7 +67,7 @@ PokecomCenterAdminRoomMobileSignpost1Script:
|
|||||||
waitbutton
|
waitbutton
|
||||||
UnknownScript_0x62629:
|
UnknownScript_0x62629:
|
||||||
reloadmappart
|
reloadmappart
|
||||||
loadmenudata MenuDataHeader_0x6264c
|
loadmenuheader MenuHeader_0x6264c
|
||||||
verticalmenu
|
verticalmenu
|
||||||
closewindow
|
closewindow
|
||||||
if_equal 1, UnknownScript_0x6263a
|
if_equal 1, UnknownScript_0x6263a
|
||||||
@ -90,13 +90,13 @@ UnknownScript_0x6264a:
|
|||||||
closetext
|
closetext
|
||||||
end
|
end
|
||||||
|
|
||||||
MenuDataHeader_0x6264c:
|
MenuHeader_0x6264c:
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 15, 8
|
menu_coords 0, 0, 15, 8
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2:
|
.MenuData:
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "でんわ<WO>つかうとき@" ; Use phone
|
db "でんわ<WO>つかうとき@" ; Use phone
|
||||||
|
@ -284,8 +284,8 @@ asm_4828d: ; 4828d (12:428d)
|
|||||||
hlcoord 1, 16
|
hlcoord 1, 16
|
||||||
ld de, MobileDesc_Gender
|
ld de, MobileDesc_Gender
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld hl, MenuDataHeader_0x484f1
|
ld hl, MenuHeader_0x484f1
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Function4873c
|
call Function4873c
|
||||||
hlcoord 11, 2
|
hlcoord 11, 2
|
||||||
ld b, $4
|
ld b, $4
|
||||||
@ -336,10 +336,10 @@ Function48304: ; 48304 (12:4304)
|
|||||||
hlcoord 1, 16
|
hlcoord 1, 16
|
||||||
ld de, MobileDesc_Address
|
ld de, MobileDesc_Address
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld hl, MenuDataHeader_0x48504
|
ld hl, MenuHeader_0x48504
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld hl, MenuDataHeader_0x48513
|
ld hl, MenuHeader_0x48513
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
hlcoord 10, 0
|
hlcoord 10, 0
|
||||||
ld b, $c
|
ld b, $c
|
||||||
ld c, $8
|
ld c, $8
|
||||||
@ -562,14 +562,14 @@ MobileDesc_Address: db "Where do you live?@"
|
|||||||
MobileDesc_ZipCode: db "Your zip code?@"
|
MobileDesc_ZipCode: db "Your zip code?@"
|
||||||
; 484f1
|
; 484f1
|
||||||
|
|
||||||
MenuDataHeader_0x484f1: ; 0x484f1
|
MenuHeader_0x484f1: ; 0x484f1
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 2, SCREEN_WIDTH - 1, 7
|
menu_coords 11, 2, SCREEN_WIDTH - 1, 7
|
||||||
dw MenuData2_0x484f9
|
dw MenuData_0x484f9
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x484f9
|
; 0x484f9
|
||||||
|
|
||||||
MenuData2_0x484f9: ; 0x484f9
|
MenuData_0x484f9: ; 0x484f9
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
Strings_484fb:
|
Strings_484fb:
|
||||||
@ -577,26 +577,26 @@ String_484fb: db "Boy@"
|
|||||||
String_484ff: db "Girl@"
|
String_484ff: db "Girl@"
|
||||||
; 0x48504
|
; 0x48504
|
||||||
|
|
||||||
MenuDataHeader_0x48504: ; 0x48504
|
MenuHeader_0x48504: ; 0x48504
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 10, 0, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
|
|
||||||
MenuDataHeader_0x48509: ; 0x48509
|
MenuHeader_0x48509: ; 0x48509
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 5, SCREEN_WIDTH - 1, 7
|
menu_coords 10, 5, SCREEN_WIDTH - 1, 7
|
||||||
|
|
||||||
MenuDataHeader_0x4850e: ; 0x4850e
|
MenuHeader_0x4850e: ; 0x4850e
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 9, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 10, 9, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
|
|
||||||
MenuDataHeader_0x48513: ; 0x48513
|
MenuHeader_0x48513: ; 0x48513
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 1, 18, 12
|
menu_coords 11, 1, 18, 12
|
||||||
dw MenuData2_0x4851b
|
dw MenuData_0x4851b
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x4851b
|
; 0x4851b
|
||||||
|
|
||||||
MenuData2_0x4851b: ; 0x4851b
|
MenuData_0x4851b: ; 0x4851b
|
||||||
db SCROLLINGMENU_DISPLAY_ARROWS | SCROLLINGMENU_ENABLE_RIGHT | SCROLLINGMENU_ENABLE_LEFT | SCROLLINGMENU_CALL_FUNCTION1_CANCEL ; flags
|
db SCROLLINGMENU_DISPLAY_ARROWS | SCROLLINGMENU_ENABLE_RIGHT | SCROLLINGMENU_ENABLE_LEFT | SCROLLINGMENU_CALL_FUNCTION1_CANCEL ; flags
|
||||||
db 6 ; items
|
db 6 ; items
|
||||||
|
|
||||||
@ -825,8 +825,8 @@ Function4876f: ; 4876f (12:476f)
|
|||||||
hlcoord 1, 16
|
hlcoord 1, 16
|
||||||
ld de, MobileDesc_Age
|
ld de, MobileDesc_Age
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld hl, MenuDataHeader_0x48509
|
ld hl, MenuHeader_0x48509
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld a, [hInMenu]
|
ld a, [hInMenu]
|
||||||
push af
|
push af
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -1028,8 +1028,8 @@ Function488d3: ; 488d3 (12:48d3)
|
|||||||
call PlaceString
|
call PlaceString
|
||||||
call Function48a3a
|
call Function48a3a
|
||||||
jp c, Function4840c
|
jp c, Function4840c
|
||||||
ld hl, MenuDataHeader_0x4850e
|
ld hl, MenuHeader_0x4850e
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld a, [hInMenu]
|
ld a, [hInMenu]
|
||||||
push af
|
push af
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -1225,8 +1225,8 @@ String_48a38: ; 48a38
|
|||||||
; 48a3a
|
; 48a3a
|
||||||
|
|
||||||
Function48a3a: ; 48a3a (12:4a3a)
|
Function48a3a: ; 48a3a (12:4a3a)
|
||||||
ld hl, MenuDataHeader_0x48a9c
|
ld hl, MenuHeader_0x48a9c
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Function4873c
|
call Function4873c
|
||||||
ld a, $a
|
ld a, $a
|
||||||
ld [w2DMenuCursorInitY], a
|
ld [w2DMenuCursorInitY], a
|
||||||
@ -1271,7 +1271,7 @@ Function48a9a: ; 48a9a (12:4a9a)
|
|||||||
ret
|
ret
|
||||||
; 48a9c (12:4a9c)
|
; 48a9c (12:4a9c)
|
||||||
|
|
||||||
MenuDataHeader_0x48a9c: ; 0x48a9c
|
MenuHeader_0x48a9c: ; 0x48a9c
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 8, SCREEN_WIDTH - 1, 13
|
menu_coords 10, 8, SCREEN_WIDTH - 1, 13
|
||||||
|
|
||||||
|
@ -684,8 +684,8 @@ Function4ac58: ; 4ac58
|
|||||||
hlcoord 1, 15
|
hlcoord 1, 15
|
||||||
call ClearBox
|
call ClearBox
|
||||||
farcall FreezeMonIcons
|
farcall FreezeMonIcons
|
||||||
ld hl, MenuDataHeader_0x4aca2
|
ld hl, MenuHeader_0x4aca2
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld hl, wd019
|
ld hl, wd019
|
||||||
bit 1, [hl]
|
bit 1, [hl]
|
||||||
jr z, .asm_4ac89
|
jr z, .asm_4ac89
|
||||||
@ -714,7 +714,7 @@ Function4ac58: ; 4ac58
|
|||||||
ret
|
ret
|
||||||
; 4aca2
|
; 4aca2
|
||||||
|
|
||||||
MenuDataHeader_0x4aca2: ; 0x4aca2
|
MenuHeader_0x4aca2: ; 0x4aca2
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 9, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 11, 9, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -724,19 +724,19 @@ MenuDataHeader_0x4aca2: ; 0x4aca2
|
|||||||
Function4acaa: ; 4acaa
|
Function4acaa: ; 4acaa
|
||||||
.asm_4acaa
|
.asm_4acaa
|
||||||
ld a, $a0
|
ld a, $a0
|
||||||
ld [wMenuData2Flags], a
|
ld [wMenuDataFlags], a
|
||||||
ld a, [wd019]
|
ld a, [wd019]
|
||||||
bit 1, a
|
bit 1, a
|
||||||
jr z, .asm_4acc2
|
jr z, .asm_4acc2
|
||||||
ld a, $2
|
ld a, $2
|
||||||
ld [wMenuData2Items], a
|
ld [wMenuDataItems], a
|
||||||
ld a, $c
|
ld a, $c
|
||||||
ld [wMenuBorderTopCoord], a
|
ld [wMenuBorderTopCoord], a
|
||||||
jr .asm_4accc
|
jr .asm_4accc
|
||||||
|
|
||||||
.asm_4acc2
|
.asm_4acc2
|
||||||
ld a, $4
|
ld a, $4
|
||||||
ld [wMenuData2Items], a
|
ld [wMenuDataItems], a
|
||||||
ld a, $8
|
ld a, $8
|
||||||
ld [wMenuBorderTopCoord], a
|
ld [wMenuBorderTopCoord], a
|
||||||
|
|
||||||
|
@ -238,8 +238,8 @@ Function8925e: ; 8925e
|
|||||||
Function89261: ; 89261
|
Function89261: ; 89261
|
||||||
push af
|
push af
|
||||||
push bc
|
push bc
|
||||||
ld hl, MenuDataHeader_0x892a3
|
ld hl, MenuHeader_0x892a3
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
pop bc
|
pop bc
|
||||||
ld hl, wMenuBorderTopCoord
|
ld hl, wMenuBorderTopCoord
|
||||||
ld a, c
|
ld a, c
|
||||||
@ -276,14 +276,14 @@ Function89261: ; 89261
|
|||||||
ret
|
ret
|
||||||
; 892a3
|
; 892a3
|
||||||
|
|
||||||
MenuDataHeader_0x892a3: ; 0x892a3
|
MenuHeader_0x892a3: ; 0x892a3
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 5, 15, 9
|
menu_coords 10, 5, 15, 9
|
||||||
dw MenuData2_0x892ab
|
dw MenuData_0x892ab
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x892ab
|
; 0x892ab
|
||||||
|
|
||||||
MenuData2_0x892ab: ; 0x892ab
|
MenuData_0x892ab: ; 0x892ab
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "はい@"
|
db "はい@"
|
||||||
@ -2203,7 +2203,7 @@ Function89d0d: ; 89d0d (22:5d0d)
|
|||||||
|
|
||||||
Function89d5e: ; 89d5e (22:5d5e)
|
Function89d5e: ; 89d5e (22:5d5e)
|
||||||
push af
|
push af
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
pop af
|
pop af
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
call Mobile22_SetBGMapMode0
|
call Mobile22_SetBGMapMode0
|
||||||
@ -2786,8 +2786,8 @@ UnknownText_0x8a111: ; 0x8a111
|
|||||||
Function8a116: ; 8a116 (22:6116)
|
Function8a116: ; 8a116 (22:6116)
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [wd030], a
|
ld [wd030], a
|
||||||
ld hl, MenuDataHeader_0x8a176
|
ld hl, MenuHeader_0x8a176
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
.asm_8a121
|
.asm_8a121
|
||||||
call Mobile22_SetBGMapMode0
|
call Mobile22_SetBGMapMode0
|
||||||
call Function8a17b
|
call Function8a17b
|
||||||
@ -2830,7 +2830,7 @@ Function8a116: ; 8a116 (22:6116)
|
|||||||
ret
|
ret
|
||||||
; 8a176 (22:6176)
|
; 8a176 (22:6176)
|
||||||
|
|
||||||
MenuDataHeader_0x8a176: ; 0x8a176
|
MenuHeader_0x8a176: ; 0x8a176
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 0, SCREEN_WIDTH - 1, 6
|
menu_coords 14, 0, SCREEN_WIDTH - 1, 6
|
||||||
; 8a17b
|
; 8a17b
|
||||||
@ -2840,7 +2840,7 @@ Function8a17b: ; 8a17b (22:617b)
|
|||||||
ld b, $5
|
ld b, $5
|
||||||
ld c, $4
|
ld c, $4
|
||||||
call Function89b3b
|
call Function89b3b
|
||||||
ld hl, MenuDataHeader_0x8a19a
|
ld hl, MenuHeader_0x8a19a
|
||||||
ld a, [wd030]
|
ld a, [wd030]
|
||||||
call Function89d5e
|
call Function89d5e
|
||||||
ld hl, Function8a1b0
|
ld hl, Function8a1b0
|
||||||
@ -2852,14 +2852,14 @@ Function8a17b: ; 8a17b (22:617b)
|
|||||||
ret
|
ret
|
||||||
; 8a19a (22:619a)
|
; 8a19a (22:619a)
|
||||||
|
|
||||||
MenuDataHeader_0x8a19a: ; 0x8a19a
|
MenuHeader_0x8a19a: ; 0x8a19a
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 0, SCREEN_WIDTH - 1, 6
|
menu_coords 14, 0, SCREEN_WIDTH - 1, 6
|
||||||
dw MenuData2_0x8a1a2
|
dw MenuData_0x8a1a2
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8a1a2
|
; 0x8a1a2
|
||||||
|
|
||||||
MenuData2_0x8a1a2: ; 0x8a1a2
|
MenuData_0x8a1a2: ; 0x8a1a2
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING | STATICMENU_WRAP ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "ひらく@"
|
db "ひらく@"
|
||||||
@ -2935,7 +2935,7 @@ UnknownText_0x8a23c: ; 0x8a23c
|
|||||||
; 0x8a241
|
; 0x8a241
|
||||||
|
|
||||||
Function8a241: ; 8a241 (22:6241)
|
Function8a241: ; 8a241 (22:6241)
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call Function891fe
|
call Function891fe
|
||||||
call Function8a262
|
call Function8a262
|
||||||
jr nc, .asm_8a254
|
jr nc, .asm_8a254
|
||||||
@ -2978,8 +2978,8 @@ Function8a262: ; 8a262 (22:6262)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
Function8a2aa: ; 8a2aa (22:62aa)
|
Function8a2aa: ; 8a2aa (22:62aa)
|
||||||
ld hl, MenuDataHeader_0x8a2ef
|
ld hl, MenuHeader_0x8a2ef
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld hl, UnknownText_0x8a2f4
|
ld hl, UnknownText_0x8a2f4
|
||||||
call PrintText
|
call PrintText
|
||||||
ld a, $1
|
ld a, $1
|
||||||
@ -3011,7 +3011,7 @@ Function8a2aa: ; 8a2aa (22:62aa)
|
|||||||
ret
|
ret
|
||||||
; 8a2ef (22:62ef)
|
; 8a2ef (22:62ef)
|
||||||
|
|
||||||
MenuDataHeader_0x8a2ef: ; 0x8a2ef
|
MenuHeader_0x8a2ef: ; 0x8a2ef
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
; 8a2f4
|
; 8a2f4
|
||||||
@ -3131,16 +3131,16 @@ Function8a3b2: ; 8a3b2 (22:63b2)
|
|||||||
ld b, $6
|
ld b, $6
|
||||||
ld c, $9
|
ld c, $9
|
||||||
call Function89b3b
|
call Function89b3b
|
||||||
ld hl, MenuDataHeader_0x8a435
|
ld hl, MenuHeader_0x8a435
|
||||||
jr .asm_8a3db
|
jr .asm_8a3db
|
||||||
.asm_8a3ce
|
.asm_8a3ce
|
||||||
decoord 0, 2
|
decoord 0, 2
|
||||||
ld b, $8
|
ld b, $8
|
||||||
ld c, $9
|
ld c, $9
|
||||||
call Function89b3b
|
call Function89b3b
|
||||||
ld hl, MenuDataHeader_0x8a40f
|
ld hl, MenuHeader_0x8a40f
|
||||||
.asm_8a3db
|
.asm_8a3db
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ret
|
ret
|
||||||
|
|
||||||
Function8a3df: ; 8a3df (22:63df)
|
Function8a3df: ; 8a3df (22:63df)
|
||||||
@ -3172,14 +3172,14 @@ Function8a400: ; 8a400 (22:6400)
|
|||||||
Unknown_8a408: db 1, 2, -1
|
Unknown_8a408: db 1, 2, -1
|
||||||
Unknown_8a40b: db 1, 2, 3, -1
|
Unknown_8a40b: db 1, 2, 3, -1
|
||||||
|
|
||||||
MenuDataHeader_0x8a40f: ; 0x8a40f
|
MenuHeader_0x8a40f: ; 0x8a40f
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, 10, TEXTBOX_Y - 1
|
menu_coords 0, 2, 10, TEXTBOX_Y - 1
|
||||||
dw MenuData2_0x8a417
|
dw MenuData_0x8a417
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8a417
|
; 0x8a417
|
||||||
|
|
||||||
MenuData2_0x8a417: ; 0x8a417
|
MenuData_0x8a417: ; 0x8a417
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 4 ; items
|
db 4 ; items
|
||||||
db "めいしりスト@"
|
db "めいしりスト@"
|
||||||
@ -3188,14 +3188,14 @@ MenuData2_0x8a417: ; 0x8a417
|
|||||||
db "やめる@"
|
db "やめる@"
|
||||||
; 0x8a435
|
; 0x8a435
|
||||||
|
|
||||||
MenuDataHeader_0x8a435: ; 0x8a435
|
MenuHeader_0x8a435: ; 0x8a435
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 2, 10, 9
|
menu_coords 0, 2, 10, 9
|
||||||
dw MenuData2_0x8a43d
|
dw MenuData_0x8a43d
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8a43d
|
; 0x8a43d
|
||||||
|
|
||||||
MenuData2_0x8a43d: ; 0x8a43d
|
MenuData_0x8a43d: ; 0x8a43d
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "めいしりスト@"
|
db "めいしりスト@"
|
||||||
@ -3462,7 +3462,7 @@ Palette_8a624: ; 8a624
|
|||||||
; 8a62c
|
; 8a62c
|
||||||
|
|
||||||
Function8a62c: ; 8a62c (22:662c)
|
Function8a62c: ; 8a62c (22:662c)
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call Function891fe
|
call Function891fe
|
||||||
xor a
|
xor a
|
||||||
call Function8b94a
|
call Function8b94a
|
||||||
@ -3884,15 +3884,15 @@ Function8a930: ; 8a930 (22:6930)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
Function8a999: ; 8a999 (22:6999)
|
Function8a999: ; 8a999 (22:6999)
|
||||||
ld hl, MenuDataHeader_0x8a9c9
|
ld hl, MenuHeader_0x8a9c9
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld c, $1
|
ld c, $1
|
||||||
.asm_8a9a1
|
.asm_8a9a1
|
||||||
call Function8a9ce
|
call Function8a9ce
|
||||||
jr c, .asm_8a9bb
|
jr c, .asm_8a9bb
|
||||||
push bc
|
push bc
|
||||||
push de
|
push de
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
pop de
|
pop de
|
||||||
dec e
|
dec e
|
||||||
ld a, e
|
ld a, e
|
||||||
@ -3913,7 +3913,7 @@ Jumptable_8a9c5: ; 8a9c5 (22:69c5)
|
|||||||
dw Function8ab3b
|
dw Function8ab3b
|
||||||
; 8a9c9 (22:69c9)
|
; 8a9c9 (22:69c9)
|
||||||
|
|
||||||
MenuDataHeader_0x8a9c9: ; 0x8a9c9
|
MenuHeader_0x8a9c9: ; 0x8a9c9
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 4, 18, TEXTBOX_Y - 1
|
menu_coords 11, 4, 18, TEXTBOX_Y - 1
|
||||||
; 8a9ce
|
; 8a9ce
|
||||||
@ -3926,7 +3926,7 @@ Function8a9ce: ; 8a9ce (22:69ce)
|
|||||||
call Function89b3b
|
call Function89b3b
|
||||||
pop bc
|
pop bc
|
||||||
ld a, c
|
ld a, c
|
||||||
ld hl, MenuDataHeader_0x8a9f2
|
ld hl, MenuHeader_0x8a9f2
|
||||||
call Function89d5e
|
call Function89d5e
|
||||||
ld hl, Function8aa09
|
ld hl, Function8aa09
|
||||||
call Function89d85
|
call Function89d85
|
||||||
@ -3942,14 +3942,14 @@ Function8a9ce: ; 8a9ce (22:69ce)
|
|||||||
ret
|
ret
|
||||||
; 8a9f2 (22:69f2)
|
; 8a9f2 (22:69f2)
|
||||||
|
|
||||||
MenuDataHeader_0x8a9f2: ; 0x8a9f2
|
MenuHeader_0x8a9f2: ; 0x8a9f2
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 4, 18, TEXTBOX_Y - 1
|
menu_coords 11, 4, 18, TEXTBOX_Y - 1
|
||||||
dw MenuData2_0x8a9fa
|
dw MenuData_0x8a9fa
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8a9fa
|
; 0x8a9fa
|
||||||
|
|
||||||
MenuData2_0x8a9fa: ; 0x8a9fa
|
MenuData_0x8a9fa: ; 0x8a9fa
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "へんしゅう@"
|
db "へんしゅう@"
|
||||||
@ -4148,7 +4148,7 @@ Function8ab3b: ; 8ab3b (22:6b3b)
|
|||||||
|
|
||||||
Function8ab93: ; 8ab93 (22:6b93)
|
Function8ab93: ; 8ab93 (22:6b93)
|
||||||
call ClearBGPalettes
|
call ClearBGPalettes
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall Function105688
|
farcall Function105688
|
||||||
call ClearSprites
|
call ClearSprites
|
||||||
call Function891fe
|
call Function891fe
|
||||||
|
@ -808,8 +808,8 @@ Function8b79e: ; 8b79e
|
|||||||
|
|
||||||
Function8b7bd: ; 8b7bd
|
Function8b7bd: ; 8b7bd
|
||||||
call Function8b855
|
call Function8b855
|
||||||
ld hl, MenuDataHeader_0x8b867
|
ld hl, MenuHeader_0x8b867
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
ld a, [wd030]
|
ld a, [wd030]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
ld a, [wd031]
|
ld a, [wd031]
|
||||||
@ -871,7 +871,7 @@ Function8b7bd: ; 8b7bd
|
|||||||
|
|
||||||
Function8b832: ; 8b832
|
Function8b832: ; 8b832
|
||||||
ld a, [wMenuScrollPosition]
|
ld a, [wMenuScrollPosition]
|
||||||
ld hl, wMenuData2Items
|
ld hl, wMenuDataItems
|
||||||
sub [hl]
|
sub [hl]
|
||||||
jr nc, Function8b84b
|
jr nc, Function8b84b
|
||||||
xor a
|
xor a
|
||||||
@ -880,7 +880,7 @@ Function8b832: ; 8b832
|
|||||||
|
|
||||||
Function8b83e: ; 8b83e
|
Function8b83e: ; 8b83e
|
||||||
ld a, [wMenuScrollPosition]
|
ld a, [wMenuScrollPosition]
|
||||||
ld hl, wMenuData2Items
|
ld hl, wMenuDataItems
|
||||||
add [hl]
|
add [hl]
|
||||||
cp $24
|
cp $24
|
||||||
jr c, Function8b84b
|
jr c, Function8b84b
|
||||||
@ -909,16 +909,16 @@ Function8b855: ; 8b855
|
|||||||
ret
|
ret
|
||||||
; 8b867
|
; 8b867
|
||||||
|
|
||||||
MenuDataHeader_0x8b867: ; 0x8b867
|
MenuHeader_0x8b867: ; 0x8b867
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 1, 3, 18, 13
|
menu_coords 1, 3, 18, 13
|
||||||
dw MenuData2_0x8b870
|
dw MenuData_0x8b870
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8b86f
|
; 0x8b86f
|
||||||
|
|
||||||
db 0
|
db 0
|
||||||
|
|
||||||
MenuData2_0x8b870: ; 0x8b870
|
MenuData_0x8b870: ; 0x8b870
|
||||||
db SCROLLINGMENU_ENABLE_FUNCTION3 | SCROLLINGMENU_DISPLAY_ARROWS | SCROLLINGMENU_ENABLE_RIGHT | SCROLLINGMENU_ENABLE_LEFT ; flags
|
db SCROLLINGMENU_ENABLE_FUNCTION3 | SCROLLINGMENU_DISPLAY_ARROWS | SCROLLINGMENU_ENABLE_RIGHT | SCROLLINGMENU_ENABLE_LEFT ; flags
|
||||||
db 5 ; items
|
db 5 ; items
|
||||||
db 3, 1
|
db 3, 1
|
||||||
@ -1035,22 +1035,22 @@ Function8b94a: ; 8b94a
|
|||||||
|
|
||||||
|
|
||||||
Function8b960: ; 8b960 (22:7960)
|
Function8b960: ; 8b960 (22:7960)
|
||||||
ld hl, MenuDataHeader_0x8b9ac
|
ld hl, MenuHeader_0x8b9ac
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Function8b9e9
|
call Function8b9e9
|
||||||
jr c, .asm_8b97a
|
jr c, .asm_8b97a
|
||||||
hlcoord 11, 0
|
hlcoord 11, 0
|
||||||
ld b, $6
|
ld b, $6
|
||||||
ld c, $7
|
ld c, $7
|
||||||
call Function8b703
|
call Function8b703
|
||||||
ld hl, MenuDataHeader_0x8b9b1
|
ld hl, MenuHeader_0x8b9b1
|
||||||
jr .asm_8b987
|
jr .asm_8b987
|
||||||
.asm_8b97a
|
.asm_8b97a
|
||||||
hlcoord 11, 0
|
hlcoord 11, 0
|
||||||
ld b, $a
|
ld b, $a
|
||||||
ld c, $7
|
ld c, $7
|
||||||
call Function8b703
|
call Function8b703
|
||||||
ld hl, MenuDataHeader_0x8b9ca
|
ld hl, MenuHeader_0x8b9ca
|
||||||
.asm_8b987
|
.asm_8b987
|
||||||
ld a, $1
|
ld a, $1
|
||||||
call Function89d5e
|
call Function89d5e
|
||||||
@ -1081,18 +1081,18 @@ Function8b9ab: ; 8b9ab
|
|||||||
ret
|
ret
|
||||||
; 8b9ac
|
; 8b9ac
|
||||||
|
|
||||||
MenuDataHeader_0x8b9ac: ; 0x8b9ac
|
MenuHeader_0x8b9ac: ; 0x8b9ac
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 0, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 11, 0, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
|
|
||||||
MenuDataHeader_0x8b9b1: ; 0x8b9b1
|
MenuHeader_0x8b9b1: ; 0x8b9b1
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 0, SCREEN_WIDTH - 1, 7
|
menu_coords 11, 0, SCREEN_WIDTH - 1, 7
|
||||||
dw MenuData2_0x8b9b9
|
dw MenuData_0x8b9b9
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8b9b9
|
; 0x8b9b9
|
||||||
|
|
||||||
MenuData2_0x8b9b9: ; 0x8b9b9
|
MenuData_0x8b9b9: ; 0x8b9b9
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 3 ; items
|
db 3 ; items
|
||||||
db "へんしゅう@" ; EDIT
|
db "へんしゅう@" ; EDIT
|
||||||
@ -1100,14 +1100,14 @@ MenuData2_0x8b9b9: ; 0x8b9b9
|
|||||||
db "やめる@" ; QUIT
|
db "やめる@" ; QUIT
|
||||||
; 0x8b9ca
|
; 0x8b9ca
|
||||||
|
|
||||||
MenuDataHeader_0x8b9ca: ; 0x8b9ca
|
MenuHeader_0x8b9ca: ; 0x8b9ca
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 11, 0, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 11, 0, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw MenuData2_0x8b9d2
|
dw MenuData_0x8b9d2
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
; 0x8b9d2
|
; 0x8b9d2
|
||||||
|
|
||||||
MenuData2_0x8b9d2: ; 0x8b9d2
|
MenuData_0x8b9d2: ; 0x8b9d2
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 5 ; items
|
db 5 ; items
|
||||||
db "みる@" ; VIEW
|
db "みる@" ; VIEW
|
||||||
|
@ -898,8 +898,8 @@ Jumptable_100581: ; 100581
|
|||||||
; 100585
|
; 100585
|
||||||
|
|
||||||
Function100585: ; 100585
|
Function100585: ; 100585
|
||||||
ld hl, MenuDataHeader_1005b2
|
ld hl, MenuHeader_1005b2
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld a, 0
|
ld a, 0
|
||||||
ld [wcd28], a
|
ld [wcd28], a
|
||||||
ld a, [wcd26]
|
ld a, [wcd26]
|
||||||
@ -923,14 +923,14 @@ Function100597: ; 100597
|
|||||||
ret
|
ret
|
||||||
; 1005b2
|
; 1005b2
|
||||||
|
|
||||||
MenuDataHeader_1005b2: ; 1005b2
|
MenuHeader_1005b2: ; 1005b2
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
db 6, 14
|
db 6, 14
|
||||||
db 10, 19
|
db 10, 19
|
||||||
dw MenuData2_1005ba
|
dw MenuData_1005ba
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
MenuData2_1005ba:
|
MenuData_1005ba:
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2
|
db 2
|
||||||
db "はい@"
|
db "はい@"
|
||||||
@ -950,8 +950,8 @@ Jumptable_1005cb: ; 1005cb
|
|||||||
; 1005cf
|
; 1005cf
|
||||||
|
|
||||||
Function1005cf: ; 1005cf
|
Function1005cf: ; 1005cf
|
||||||
ld hl, MenuDataHeader_1005fc
|
ld hl, MenuHeader_1005fc
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld a, 0
|
ld a, 0
|
||||||
ld [wcd28], a
|
ld [wcd28], a
|
||||||
ld a, [wcd26]
|
ld a, [wcd26]
|
||||||
@ -974,14 +974,14 @@ Function1005e1: ; 1005e1
|
|||||||
ret
|
ret
|
||||||
; 1005fc
|
; 1005fc
|
||||||
|
|
||||||
MenuDataHeader_1005fc: ; 1005fc
|
MenuHeader_1005fc: ; 1005fc
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
db 6, 14
|
db 6, 14
|
||||||
db 10, 19
|
db 10, 19
|
||||||
dw MenuData2_100604
|
dw MenuData_100604
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
MenuData2_100604: ; 100604
|
MenuData_100604: ; 100604
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 2
|
db 2
|
||||||
db "かける@"
|
db "かける@"
|
||||||
@ -1800,12 +1800,12 @@ SECTION "bank40_2", ROMX
|
|||||||
Function100b12: ; 100b12
|
Function100b12: ; 100b12
|
||||||
call Function100dd8
|
call Function100dd8
|
||||||
ret c
|
ret c
|
||||||
ld hl, BattleMenuDataHeader
|
ld hl, BattleMenuHeader
|
||||||
ld a, BANK(BattleMenuDataHeader)
|
ld a, BANK(BattleMenuHeader)
|
||||||
ld de, LoadMenuDataHeader
|
ld de, LoadMenuHeader
|
||||||
call FarCall_de
|
call FarCall_de
|
||||||
ld a, BANK(BattleMenuDataHeader)
|
ld a, BANK(BattleMenuHeader)
|
||||||
ld [wMenuData2_2DMenuItemStringsBank], a
|
ld [wMenuData_2DMenuItemStringsBank], a
|
||||||
ld a, [wBattleMenuCursorBuffer]
|
ld a, [wBattleMenuCursorBuffer]
|
||||||
ld [wMenuCursorBuffer], a
|
ld [wMenuCursorBuffer], a
|
||||||
call Function100e72
|
call Function100e72
|
||||||
@ -1845,8 +1845,8 @@ Function100b45: ; 100b45
|
|||||||
; 100b7a
|
; 100b7a
|
||||||
|
|
||||||
Function100b7a: ; 100b7a
|
Function100b7a: ; 100b7a
|
||||||
ld hl, CopyMenuData2
|
ld hl, CopyMenuData
|
||||||
ld a, [wMenuData2_2DMenuItemStringsBank]
|
ld a, [wMenuData_2DMenuItemStringsBank]
|
||||||
rst FarCall
|
rst FarCall
|
||||||
farcall Draw2DMenu
|
farcall Draw2DMenu
|
||||||
farcall MobileTextBorder
|
farcall MobileTextBorder
|
||||||
@ -2103,28 +2103,28 @@ MobileBattleMonMenu: ; 100d22
|
|||||||
; 100d67
|
; 100d67
|
||||||
|
|
||||||
Function100d67: ; 100d67
|
Function100d67: ; 100d67
|
||||||
ld hl, .MenuDataHeader
|
ld hl, .MenuHeader
|
||||||
call CopyMenuDataHeader
|
call CopyMenuHeader
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call UpdateSprites
|
call UpdateSprites
|
||||||
call PlaceVerticalMenuItems
|
call PlaceVerticalMenuItems
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call CopyMenuData2
|
call CopyMenuData
|
||||||
call InitVerticalMenuCursor
|
call InitVerticalMenuCursor
|
||||||
ld hl, w2DMenuFlags1
|
ld hl, w2DMenuFlags1
|
||||||
set 6, [hl]
|
set 6, [hl]
|
||||||
ret
|
ret
|
||||||
; 100d88
|
; 100d88
|
||||||
|
|
||||||
.MenuDataHeader: ; 100d88
|
.MenuHeader: ; 100d88
|
||||||
db 0 ; flags
|
db 0 ; flags
|
||||||
menu_coords 11, 11, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 11, 11, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw .MenuData2
|
dw .MenuData
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
.MenuData2: ; 100d90
|
.MenuData: ; 100d90
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 3
|
db 3
|
||||||
db "いれかえる@" ; TRADE
|
db "いれかえる@" ; TRADE
|
||||||
@ -4535,7 +4535,7 @@ Unknown_101d8d: ; 101d8d
|
|||||||
|
|
||||||
Function101d95: ; 101d95
|
Function101d95: ; 101d95
|
||||||
call Function101ee2
|
call Function101ee2
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld e, $0e
|
ld e, $0e
|
||||||
call Function101ee4
|
call Function101ee4
|
||||||
ld hl, wcd29
|
ld hl, wcd29
|
||||||
@ -6200,8 +6200,8 @@ Jumptable_10292f: ; 10292f
|
|||||||
; 102933
|
; 102933
|
||||||
|
|
||||||
Function102933: ; 102933
|
Function102933: ; 102933
|
||||||
ld hl, MenuDataHeader_1029bb
|
ld hl, MenuHeader_1029bb
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Function102e07
|
call Function102e07
|
||||||
ld a, $32
|
ld a, $32
|
||||||
ld [TextDelayFrames], a
|
ld [TextDelayFrames], a
|
||||||
@ -6285,7 +6285,7 @@ Function1029af: ; 1029af
|
|||||||
ret
|
ret
|
||||||
; 1029bb
|
; 1029bb
|
||||||
|
|
||||||
MenuDataHeader_1029bb: ; 1029bb
|
MenuHeader_1029bb: ; 1029bb
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 3, 10, 15, 12
|
menu_coords 3, 10, 15, 12
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -6305,7 +6305,7 @@ Jumptable_1029cb: ; 1029cb
|
|||||||
; 1029cf
|
; 1029cf
|
||||||
|
|
||||||
Function1029cf: ; 1029cf
|
Function1029cf: ; 1029cf
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
hlcoord 10, 7
|
hlcoord 10, 7
|
||||||
ld b, 3
|
ld b, 3
|
||||||
ld c, 8
|
ld c, 8
|
||||||
@ -7756,8 +7756,8 @@ Unknown_103608: ; 103608
|
|||||||
; 103612
|
; 103612
|
||||||
|
|
||||||
Special_AskMobileOrCable: ; 103612
|
Special_AskMobileOrCable: ; 103612
|
||||||
ld hl, MenuDataHeader_103640
|
ld hl, MenuHeader_103640
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
ld a, [wMobileOrCable_LastSelection]
|
ld a, [wMobileOrCable_LastSelection]
|
||||||
and $0f
|
and $0f
|
||||||
jr z, .skip_load
|
jr z, .skip_load
|
||||||
@ -7782,13 +7782,13 @@ Special_AskMobileOrCable: ; 103612
|
|||||||
ret
|
ret
|
||||||
; 103640
|
; 103640
|
||||||
|
|
||||||
MenuDataHeader_103640: ; 103640
|
MenuHeader_103640: ; 103640
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 6, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 6, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw MenuData2_103648
|
dw MenuData_103648
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
MenuData2_103648: ; 103648
|
MenuData_103648: ; 103648
|
||||||
db STATICMENU_CURSOR ; flags
|
db STATICMENU_CURSOR ; flags
|
||||||
db 2
|
db 2
|
||||||
db "モバイル@"
|
db "モバイル@"
|
||||||
@ -7849,8 +7849,8 @@ Special_Mobile_SelectThreeMons: ; 10366e
|
|||||||
.asm_1036b5
|
.asm_1036b5
|
||||||
call Function103700
|
call Function103700
|
||||||
jr c, .asm_1036f4
|
jr c, .asm_1036f4
|
||||||
ld hl, MenuDataHeader_103747
|
ld hl, MenuHeader_103747
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
call ExitMenu
|
call ExitMenu
|
||||||
jr c, .asm_1036f4
|
jr c, .asm_1036f4
|
||||||
@ -7936,13 +7936,13 @@ Function103700: ; 103700
|
|||||||
ret
|
ret
|
||||||
; 103747
|
; 103747
|
||||||
|
|
||||||
MenuDataHeader_103747: ; 103747
|
MenuHeader_103747: ; 103747
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 13, 5, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw MenuData2_10374f
|
dw MenuData_10374f
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
MenuData2_10374f: ; 10374f
|
MenuData_10374f: ; 10374f
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING ; flags
|
||||||
db 3
|
db 3
|
||||||
db "はい@"
|
db "はい@"
|
||||||
|
@ -7168,12 +7168,12 @@ Function117764_a_button: ; 11784c (45:784c)
|
|||||||
jp Function117764_start
|
jp Function117764_start
|
||||||
|
|
||||||
Function1178aa: ; 1178aa (45:78aa)
|
Function1178aa: ; 1178aa (45:78aa)
|
||||||
ld hl, MenuDataHeader_1179b5
|
ld hl, MenuHeader_1179b5
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
ld hl, MenuDataHeader_1179bd
|
ld hl, MenuHeader_1179bd
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
farcall ReloadMapPart
|
farcall ReloadMapPart
|
||||||
@ -7274,8 +7274,8 @@ asm_11797e: ; 11797e (45:797e)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
Function117984: ; 117984 (45:7984)
|
Function117984: ; 117984 (45:7984)
|
||||||
ld hl, MenuDataHeader_1179b5
|
ld hl, MenuHeader_1179b5
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
farcall ReloadMapPart
|
farcall ReloadMapPart
|
||||||
@ -7297,14 +7297,14 @@ Function1179a7: ; 1179a7 (45:79a7)
|
|||||||
|
|
||||||
; 1179b5 (45:79b5)
|
; 1179b5 (45:79b5)
|
||||||
|
|
||||||
MenuDataHeader_1179b5: ; 1179b5
|
MenuHeader_1179b5: ; 1179b5
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
db 0 ; default option
|
db 0 ; default option
|
||||||
; 1179bd
|
; 1179bd
|
||||||
|
|
||||||
MenuDataHeader_1179bd: ; 1179bd
|
MenuHeader_1179bd: ; 1179bd
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -7438,8 +7438,8 @@ Function117b14:
|
|||||||
ld hl, wcf64
|
ld hl, wcf64
|
||||||
dec [hl]
|
dec [hl]
|
||||||
ret nz
|
ret nz
|
||||||
ld hl, MenuDataHeader_117cbc
|
ld hl, MenuHeader_117cbc
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
jp MobileStudium_JumptableIncrement
|
jp MobileStudium_JumptableIncrement
|
||||||
@ -7450,8 +7450,8 @@ Function117b28:
|
|||||||
jp MobileStudium_JumptableIncrement
|
jp MobileStudium_JumptableIncrement
|
||||||
|
|
||||||
Function117b31:
|
Function117b31:
|
||||||
ld hl, MenuDataHeader_117cc4
|
ld hl, MenuHeader_117cc4
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
hlcoord 16, 8
|
hlcoord 16, 8
|
||||||
@ -7595,8 +7595,8 @@ Function117bb6:
|
|||||||
jp MobileStudium_JumptableIncrement
|
jp MobileStudium_JumptableIncrement
|
||||||
|
|
||||||
Function117c4a:
|
Function117c4a:
|
||||||
ld hl, MenuDataHeader_117cbc
|
ld hl, MenuHeader_117cbc
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
farcall ReloadMapPart
|
farcall ReloadMapPart
|
||||||
@ -7656,13 +7656,13 @@ Function117c89:
|
|||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
ret
|
ret
|
||||||
|
|
||||||
MenuDataHeader_117cbc: ; 0x117cbc
|
MenuHeader_117cbc: ; 0x117cbc
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
db 0 ; default option
|
db 0 ; default option
|
||||||
|
|
||||||
MenuDataHeader_117cc4: ; 0x117cc4
|
MenuHeader_117cc4: ; 0x117cc4
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
|
@ -506,7 +506,7 @@ Function1161d5: ; 1161d5
|
|||||||
|
|
||||||
; 11628c
|
; 11628c
|
||||||
|
|
||||||
MenuDataHeader_11628c: ; 11628c
|
MenuHeader_11628c: ; 11628c
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 6, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 6, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
|
@ -1184,8 +1184,8 @@ BattleTowerRoomMenu_PlacePickLevelMenu:
|
|||||||
ld a, [$c31a]
|
ld a, [$c31a]
|
||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
ld hl, MenuDataHeader_119cf7
|
ld hl, MenuHeader_119cf7
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
call ApplyTilemap
|
call ApplyTilemap
|
||||||
@ -3953,7 +3953,7 @@ BattleTowerRoomMenu_UpdateYesNoMenu:
|
|||||||
ret
|
ret
|
||||||
; 119cf7
|
; 119cf7
|
||||||
|
|
||||||
MenuDataHeader_119cf7: ; 119cf7
|
MenuHeader_119cf7: ; 119cf7
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 12, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 12, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -4635,8 +4635,8 @@ Function11a1ff: ; 11a1ff
|
|||||||
; 11a207
|
; 11a207
|
||||||
|
|
||||||
BattleTowerRoomMenu2_PlaceYesNoMenu: ; 11a207
|
BattleTowerRoomMenu2_PlaceYesNoMenu: ; 11a207
|
||||||
ld hl, MenuDataHeader_11a2de
|
ld hl, MenuHeader_11a2de
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
call ApplyTilemap
|
call ApplyTilemap
|
||||||
@ -4751,14 +4751,14 @@ String_11a2d3: ; 11a2d3
|
|||||||
db "NO@"
|
db "NO@"
|
||||||
; 11a2d6
|
; 11a2d6
|
||||||
|
|
||||||
MenuDataHeader_11a2d6: ; 11a2d6
|
MenuHeader_11a2d6: ; 11a2d6
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 6, SCREEN_WIDTH - 1, 10
|
menu_coords 14, 6, SCREEN_WIDTH - 1, 10
|
||||||
dw NULL
|
dw NULL
|
||||||
db 0 ; default option
|
db 0 ; default option
|
||||||
; 11a2de
|
; 11a2de
|
||||||
|
|
||||||
MenuDataHeader_11a2de: ; 11a2de
|
MenuHeader_11a2de: ; 11a2de
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -5321,7 +5321,7 @@ String_11a7f4: ; 11a7f4
|
|||||||
db " @"
|
db " @"
|
||||||
; 11a804
|
; 11a804
|
||||||
|
|
||||||
MenuDataHeader_11a804: ; 11a804
|
MenuHeader_11a804: ; 11a804
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, SCREEN_WIDTH - 1, 5
|
menu_coords 0, 0, SCREEN_WIDTH - 1, 5
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -5900,8 +5900,8 @@ Function11ad8f: ; 11ad8f
|
|||||||
; 11ad95
|
; 11ad95
|
||||||
|
|
||||||
Function11ad95: ; 11ad95
|
Function11ad95: ; 11ad95
|
||||||
ld hl, MenuDataHeader_11ae38
|
ld hl, MenuHeader_11ae38
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
hlcoord 12, 12
|
hlcoord 12, 12
|
||||||
ld de, String_11ae40
|
ld de, String_11ae40
|
||||||
@ -5992,7 +5992,7 @@ Function11adc4:
|
|||||||
ret
|
ret
|
||||||
; 11ae38
|
; 11ae38
|
||||||
|
|
||||||
MenuDataHeader_11ae38: ; 11ae38
|
MenuHeader_11ae38: ; 11ae38
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 10, 10, 17, SCREEN_HEIGHT - 1
|
menu_coords 10, 10, 17, SCREEN_HEIGHT - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -6007,14 +6007,14 @@ String_11ae40: ; 11ae40
|
|||||||
; 11ae4e
|
; 11ae4e
|
||||||
|
|
||||||
Function11ae4e: ; 11ae4e
|
Function11ae4e: ; 11ae4e
|
||||||
ld hl, MenuDataHeader_11afe8
|
ld hl, MenuHeader_11afe8
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
hlcoord 10, 14
|
hlcoord 10, 14
|
||||||
ld de, String_11aff0
|
ld de, String_11aff0
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld hl, MenuDataHeader_11b013
|
ld hl, MenuHeader_11b013
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
hlcoord 16, 8
|
hlcoord 16, 8
|
||||||
ld de, String_11b01b
|
ld de, String_11b01b
|
||||||
@ -6098,14 +6098,14 @@ Function11ae98:
|
|||||||
; 11af04
|
; 11af04
|
||||||
|
|
||||||
Function11af04: ; 11af04
|
Function11af04: ; 11af04
|
||||||
ld hl, MenuDataHeader_11afe8
|
ld hl, MenuHeader_11afe8
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
hlcoord 10, 14
|
hlcoord 10, 14
|
||||||
ld de, String_11b003
|
ld de, String_11b003
|
||||||
call PlaceString
|
call PlaceString
|
||||||
ld hl, MenuDataHeader_11b013
|
ld hl, MenuHeader_11b013
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
hlcoord 16, 8
|
hlcoord 16, 8
|
||||||
ld de, String_11b01b
|
ld de, String_11b01b
|
||||||
@ -6238,7 +6238,7 @@ Function11afd6: ; 11afd6
|
|||||||
ret
|
ret
|
||||||
; 11afe8
|
; 11afe8
|
||||||
|
|
||||||
MenuDataHeader_11afe8: ; 11afe8
|
MenuHeader_11afe8: ; 11afe8
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 9, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 9, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
@ -6255,7 +6255,7 @@ String_11b003: ; 11b003
|
|||||||
next "ちゅうししますか?@"
|
next "ちゅうししますか?@"
|
||||||
; 11b013
|
; 11b013
|
||||||
|
|
||||||
MenuDataHeader_11b013: ; 11b013
|
MenuHeader_11b013: ; 11b013
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
|
@ -615,8 +615,8 @@ Function171beb: ; 171beb (5c:5beb)
|
|||||||
ld a, [wcd4a]
|
ld a, [wcd4a]
|
||||||
ld [$aa4a], a
|
ld [$aa4a], a
|
||||||
call CloseSRAM
|
call CloseSRAM
|
||||||
ld hl, MenuDataHeader_171c6b
|
ld hl, MenuHeader_171c6b
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call MenuBox
|
call MenuBox
|
||||||
call MenuBoxCoord2Tile
|
call MenuBoxCoord2Tile
|
||||||
farcall ReloadMapPart
|
farcall ReloadMapPart
|
||||||
@ -671,7 +671,7 @@ Function171c66: ; 171c66 (5c:5c66)
|
|||||||
|
|
||||||
; 171c6b (5c:5c6b)
|
; 171c6b (5c:5c6b)
|
||||||
|
|
||||||
MenuDataHeader_171c6b: ; 171c6b
|
MenuHeader_171c6b: ; 171c6b
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
menu_coords 0, 12, SCREEN_WIDTH - 1, SCREEN_HEIGHT - 1
|
||||||
dw NULL
|
dw NULL
|
||||||
|
@ -424,7 +424,7 @@ Function17a91e: ; 17a91e (5e:691e)
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_17a92c
|
.asm_17a92c
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
call Function17a99e
|
call Function17a99e
|
||||||
ld hl, $d088
|
ld hl, $d088
|
||||||
set 7, [hl]
|
set 7, [hl]
|
||||||
|
@ -441,16 +441,16 @@ Special_Menu_ChallengeExplanationCancel: ; 17d224
|
|||||||
jr nz, .English
|
jr nz, .English
|
||||||
ld a, $4
|
ld a, $4
|
||||||
ld [ScriptVar], a
|
ld [ScriptVar], a
|
||||||
ld hl, MenuDataHeader_17d26a ; Japanese Menu, where you can choose 'News' as an option
|
ld hl, MenuHeader_17d26a ; Japanese Menu, where you can choose 'News' as an option
|
||||||
jr .Load_Interpret
|
jr .Load_Interpret
|
||||||
|
|
||||||
.English:
|
.English:
|
||||||
ld a, $4
|
ld a, $4
|
||||||
ld [ScriptVar], a
|
ld [ScriptVar], a
|
||||||
ld hl, MenuDataHeader_ChallengeExplanationCancel ; English Menu
|
ld hl, MenuHeader_ChallengeExplanationCancel ; English Menu
|
||||||
|
|
||||||
.Load_Interpret:
|
.Load_Interpret:
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call Function17d246
|
call Function17d246
|
||||||
call CloseWindow
|
call CloseWindow
|
||||||
ret
|
ret
|
||||||
@ -482,13 +482,13 @@ Function17d246: ; 17d246
|
|||||||
ret
|
ret
|
||||||
; 17d26a
|
; 17d26a
|
||||||
|
|
||||||
MenuDataHeader_17d26a: ; 17d26a
|
MenuHeader_17d26a: ; 17d26a
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 14, 9
|
menu_coords 0, 0, 14, 9
|
||||||
dw MenuData2_17d272
|
dw MenuData_17d272
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
MenuData2_17d272: ; 17d272
|
MenuData_17d272: ; 17d272
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 4
|
db 4
|
||||||
db "ニュース¯よみこむ@"
|
db "ニュース¯よみこむ@"
|
||||||
@ -497,13 +497,13 @@ MenuData2_17d272: ; 17d272
|
|||||||
db "やめる@"
|
db "やめる@"
|
||||||
; 17d28f
|
; 17d28f
|
||||||
|
|
||||||
MenuDataHeader_ChallengeExplanationCancel: ; 17d28f
|
MenuHeader_ChallengeExplanationCancel: ; 17d28f
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 0, 0, 14, 7
|
menu_coords 0, 0, 14, 7
|
||||||
dw MenuData2_ChallengeExplanationCancel
|
dw MenuData_ChallengeExplanationCancel
|
||||||
db 1 ; default option
|
db 1 ; default option
|
||||||
|
|
||||||
MenuData2_ChallengeExplanationCancel: ; 17d297
|
MenuData_ChallengeExplanationCancel: ; 17d297
|
||||||
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_WRAP ; flags
|
||||||
db 3
|
db 3
|
||||||
db "Challenge@"
|
db "Challenge@"
|
||||||
@ -1907,7 +1907,7 @@ Function17dc1f: ; 17dc1f
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [$c70f], a
|
ld [$c70f], a
|
||||||
ld hl, $c708
|
ld hl, $c708
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
jr nc, .asm_17dc6e
|
jr nc, .asm_17dc6e
|
||||||
ld a, $2
|
ld a, $2
|
||||||
@ -1940,7 +1940,7 @@ Function17dc1f: ; 17dc1f
|
|||||||
ret
|
ret
|
||||||
; 17dc96
|
; 17dc96
|
||||||
|
|
||||||
MenuData2_17dc96:
|
MenuData_17dc96:
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING | STATICMENU_WRAP ; flags
|
||||||
db 2
|
db 2
|
||||||
db "はい@"
|
db "はい@"
|
||||||
|
@ -171,7 +171,7 @@ Function4a098: ; 4a098 (12:6098)
|
|||||||
call MenuClickSound
|
call MenuClickSound
|
||||||
call PlaceHollowCursor
|
call PlaceHollowCursor
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
farcall Function89de0
|
farcall Function89de0
|
||||||
call Call_ExitMenu
|
call Call_ExitMenu
|
||||||
call MG_Mobile_Layout_LoadPals
|
call MG_Mobile_Layout_LoadPals
|
||||||
@ -389,7 +389,7 @@ Function4a28a: ; 4a28a (12:628a)
|
|||||||
call Function4a6d8
|
call Function4a6d8
|
||||||
call PlaceHollowCursor
|
call PlaceHollowCursor
|
||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
call LoadStandardMenuDataHeader
|
call LoadStandardMenuHeader
|
||||||
ld a, $5
|
ld a, $5
|
||||||
call GetSRAMBank
|
call GetSRAMBank
|
||||||
ld a, [$aa4b]
|
ld a, [$aa4b]
|
||||||
@ -433,8 +433,8 @@ Function4a28a: ; 4a28a (12:628a)
|
|||||||
ld c, 4
|
ld c, 4
|
||||||
call TextBox
|
call TextBox
|
||||||
farcall Mobile_OpenAndCloseMenu_HDMATransferTileMapAndAttrMap
|
farcall Mobile_OpenAndCloseMenu_HDMATransferTileMapAndAttrMap
|
||||||
ld hl, DeletePassword_YesNo_MenuDataHeader
|
ld hl, DeletePassword_YesNo_MenuHeader
|
||||||
call LoadMenuDataHeader
|
call LoadMenuHeader
|
||||||
call VerticalMenu
|
call VerticalMenu
|
||||||
bit B_BUTTON_F, a
|
bit B_BUTTON_F, a
|
||||||
jr nz, .dont_delete_password
|
jr nz, .dont_delete_password
|
||||||
@ -460,7 +460,7 @@ Function4a28a: ; 4a28a (12:628a)
|
|||||||
ret
|
ret
|
||||||
; 4a346 (12:6346)
|
; 4a346 (12:6346)
|
||||||
|
|
||||||
MenuDataHeader_0x4a346: ; 0x4a346
|
MenuHeader_0x4a346: ; 0x4a346
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 12, 0, SCREEN_WIDTH - 1, 6
|
menu_coords 12, 0, SCREEN_WIDTH - 1, 6
|
||||||
|
|
||||||
@ -482,14 +482,14 @@ UnknownText_0x4a35d: ; 0x4a35d
|
|||||||
db "@"
|
db "@"
|
||||||
; 0x4a362
|
; 0x4a362
|
||||||
|
|
||||||
DeletePassword_YesNo_MenuDataHeader: ; 0x4a362
|
DeletePassword_YesNo_MenuHeader: ; 0x4a362
|
||||||
db MENU_BACKUP_TILES ; flags
|
db MENU_BACKUP_TILES ; flags
|
||||||
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
||||||
dw MenuData2_0x4a36a
|
dw MenuData_0x4a36a
|
||||||
db 2 ; default option
|
db 2 ; default option
|
||||||
; 0x4a36a
|
; 0x4a36a
|
||||||
|
|
||||||
MenuData2_0x4a36a: ; 0x4a36a
|
MenuData_0x4a36a: ; 0x4a36a
|
||||||
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING | STATICMENU_WRAP ; flags
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING | STATICMENU_WRAP ; flags
|
||||||
db 2 ; items
|
db 2 ; items
|
||||||
db "はい@"
|
db "はい@"
|
||||||
|
52
wram.asm
52
wram.asm
@ -1405,52 +1405,52 @@ wWindowStackSize:: db ; cf78
|
|||||||
|
|
||||||
ds 8
|
ds 8
|
||||||
|
|
||||||
; menu data header
|
; menu header
|
||||||
wMenuDataHeader:: ; cf81
|
wMenuHeader:: ; cf81
|
||||||
wMenuFlags:: db
|
wMenuFlags:: db
|
||||||
wMenuBorderTopCoord:: db
|
wMenuBorderTopCoord:: db
|
||||||
wMenuBorderLeftCoord:: db
|
wMenuBorderLeftCoord:: db
|
||||||
wMenuBorderBottomCoord:: db
|
wMenuBorderBottomCoord:: db
|
||||||
wMenuBorderRightCoord:: db
|
wMenuBorderRightCoord:: db
|
||||||
wMenuData2Pointer:: dw
|
wMenuDataPointer:: dw
|
||||||
wMenuCursorBuffer:: dw
|
wMenuCursorBuffer:: dw
|
||||||
wMenuDataBank:: db
|
wMenuDataBank:: db
|
||||||
ds 6
|
ds 6
|
||||||
wMenuDataHeaderEnd::
|
wMenuHeaderEnd::
|
||||||
|
|
||||||
wMenuData2::
|
wMenuData::
|
||||||
; MenuData2
|
; MenuData
|
||||||
|
|
||||||
wMenuData2Flags:: db ; cf91
|
wMenuDataFlags:: db ; cf91
|
||||||
|
|
||||||
UNION ; cf92
|
UNION ; cf92
|
||||||
; Vertical Menu/DoNthMenu/SetUpMenu
|
; Vertical Menu/DoNthMenu/SetUpMenu
|
||||||
wMenuData2Items:: db ; cf92
|
wMenuDataItems:: db ; cf92
|
||||||
wMenuData2IndicesPointer:: dw ; cf94
|
wMenuDataIndicesPointer:: dw ; cf94
|
||||||
wMenuData2DisplayFunctionPointer:: dw ; cf96
|
wMenuDataDisplayFunctionPointer:: dw ; cf96
|
||||||
wMenuData2PointerTableAddr:: dw ; cf97
|
wMenuDataPointerTableAddr:: dw ; cf97
|
||||||
|
|
||||||
NEXTU ; cf92
|
NEXTU ; cf92
|
||||||
; 2D Menu
|
; 2D Menu
|
||||||
wMenuData2_2DMenuDimensions:: db ; cf92
|
wMenuData_2DMenuDimensions:: db ; cf92
|
||||||
wMenuData2_2DMenuSpacing:: db ; cf93
|
wMenuData_2DMenuSpacing:: db ; cf93
|
||||||
wMenuData2_2DMenuItemStringsBank:: db ; cf94
|
wMenuData_2DMenuItemStringsBank:: db ; cf94
|
||||||
wMenuData2_2DMenuItemStringsAddr:: dw ; cf96
|
wMenuData_2DMenuItemStringsAddr:: dw ; cf96
|
||||||
wMenuData2_2DMenuFunctionBank:: db ; cf97
|
wMenuData_2DMenuFunctionBank:: db ; cf97
|
||||||
wMenuData2_2DMenuFunctionAddr:: dw ; cf98
|
wMenuData_2DMenuFunctionAddr:: dw ; cf98
|
||||||
|
|
||||||
NEXTU ; cf92
|
NEXTU ; cf92
|
||||||
; Scrolling Menu
|
; Scrolling Menu
|
||||||
wMenuData2_ScrollingMenuHeight:: db ; cf92
|
wMenuData_ScrollingMenuHeight:: db ; cf92
|
||||||
wMenuData2_ScrollingMenuWidth:: db ; cf93
|
wMenuData_ScrollingMenuWidth:: db ; cf93
|
||||||
wMenuData2_ScrollingMenuSpacing:: db ; cf94
|
wMenuData_ScrollingMenuSpacing:: db ; cf94
|
||||||
wMenuData2_ItemsPointerBank:: db ; cf95
|
wMenuData_ItemsPointerBank:: db ; cf95
|
||||||
wMenuData2_ItemsPointerAddr:: dw ; cf97
|
wMenuData_ItemsPointerAddr:: dw ; cf97
|
||||||
wMenuData2_ScrollingMenuFunction1:: ds 3 ; cf98
|
wMenuData_ScrollingMenuFunction1:: ds 3 ; cf98
|
||||||
wMenuData2_ScrollingMenuFunction2:: ds 3 ; cf9b
|
wMenuData_ScrollingMenuFunction2:: ds 3 ; cf9b
|
||||||
wMenuData2_ScrollingMenuFunction3:: ds 3 ; cf9e
|
wMenuData_ScrollingMenuFunction3:: ds 3 ; cf9e
|
||||||
ENDU ; cfa1
|
ENDU ; cfa1
|
||||||
wMenuData2End::
|
wMenuDataEnd::
|
||||||
|
|
||||||
wMenuData3::
|
wMenuData3::
|
||||||
w2DMenuCursorInitY:: db ; cfa1
|
w2DMenuCursorInitY:: db ; cfa1
|
||||||
|
Loading…
Reference in New Issue
Block a user