2018-06-24 07:09:41 -07:00
|
|
|
Pokepic::
|
2018-01-23 13:08:43 -08:00
|
|
|
ld hl, PokepicMenuHeader
|
|
|
|
call CopyMenuHeader
|
2016-01-28 21:57:06 -08:00
|
|
|
call MenuBox
|
|
|
|
call UpdateSprites
|
|
|
|
call ApplyTilemap
|
2023-07-26 08:01:20 -07:00
|
|
|
ld b, CGB_POKEPIC
|
|
|
|
call GetCGBLayout
|
2016-01-28 21:57:06 -08:00
|
|
|
xor a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2018-01-23 14:39:09 -08:00
|
|
|
ld a, [wCurPartySpecies]
|
|
|
|
ld [wCurSpecies], a
|
2016-01-28 21:57:06 -08:00
|
|
|
call GetBaseData
|
2017-12-28 04:32:33 -08:00
|
|
|
ld de, vTiles1
|
2018-01-16 11:30:10 -08:00
|
|
|
predef GetMonFrontpic
|
2016-01-28 21:57:06 -08:00
|
|
|
ld a, [wMenuBorderTopCoord]
|
|
|
|
inc a
|
|
|
|
ld b, a
|
|
|
|
ld a, [wMenuBorderLeftCoord]
|
|
|
|
inc a
|
|
|
|
ld c, a
|
|
|
|
call Coord2Tile
|
|
|
|
ld a, $80
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hGraphicStartTile], a
|
2016-01-28 21:57:06 -08:00
|
|
|
lb bc, 7, 7
|
2018-01-16 11:30:10 -08:00
|
|
|
predef PlaceGraphic
|
2016-01-28 21:57:06 -08:00
|
|
|
call WaitBGMap
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
ClosePokepic::
|
2018-01-23 13:08:43 -08:00
|
|
|
ld hl, PokepicMenuHeader
|
|
|
|
call CopyMenuHeader
|
2016-01-28 21:57:06 -08:00
|
|
|
call ClearMenuBoxInterior
|
|
|
|
call WaitBGMap
|
2023-07-26 08:01:20 -07:00
|
|
|
call GetMemCGBLayout
|
2016-01-28 21:57:06 -08:00
|
|
|
xor a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hBGMapMode], a
|
2024-02-10 15:16:00 -08:00
|
|
|
call LoadOverworldTilemapAndAttrmapPals
|
2016-01-28 21:57:06 -08:00
|
|
|
call ApplyTilemap
|
|
|
|
call UpdateSprites
|
|
|
|
call LoadStandardFont
|
|
|
|
ret
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
PokepicMenuHeader:
|
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, 14, 13
|
2016-01-28 21:57:06 -08:00
|
|
|
dw NULL
|
|
|
|
db 1 ; default option
|