mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
81fff9bb80
I have no idea why this was a thing (do people store this repo on FAT32 flash drives or something?), but quite a bit of files had a permission of 755. This isn't really a problem, but it's inconsistent and weird.
49 lines
867 B
NASM
49 lines
867 B
NASM
Pokepic:: ; 244e3
|
|
ld hl, PokepicMenuHeader
|
|
call CopyMenuHeader
|
|
call MenuBox
|
|
call UpdateSprites
|
|
call ApplyTilemap
|
|
ld b, SCGB_POKEPIC
|
|
call GetSGBLayout
|
|
xor a
|
|
ld [hBGMapMode], a
|
|
ld a, [wCurPartySpecies]
|
|
ld [wCurSpecies], 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, PokepicMenuHeader
|
|
call CopyMenuHeader
|
|
call ClearMenuBoxInterior
|
|
call WaitBGMap
|
|
call GetMemSGBLayout
|
|
xor a
|
|
ld [hBGMapMode], a
|
|
call OverworldTextModeSwitch
|
|
call ApplyTilemap
|
|
call UpdateSprites
|
|
call LoadStandardFont
|
|
ret
|
|
|
|
PokepicMenuHeader: ; 0x24547
|
|
db MENU_BACKUP_TILES ; flags
|
|
menu_coords 6, 4, 14, 13
|
|
dw NULL
|
|
db 1 ; default option
|