mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
50 lines
895 B
NASM
Executable File
50 lines
895 B
NASM
Executable File
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
|
|
ld de, VTiles1
|
|
predef GetMonFrontpic
|
|
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
|
|
predef PlaceGraphic
|
|
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
|
|
db $40 ; flags
|
|
db 04, 06 ; start coords
|
|
db 13, 14 ; end coords
|
|
dw NULL
|
|
db 1 ; default option
|