2016-01-28 21:57:06 -08:00
|
|
|
Pokepic:: ; 244e3
|
|
|
|
ld hl, PokepicMenuDataHeader
|
|
|
|
call CopyMenuDataHeader
|
|
|
|
call MenuBox
|
|
|
|
call UpdateSprites
|
|
|
|
call ApplyTilemap
|
|
|
|
ld b, SCGB_POKEPIC
|
|
|
|
call GetSGBLayout
|
|
|
|
xor a
|
|
|
|
ld [hBGMapMode], a
|
|
|
|
ld a, [CurPartySpecies]
|
|
|
|
ld [CurSpecies], a
|
|
|
|
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
|
|
|
|
ld [hGraphicStartTile], a
|
|
|
|
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
|
|
|
|
|
|
|
|
ClosePokepic:: ; 24528
|
|
|
|
ld hl, PokepicMenuDataHeader
|
|
|
|
call CopyMenuDataHeader
|
|
|
|
call ClearMenuBoxInterior
|
|
|
|
call WaitBGMap
|
|
|
|
call GetMemSGBLayout
|
|
|
|
xor a
|
|
|
|
ld [hBGMapMode], a
|
|
|
|
call OverworldTextModeSwitch
|
|
|
|
call ApplyTilemap
|
|
|
|
call UpdateSprites
|
|
|
|
call LoadStandardFont
|
|
|
|
ret
|
|
|
|
|
|
|
|
PokepicMenuDataHeader: ; 0x24547
|
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
|