2018-06-24 14:09:41 +00:00
|
|
|
MainMenu_Mobile:
|
2015-12-20 17:54:08 +00:00
|
|
|
call ClearBGPalettes
|
|
|
|
ld a, MUSIC_MOBILE_ADAPTER_MENU
|
|
|
|
ld [wMapMusic], a
|
|
|
|
ld de, MUSIC_MOBILE_ADAPTER_MENU
|
|
|
|
call Function4a6c5
|
2018-06-24 14:09:41 +00:00
|
|
|
Function49f0a:
|
2015-12-20 17:54:08 +00:00
|
|
|
call ClearBGPalettes
|
|
|
|
call Function4a3a7
|
|
|
|
call Function4a492
|
|
|
|
call ClearBGPalettes
|
2018-06-24 14:09:41 +00:00
|
|
|
Function49f16:
|
2015-12-20 17:54:08 +00:00
|
|
|
call MobileMenu_InitMenuBuffers
|
|
|
|
ld c, 12
|
|
|
|
call DelayFrames
|
|
|
|
hlcoord 4, 0
|
|
|
|
ld b, 10
|
|
|
|
ld c, 10
|
|
|
|
call Function48cdc
|
|
|
|
hlcoord 6, 2
|
|
|
|
ld de, MobileString1
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 0, 12
|
|
|
|
ld b, 4
|
|
|
|
ld c, SCREEN_HEIGHT
|
2019-04-08 12:15:10 +00:00
|
|
|
call Textbox
|
2015-12-20 17:54:08 +00:00
|
|
|
xor a
|
|
|
|
ld de, String_0x49fe9
|
|
|
|
hlcoord 1, 14
|
|
|
|
call PlaceString
|
|
|
|
call WaitBGMap2
|
|
|
|
call SetPalettes
|
|
|
|
call StaticMenuJoypad
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld b, [hl]
|
|
|
|
push bc
|
|
|
|
jr .check_buttons
|
|
|
|
|
|
|
|
.joy_loop
|
|
|
|
call ScrollingMenuJoypad
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld b, [hl]
|
|
|
|
push bc
|
|
|
|
|
|
|
|
.check_buttons
|
|
|
|
bit A_BUTTON_F, a
|
|
|
|
jr nz, .a_button
|
|
|
|
bit B_BUTTON_F, a
|
|
|
|
jr nz, .b_button
|
|
|
|
jr .next
|
|
|
|
|
|
|
|
.a_button
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld a, [hl]
|
|
|
|
cp 1
|
|
|
|
jp z, Function4a098
|
|
|
|
cp 2
|
|
|
|
jp z, Function4a0b9
|
|
|
|
cp 3
|
|
|
|
jp z, Function4a0c2
|
|
|
|
cp 4
|
|
|
|
jp z, Function4a100
|
|
|
|
ld a, 1
|
|
|
|
call MenuClickSound
|
|
|
|
.b_button
|
|
|
|
pop bc
|
|
|
|
call ClearBGPalettes
|
2020-02-13 17:30:13 +00:00
|
|
|
call ClearTilemap
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, MUSIC_MAIN_MENU
|
|
|
|
ld [wMapMusic], a
|
|
|
|
ld de, MUSIC_MAIN_MENU
|
|
|
|
call Function4a6c5
|
|
|
|
ret
|
|
|
|
|
|
|
|
.next
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld a, [hl]
|
|
|
|
dec a
|
|
|
|
ld hl, MobileStrings2
|
|
|
|
call GetNthString
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
hlcoord 1, 13
|
|
|
|
ld b, 4
|
|
|
|
ld c, SCREEN_HEIGHT
|
|
|
|
call ClearBox
|
|
|
|
hlcoord 1, 14
|
|
|
|
call PlaceString
|
|
|
|
jp .useless_jump
|
|
|
|
|
|
|
|
.useless_jump
|
|
|
|
call MobileMenu_InitMenuBuffers
|
|
|
|
pop bc
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld [hl], b
|
|
|
|
ld b, $a
|
|
|
|
ld c, $1
|
|
|
|
hlcoord 5, 1
|
|
|
|
call ClearBox
|
|
|
|
jp .joy_loop
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
MobileString1:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "めいしフォルダー"
|
2015-12-20 17:54:08 +00:00
|
|
|
next "あいさつ"
|
|
|
|
next "プロフィール"
|
2018-01-19 01:40:32 +00:00
|
|
|
next "せ<TTE>い"
|
2015-12-20 17:54:08 +00:00
|
|
|
next "もどる"
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
MobileStrings2:
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_0x49fe9:
|
2015-12-20 17:54:08 +00:00
|
|
|
db "めいし¯つくったり"
|
2018-01-20 02:49:16 +00:00
|
|
|
next "ほぞんしておける フォルダーです@"
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_0x4a004:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "モバイルたいせんや じぶんのめいしで"
|
|
|
|
next "つかう あいさつ¯つくります@"
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_0x4a026:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "あなた<NO>じゅうしょや ねんれいの"
|
2018-01-19 01:40:32 +00:00
|
|
|
next "せ<TTE>い¯かえられます@"
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_0x4a042:
|
2018-01-19 01:40:32 +00:00
|
|
|
db "モバイルセンター<NI>せつぞくするとき"
|
2018-01-20 02:49:16 +00:00
|
|
|
next "ひつような こと¯きめます@"
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_0x4a062:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "まえ<NO>がめん <NI>もどります"
|
2015-12-20 17:54:08 +00:00
|
|
|
next "@"
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
MobileMenu_InitMenuBuffers:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld hl, w2DMenuCursorInitY
|
|
|
|
ld a, 2
|
|
|
|
ld [hli], a
|
|
|
|
ld a, 5 ; w2DMenuCursorInitX
|
|
|
|
ld [hli], a
|
|
|
|
ld a, 5 ; w2DMenuNumRows
|
|
|
|
ld [hli], a
|
|
|
|
ld a, 1 ; w2DMenuNumCols
|
|
|
|
ld [hli], a
|
|
|
|
ld [hl], $0 ; w2DMenuFlags1
|
|
|
|
set 5, [hl]
|
|
|
|
inc hl
|
|
|
|
xor a ; w2DMenuFlags2
|
|
|
|
ld [hli], a
|
2015-12-21 19:10:16 +00:00
|
|
|
ld a, $20 ; w2DMenuCursorOffsets
|
2015-12-20 17:54:08 +00:00
|
|
|
ld [hli], a
|
2020-02-23 20:30:21 +00:00
|
|
|
; could have done "ld a, A_BUTTON | D_UP | D_DOWN | B_BUTTON" instead
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, A_BUTTON
|
|
|
|
add D_UP
|
|
|
|
add D_DOWN
|
|
|
|
add B_BUTTON
|
|
|
|
ld [hli], a ; wMenuJoypadFilter
|
|
|
|
ld a, 1
|
|
|
|
ld [hli], a ; wMenuCursorY, wMenuCursorX
|
2015-12-27 02:59:03 +00:00
|
|
|
ld [hli], a ; wMenuCursorY, wMenuCursorX
|
2015-12-20 17:54:08 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a098:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, 2
|
|
|
|
call MenuClickSound
|
|
|
|
call PlaceHollowCursor
|
|
|
|
call WaitBGMap
|
2018-01-23 21:08:43 +00:00
|
|
|
call LoadStandardMenuHeader
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall Function89de0
|
2015-12-20 17:54:08 +00:00
|
|
|
call Call_ExitMenu
|
|
|
|
call MG_Mobile_Layout_LoadPals
|
|
|
|
call Function4a485
|
|
|
|
pop bc
|
|
|
|
jp Function49f16
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a0b9:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, 2
|
|
|
|
call MenuClickSound
|
|
|
|
pop bc
|
|
|
|
jp Function4a4c4
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a0c2:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, 2
|
|
|
|
call MenuClickSound
|
|
|
|
ld a, BANK(sPlayerData)
|
2020-06-17 21:03:38 +00:00
|
|
|
call OpenSRAM
|
2018-01-23 22:39:09 +00:00
|
|
|
ld hl, sPlayerData + wPlayerName - wPlayerData
|
|
|
|
ld de, wPlayerName
|
2017-12-21 16:56:33 +00:00
|
|
|
ld bc, NAME_LENGTH_JAPANESE
|
2015-12-20 17:54:08 +00:00
|
|
|
call CopyBytes
|
|
|
|
call CloseSRAM
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall _LoadData
|
2015-12-20 17:54:08 +00:00
|
|
|
ld c, 2
|
|
|
|
call DelayFrames
|
|
|
|
ld c, $1
|
|
|
|
call InitMobileProfile
|
|
|
|
push af
|
|
|
|
call ClearBGPalettes
|
|
|
|
pop af
|
|
|
|
and a
|
|
|
|
jr nz, .skip_save
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall _SaveData
|
2015-12-20 17:54:08 +00:00
|
|
|
.skip_save
|
|
|
|
ld c, 5
|
|
|
|
call DelayFrames
|
|
|
|
jr asm_4a111
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a100:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, 2
|
|
|
|
call MenuClickSound
|
|
|
|
call ClearBGPalettes
|
|
|
|
call Function4a13b
|
|
|
|
call ClearBGPalettes
|
2020-02-13 17:30:13 +00:00
|
|
|
call ClearTilemap
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
asm_4a111:
|
2015-12-20 17:54:08 +00:00
|
|
|
pop bc
|
|
|
|
call LoadFontsExtra
|
|
|
|
jp Function49f0a
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a118:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld hl, w2DMenuCursorInitY
|
|
|
|
ld a, $1
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $d
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $3
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
ld [hli], a
|
|
|
|
ld [hl], $0
|
|
|
|
set 5, [hl]
|
|
|
|
inc hl
|
|
|
|
xor a
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $20
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
add $2
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
ld [hli], a
|
2015-12-27 02:59:03 +00:00
|
|
|
ld [hli], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a13b:
|
2015-12-20 17:54:08 +00:00
|
|
|
call Function4a3a7
|
|
|
|
call Function4a492
|
|
|
|
call Function4a373
|
|
|
|
ld c, 10
|
|
|
|
call DelayFrames
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a149:
|
2015-12-20 17:54:08 +00:00
|
|
|
hlcoord 1, 2
|
|
|
|
ld b, $6
|
|
|
|
ld c, $10
|
|
|
|
call Function48cdc
|
|
|
|
hlcoord 3, 4
|
|
|
|
ld de, String_4a1ef
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 0, 12
|
|
|
|
ld b, $4
|
|
|
|
ld c, $12
|
2019-04-08 12:15:10 +00:00
|
|
|
call Textbox
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, [wMenuCursorY]
|
|
|
|
dec a
|
|
|
|
ld hl, Strings_4a23d
|
|
|
|
call GetNthString
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
hlcoord 1, 13
|
|
|
|
ld b, $4
|
|
|
|
ld c, $12
|
|
|
|
call ClearBox
|
|
|
|
hlcoord 1, 14
|
|
|
|
call PlaceString
|
2020-02-13 17:30:13 +00:00
|
|
|
farcall Mobile_OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
|
2015-12-20 17:54:08 +00:00
|
|
|
call SetPalettes
|
|
|
|
call StaticMenuJoypad
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld b, [hl]
|
|
|
|
push bc
|
|
|
|
jr asm_4a19d
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a195:
|
2015-12-20 17:54:08 +00:00
|
|
|
call ScrollingMenuJoypad
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld b, [hl]
|
|
|
|
push bc
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
asm_4a19d:
|
2015-12-20 17:54:08 +00:00
|
|
|
bit 0, a
|
|
|
|
jr nz, .asm_4a1a7
|
|
|
|
bit 1, a
|
|
|
|
jr nz, .asm_4a1ba
|
|
|
|
jr .asm_4a1bc
|
|
|
|
.asm_4a1a7
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld a, [hl]
|
|
|
|
cp $1
|
|
|
|
jp z, Function4a20e
|
|
|
|
cp $2
|
|
|
|
jp z, Function4a221
|
|
|
|
ld a, $1
|
|
|
|
call MenuClickSound
|
|
|
|
.asm_4a1ba
|
|
|
|
pop bc
|
|
|
|
ret
|
|
|
|
.asm_4a1bc
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld a, [hl]
|
|
|
|
dec a
|
|
|
|
ld hl, Strings_4a23d
|
|
|
|
call GetNthString
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
hlcoord 1, 13
|
|
|
|
ld b, $4
|
|
|
|
ld c, $12
|
|
|
|
call ClearBox
|
|
|
|
hlcoord 1, 14
|
|
|
|
call PlaceString
|
|
|
|
jr .asm_4a1db
|
|
|
|
.asm_4a1db
|
|
|
|
call Function4a373
|
|
|
|
pop bc
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld [hl], b
|
|
|
|
lb bc, 6, 1
|
|
|
|
hlcoord 2, 3
|
|
|
|
call ClearBox
|
|
|
|
jp Function4a195
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_4a1ef:
|
2015-12-20 17:54:08 +00:00
|
|
|
db "モバイルセンター¯えらぶ"
|
|
|
|
next "ログインパスワード¯いれる"
|
|
|
|
next "もどる@"
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a20e:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, $1
|
|
|
|
call MenuClickSound
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall Function1719c8
|
2015-12-20 17:54:08 +00:00
|
|
|
call ClearBGPalettes
|
|
|
|
call DelayFrame
|
|
|
|
jr Function4a239
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a221:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, $1
|
|
|
|
call MenuClickSound
|
|
|
|
call Function4a28a
|
|
|
|
jr c, Function4a239
|
|
|
|
call Function4a373
|
|
|
|
ld a, $2
|
|
|
|
ld [wMenuCursorY], a
|
|
|
|
jr .asm_4a235
|
|
|
|
.asm_4a235
|
|
|
|
pop bc
|
|
|
|
jp Function4a149
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a239:
|
2015-12-20 17:54:08 +00:00
|
|
|
pop bc
|
|
|
|
jp Function4a13b
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Strings_4a23d:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "いつも せつぞく¯する"
|
2015-12-20 17:54:08 +00:00
|
|
|
next "モバイルセンター¯えらびます@"
|
|
|
|
|
2018-01-19 01:40:32 +00:00
|
|
|
db "モバイルセンター<NI>せつぞくするとき"
|
2015-12-20 17:54:08 +00:00
|
|
|
next "つかうパスワード¯ほぞんできます@"
|
|
|
|
|
2018-01-20 02:49:16 +00:00
|
|
|
db "まえ<NO>がめん <NI>もどります@"
|
2015-12-20 17:54:08 +00:00
|
|
|
|
|
|
|
db "@"
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a28a:
|
2015-12-20 17:54:08 +00:00
|
|
|
hlcoord 2, 3
|
|
|
|
lb bc, 6, 1
|
|
|
|
ld a, " "
|
|
|
|
call Function4a6d8
|
|
|
|
call PlaceHollowCursor
|
|
|
|
call WaitBGMap
|
2018-01-23 21:08:43 +00:00
|
|
|
call LoadStandardMenuHeader
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, $5
|
2020-06-17 21:03:38 +00:00
|
|
|
call OpenSRAM
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, [$aa4b]
|
|
|
|
call CloseSRAM
|
|
|
|
and a
|
|
|
|
jr z, .asm_4a2df
|
|
|
|
hlcoord 12, 0
|
|
|
|
ld b, $5
|
|
|
|
ld c, $6
|
|
|
|
call Function48cdc
|
|
|
|
hlcoord 14, 1
|
|
|
|
ld de, String_4a34b
|
|
|
|
call PlaceString
|
2020-02-13 17:30:13 +00:00
|
|
|
farcall Mobile_OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
|
2015-12-20 17:54:08 +00:00
|
|
|
call Function4a118
|
|
|
|
call ScrollingMenuJoypad
|
|
|
|
push af
|
|
|
|
call PlayClickSFX
|
|
|
|
pop af
|
2015-12-26 16:31:56 +00:00
|
|
|
bit B_BUTTON_F, a
|
|
|
|
jr nz, .quit
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, [wMenuCursorY]
|
|
|
|
cp $2
|
2015-12-26 16:31:56 +00:00
|
|
|
jr z, .DeleteLoginPassword
|
2015-12-20 17:54:08 +00:00
|
|
|
cp $3
|
2015-12-26 16:31:56 +00:00
|
|
|
jr z, .quit
|
2015-12-20 17:54:08 +00:00
|
|
|
.asm_4a2df
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall Function11765d
|
2015-12-20 17:54:08 +00:00
|
|
|
call ClearBGPalettes
|
|
|
|
call Call_ExitMenu
|
|
|
|
call LoadFontsExtra
|
|
|
|
scf
|
|
|
|
ret
|
2015-12-26 16:31:56 +00:00
|
|
|
|
2016-04-10 18:42:14 +00:00
|
|
|
.DeleteLoginPassword:
|
2015-12-20 17:54:08 +00:00
|
|
|
call PlaceHollowCursor
|
2019-10-20 22:24:17 +00:00
|
|
|
ld hl, DeleteSavedLoginPasswordText
|
2015-12-20 17:54:08 +00:00
|
|
|
call PrintText
|
|
|
|
hlcoord 14, 7
|
2015-12-26 16:31:56 +00:00
|
|
|
ld b, 3
|
|
|
|
ld c, 4
|
2019-04-08 12:15:10 +00:00
|
|
|
call Textbox
|
2020-02-13 17:30:13 +00:00
|
|
|
farcall Mobile_OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
|
2018-01-23 21:08:43 +00:00
|
|
|
ld hl, DeletePassword_YesNo_MenuHeader
|
|
|
|
call LoadMenuHeader
|
2015-12-20 17:54:08 +00:00
|
|
|
call VerticalMenu
|
2015-12-26 16:31:56 +00:00
|
|
|
bit B_BUTTON_F, a
|
|
|
|
jr nz, .dont_delete_password
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, [wMenuCursorY]
|
|
|
|
cp $2
|
2015-12-26 16:31:56 +00:00
|
|
|
jr z, .dont_delete_password
|
2017-11-20 18:50:54 +00:00
|
|
|
ld a, BANK(sMobileLoginPassword)
|
2020-06-17 21:03:38 +00:00
|
|
|
call OpenSRAM
|
2015-12-26 16:31:56 +00:00
|
|
|
ld hl, sMobileLoginPassword
|
2015-12-20 17:54:08 +00:00
|
|
|
xor a
|
2017-11-20 18:50:54 +00:00
|
|
|
ld bc, MOBILE_LOGIN_PASSWORD_LENGTH
|
2015-12-20 17:54:08 +00:00
|
|
|
call ByteFill
|
|
|
|
call CloseSRAM
|
2019-10-20 22:24:17 +00:00
|
|
|
ld hl, DeletedTheLoginPasswordText
|
2015-12-20 17:54:08 +00:00
|
|
|
call PrintText
|
|
|
|
call JoyWaitAorB
|
2015-12-26 16:31:56 +00:00
|
|
|
.dont_delete_password
|
2015-12-20 17:54:08 +00:00
|
|
|
call ExitMenu
|
2015-12-26 16:31:56 +00:00
|
|
|
.quit
|
2015-12-20 17:54:08 +00:00
|
|
|
call Call_ExitMenu
|
2020-02-13 17:30:13 +00:00
|
|
|
farcall Mobile_OpenAndCloseMenu_HDMATransferTilemapAndAttrmap
|
2015-12-20 17:54:08 +00:00
|
|
|
xor a
|
|
|
|
ret
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
MenuHeader_0x4a346:
|
2018-01-14 10:59:56 +00:00
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 21:38:14 +00:00
|
|
|
menu_coords 12, 0, SCREEN_WIDTH - 1, 6
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_4a34b:
|
2015-12-20 17:54:08 +00:00
|
|
|
db "いれなおす"
|
|
|
|
next "けす"
|
|
|
|
next "もどる@"
|
|
|
|
|
2019-10-20 22:24:17 +00:00
|
|
|
DeleteSavedLoginPasswordText:
|
|
|
|
text_far _DeleteSavedLoginPasswordText
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2019-10-20 22:24:17 +00:00
|
|
|
DeletedTheLoginPasswordText:
|
|
|
|
text_far _DeletedTheLoginPasswordText
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end
|
2015-12-20 17:54:08 +00:00
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
DeletePassword_YesNo_MenuHeader:
|
2018-01-14 10:59:56 +00:00
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 21:38:14 +00:00
|
|
|
menu_coords 14, 7, SCREEN_WIDTH - 1, TEXTBOX_Y - 1
|
2018-01-23 21:08:43 +00:00
|
|
|
dw MenuData_0x4a36a
|
2015-12-20 17:54:08 +00:00
|
|
|
db 2 ; default option
|
|
|
|
|
2018-06-25 00:10:37 +00:00
|
|
|
MenuData_0x4a36a:
|
2018-01-14 10:59:56 +00:00
|
|
|
db STATICMENU_CURSOR | STATICMENU_NO_TOP_SPACING | STATICMENU_WRAP ; flags
|
2015-12-20 17:54:08 +00:00
|
|
|
db 2 ; items
|
|
|
|
db "はい@"
|
|
|
|
db "いいえ@"
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a373:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld hl, w2DMenuCursorInitY
|
|
|
|
ld a, $4
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $2
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $3
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
ld [hli], a
|
|
|
|
ld [hl], $0
|
|
|
|
set 5, [hl]
|
|
|
|
inc hl
|
|
|
|
xor a
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $20
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
add $40
|
|
|
|
add $80
|
|
|
|
add $2
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
ld [hli], a
|
2015-12-27 02:59:03 +00:00
|
|
|
ld [hli], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a39a:
|
2015-12-20 17:54:08 +00:00
|
|
|
call Function4a485
|
|
|
|
call Function4a492
|
|
|
|
call Function4a3aa
|
|
|
|
call SetPalettes
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a3a7:
|
2015-12-20 17:54:08 +00:00
|
|
|
call Function4a485
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a3aa:
|
2015-12-20 17:54:08 +00:00
|
|
|
hlcoord 0, 0
|
|
|
|
lb bc, 3, 1
|
|
|
|
xor a
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, $1
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
xor a
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, $1
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 4, 1
|
|
|
|
ld a, $2
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, $3
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, " "
|
|
|
|
call Function4a6d8
|
|
|
|
hlcoord 1, 0
|
|
|
|
ld a, $1
|
|
|
|
lb bc, 3, 18
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 18
|
|
|
|
ld a, $0
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 18
|
|
|
|
ld a, $1
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 18
|
|
|
|
ld a, $2
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 11, 18
|
|
|
|
ld a, " "
|
|
|
|
call Function4a6d8
|
|
|
|
hlcoord 19, 0
|
|
|
|
lb bc, 3, 1
|
|
|
|
ld a, $0
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, $1
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
xor a
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, $1
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 4, 1
|
|
|
|
ld a, $2
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, $3
|
|
|
|
call Function4a6d8
|
|
|
|
lb bc, 1, 1
|
|
|
|
ld a, " "
|
|
|
|
call Function4a6d8
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a449:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld bc, 3 * SCREEN_WIDTH
|
|
|
|
ld a, $0
|
|
|
|
hlcoord 0, 0
|
|
|
|
call ByteFill
|
|
|
|
ld bc, 2 * SCREEN_WIDTH
|
|
|
|
ld a, $1
|
|
|
|
call ByteFill
|
|
|
|
ld bc, 2 * SCREEN_WIDTH
|
|
|
|
ld a, $0
|
|
|
|
call ByteFill
|
|
|
|
ld bc, 2 * SCREEN_WIDTH
|
|
|
|
ld a, $1
|
|
|
|
call ByteFill
|
|
|
|
ld bc, SCREEN_WIDTH
|
|
|
|
ld a, $2
|
|
|
|
call ByteFill
|
|
|
|
ld bc, SCREEN_WIDTH
|
|
|
|
ld a, $3
|
|
|
|
call ByteFill
|
|
|
|
ld bc, SCREEN_WIDTH
|
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a485:
|
2020-02-27 19:33:30 +00:00
|
|
|
ld de, MobileMenuGFX
|
2017-12-28 12:32:33 +00:00
|
|
|
ld hl, vTiles2 tile $00
|
2020-02-27 19:33:30 +00:00
|
|
|
lb bc, BANK(MobileMenuGFX), 13
|
2015-12-20 17:54:08 +00:00
|
|
|
call Get2bpp
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a492:
|
2015-12-20 17:54:08 +00:00
|
|
|
call MG_Mobile_Layout00
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
MainMenu_MobileStudium:
|
2018-01-23 22:39:09 +00:00
|
|
|
ld a, [wStartDay]
|
2015-12-20 17:54:08 +00:00
|
|
|
ld b, a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld a, [wStartHour]
|
2015-12-20 17:54:08 +00:00
|
|
|
ld c, a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld a, [wStartMinute]
|
2015-12-20 17:54:08 +00:00
|
|
|
ld d, a
|
2018-01-23 22:39:09 +00:00
|
|
|
ld a, [wStartSecond]
|
2015-12-20 17:54:08 +00:00
|
|
|
ld e, a
|
|
|
|
push bc
|
|
|
|
push de
|
2017-12-24 17:47:30 +00:00
|
|
|
farcall MobileStudium
|
2015-12-20 17:54:08 +00:00
|
|
|
call ClearBGPalettes
|
|
|
|
pop de
|
|
|
|
pop bc
|
|
|
|
ld a, b
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wStartDay], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, c
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wStartHour], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, d
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wStartMinute], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, e
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wStartSecond], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a4c4:
|
2015-12-20 17:54:08 +00:00
|
|
|
call ClearBGPalettes
|
|
|
|
call Function4a3a7
|
|
|
|
call Function4a492
|
|
|
|
call Function4a680
|
|
|
|
call ClearBGPalettes
|
|
|
|
ld c, 20
|
|
|
|
call DelayFrames
|
|
|
|
hlcoord 2, 0
|
|
|
|
ld b, $a
|
|
|
|
ld c, $e
|
|
|
|
call Function48cdc
|
|
|
|
hlcoord 4, 2
|
|
|
|
ld de, String_4a5c5
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 4, 4
|
|
|
|
ld de, String_4a5cd
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 4, 6
|
|
|
|
ld de, String_4a5da
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 4, 8
|
|
|
|
ld de, String_4a5e6
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 4, 10
|
|
|
|
ld de, String_4a5f2
|
|
|
|
call PlaceString
|
|
|
|
hlcoord 0, 12
|
|
|
|
ld b, $4
|
|
|
|
ld c, $12
|
2019-04-08 12:15:10 +00:00
|
|
|
call Textbox
|
2015-12-20 17:54:08 +00:00
|
|
|
xor a
|
|
|
|
ld hl, Strings_4a5f6
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
hlcoord 1, 14
|
|
|
|
call PlaceString
|
|
|
|
ld a, $1
|
|
|
|
ld hl, Strings_4a5f6
|
|
|
|
call GetNthString
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
hlcoord 1, 16
|
|
|
|
call PlaceString
|
|
|
|
call WaitBGMap2
|
|
|
|
call SetPalettes
|
|
|
|
call StaticMenuJoypad
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld b, [hl]
|
|
|
|
push bc
|
|
|
|
jr asm_4a54d
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a545:
|
2015-12-20 17:54:08 +00:00
|
|
|
call ScrollingMenuJoypad
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld b, [hl]
|
|
|
|
push bc
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
asm_4a54d:
|
2015-12-20 17:54:08 +00:00
|
|
|
bit 0, a
|
|
|
|
jr nz, .asm_4a557
|
|
|
|
bit 1, a
|
|
|
|
jr nz, .asm_4a574
|
|
|
|
jr .asm_4a57e
|
|
|
|
.asm_4a557
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld a, [hl]
|
|
|
|
cp $1
|
|
|
|
jp z, Function4a6ab
|
|
|
|
cp $2
|
|
|
|
jp z, Function4a6ab
|
|
|
|
cp $3
|
|
|
|
jp z, Function4a6ab
|
|
|
|
cp $4
|
|
|
|
jp z, Function4a6ab
|
|
|
|
ld a, $1
|
|
|
|
call MenuClickSound
|
|
|
|
.asm_4a574
|
|
|
|
pop bc
|
|
|
|
call ClearBGPalettes
|
2020-02-13 17:30:13 +00:00
|
|
|
call ClearTilemap
|
2015-12-20 17:54:08 +00:00
|
|
|
jp Function49f0a
|
|
|
|
.asm_4a57e
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld a, [hl]
|
|
|
|
dec a
|
|
|
|
add a
|
|
|
|
push af
|
|
|
|
ld hl, Strings_4a5f6
|
|
|
|
call GetNthString
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
hlcoord 1, 13
|
|
|
|
ld b, $4
|
|
|
|
ld c, $12
|
|
|
|
call ClearBox
|
|
|
|
hlcoord 1, 14
|
|
|
|
call PlaceString
|
|
|
|
pop af
|
|
|
|
inc a
|
|
|
|
ld hl, Strings_4a5f6
|
|
|
|
call GetNthString
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
|
|
|
hlcoord 1, 16
|
|
|
|
call PlaceString
|
|
|
|
jp Function4a5b0
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a5b0:
|
2015-12-20 17:54:08 +00:00
|
|
|
call Function4a680
|
|
|
|
pop bc
|
|
|
|
ld hl, wMenuCursorY
|
|
|
|
ld [hl], b
|
|
|
|
ld b, $a
|
|
|
|
ld c, $1
|
|
|
|
hlcoord 3, 1
|
|
|
|
call ClearBox
|
|
|
|
jp Function4a545
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
String_4a5c5:
|
2015-12-20 17:54:08 +00:00
|
|
|
db "じこしょうかい@"
|
2018-06-24 14:09:41 +00:00
|
|
|
String_4a5cd:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "たいせん <GA>はじまるとき@"
|
2018-06-24 14:09:41 +00:00
|
|
|
String_4a5da:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "たいせん <NI>かったとき@"
|
2018-06-24 14:09:41 +00:00
|
|
|
String_4a5e6:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "たいせん <NI>まけたとき@"
|
2018-06-24 14:09:41 +00:00
|
|
|
String_4a5f2:
|
2015-12-20 17:54:08 +00:00
|
|
|
db "もどる@"
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Strings_4a5f6:
|
2018-01-20 02:49:16 +00:00
|
|
|
db "めいし や ニュース <NI>のせる@"
|
2018-01-19 03:30:30 +00:00
|
|
|
db "あなた<NO>あいさつです@"
|
2018-01-20 02:49:16 +00:00
|
|
|
db "モバイル たいせん<GA>はじまるとき@"
|
|
|
|
db "あいて<NI>みえる あいさつです@"
|
|
|
|
db "モバイル たいせんで かったとき@"
|
|
|
|
db "あいて<NI>みえる あいさつです@"
|
|
|
|
db "モバイル たいせんで まけたとき@"
|
|
|
|
db "あいて<NI>みえる あいさつです@"
|
|
|
|
db "まえ<NO>がめん <NI>もどります@"
|
2015-12-20 17:54:08 +00:00
|
|
|
db "@"
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a680:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld hl, w2DMenuCursorInitY
|
|
|
|
ld a, $2
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $3
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $5
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
ld [hli], a
|
|
|
|
ld [hl], $0
|
|
|
|
set 5, [hl]
|
|
|
|
inc hl
|
|
|
|
xor a
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $20
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
add $40
|
|
|
|
add $80
|
|
|
|
add $2
|
|
|
|
ld [hli], a
|
|
|
|
ld a, $1
|
|
|
|
ld [hli], a
|
2015-12-27 02:59:03 +00:00
|
|
|
ld [hli], a
|
2015-12-20 17:54:08 +00:00
|
|
|
xor a
|
|
|
|
ld [hli], a
|
2016-05-10 16:31:49 +00:00
|
|
|
ld [hli], a
|
|
|
|
ld [hli], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a6ab:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, $2
|
|
|
|
call MenuClickSound
|
|
|
|
call ClearBGPalettes
|
2016-06-06 22:23:00 +00:00
|
|
|
ld b, SCGB_DIPLOMA
|
2015-12-20 17:54:08 +00:00
|
|
|
call GetSGBLayout
|
2018-01-24 16:17:05 +00:00
|
|
|
farcall Function11c1ab
|
2015-12-20 17:54:08 +00:00
|
|
|
pop bc
|
|
|
|
call LoadFontsExtra
|
|
|
|
jp Function4a4c4
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a6c5:
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, $5
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wMusicFade], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, e
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wMusicFadeID], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ld a, d
|
2018-01-23 22:39:09 +00:00
|
|
|
ld [wMusicFadeID + 1], a
|
2015-12-20 17:54:08 +00:00
|
|
|
ld c, 22
|
|
|
|
call DelayFrames
|
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
Function4a6d8:
|
2015-12-20 17:54:08 +00:00
|
|
|
push bc
|
|
|
|
push hl
|
|
|
|
.asm_4a6da
|
|
|
|
ld [hli], a
|
|
|
|
dec c
|
|
|
|
jr nz, .asm_4a6da
|
|
|
|
pop hl
|
|
|
|
ld bc, SCREEN_WIDTH
|
|
|
|
add hl, bc
|
|
|
|
pop bc
|
|
|
|
dec b
|
|
|
|
jr nz, Function4a6d8
|
|
|
|
ret
|
2020-07-13 17:05:05 +00:00
|
|
|
|
|
|
|
if DEF(_DEBUG)
|
|
|
|
MainMenu_DebugRoom:
|
|
|
|
farcall _DebugRoom
|
|
|
|
ret
|
|
|
|
endc
|