2018-06-24 07:09:41 -07:00
|
|
|
InitGender:
|
2015-12-14 17:06:41 -08:00
|
|
|
call InitGenderScreen
|
|
|
|
call LoadGenderScreenPal
|
|
|
|
call LoadGenderScreenLightBlueTile
|
|
|
|
call WaitBGMap2
|
2024-02-10 15:16:00 -08:00
|
|
|
call SetDefaultBGPAndOBP
|
2019-10-20 15:24:17 -07:00
|
|
|
ld hl, AreYouABoyOrAreYouAGirlText
|
2023-08-11 03:28:14 -07:00
|
|
|
call PrintText1bpp
|
2018-01-23 13:08:43 -08:00
|
|
|
ld hl, .MenuHeader
|
|
|
|
call LoadMenuHeader
|
2015-12-14 17:06:41 -08:00
|
|
|
call WaitBGMap2
|
2015-12-15 15:59:49 -08:00
|
|
|
call VerticalMenu
|
2015-12-24 19:58:42 -08:00
|
|
|
call CloseWindow
|
2015-12-15 15:59:49 -08:00
|
|
|
ld a, [wMenuCursorY]
|
2015-12-14 17:06:41 -08:00
|
|
|
dec a
|
2017-12-28 04:15:46 -08:00
|
|
|
ld [wPlayerGender], a
|
2015-12-14 17:06:41 -08:00
|
|
|
ld c, 10
|
|
|
|
call DelayFrames
|
|
|
|
ret
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
.MenuHeader:
|
2018-01-14 02:59:56 -08:00
|
|
|
db MENU_BACKUP_TILES ; flags
|
2018-01-13 13:38:14 -08:00
|
|
|
menu_coords 6, 4, 12, 9
|
2018-01-23 13:08:43 -08:00
|
|
|
dw .MenuData
|
2015-12-14 17:06:41 -08:00
|
|
|
db 1 ; default option
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
.MenuData:
|
2018-01-14 02:59:56 -08:00
|
|
|
db STATICMENU_CURSOR | STATICMENU_WRAP | STATICMENU_DISABLE_B ; flags
|
2015-12-14 17:06:41 -08:00
|
|
|
db 2 ; items
|
|
|
|
db "Boy@"
|
|
|
|
db "Girl@"
|
|
|
|
|
2019-10-20 15:24:17 -07:00
|
|
|
AreYouABoyOrAreYouAGirlText:
|
|
|
|
text_far _AreYouABoyOrAreYouAGirlText
|
2018-11-17 10:33:03 -08:00
|
|
|
text_end
|
2015-12-14 17:06:41 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
InitGenderScreen:
|
2015-12-14 17:06:41 -08:00
|
|
|
ld a, $10
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wMusicFade], a
|
2020-04-17 07:52:59 -07:00
|
|
|
ld a, LOW(MUSIC_NONE)
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wMusicFadeID], a
|
2020-04-17 07:52:59 -07:00
|
|
|
ld a, HIGH(MUSIC_NONE)
|
2018-01-23 14:39:09 -08:00
|
|
|
ld [wMusicFadeID + 1], a
|
2015-12-14 17:06:41 -08:00
|
|
|
ld c, 8
|
|
|
|
call DelayFrames
|
|
|
|
call ClearBGPalettes
|
2023-08-02 10:52:51 -07:00
|
|
|
call LoadFrame
|
2015-12-14 17:06:41 -08:00
|
|
|
hlcoord 0, 0
|
|
|
|
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
|
|
|
ld a, $0
|
|
|
|
call ByteFill
|
2020-02-13 09:30:13 -08:00
|
|
|
hlcoord 0, 0, wAttrmap
|
2015-12-14 17:06:41 -08:00
|
|
|
ld bc, SCREEN_HEIGHT * SCREEN_WIDTH
|
|
|
|
xor a
|
|
|
|
call ByteFill
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
LoadGenderScreenPal:
|
2015-12-14 17:06:41 -08:00
|
|
|
ld hl, .Palette
|
2018-01-01 06:08:21 -08:00
|
|
|
ld de, wBGPals1
|
2015-12-14 17:06:41 -08:00
|
|
|
ld bc, 1 palettes
|
2018-01-04 11:53:50 -08:00
|
|
|
ld a, BANK(wBGPals1)
|
2015-12-14 17:06:41 -08:00
|
|
|
call FarCopyWRAM
|
2017-12-24 09:47:30 -08:00
|
|
|
farcall ApplyPals
|
2015-12-14 17:06:41 -08:00
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
.Palette:
|
2018-01-21 10:58:16 -08:00
|
|
|
INCLUDE "gfx/new_game/gender_screen.pal"
|
2015-12-14 17:06:41 -08:00
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
LoadGenderScreenLightBlueTile:
|
2015-12-14 17:06:41 -08:00
|
|
|
ld de, .LightBlueTile
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $00
|
2015-12-14 17:06:41 -08:00
|
|
|
lb bc, BANK(.LightBlueTile), 1
|
|
|
|
call Get2bpp
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
.LightBlueTile:
|
2018-01-21 10:58:16 -08:00
|
|
|
INCBIN "gfx/new_game/gender_screen.2bpp"
|