mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-01-23 09:16:20 -08:00
# Conflicts: # data/player_names.asm # engine/battle/menu.asm # engine/billspc.asm # engine/billspctop.asm # engine/buy_sell_toss.asm # engine/decorations.asm # engine/delete_save_change_clock.asm # engine/events/buena.asm # engine/events/elevator.asm # engine/events/kurt.asm # engine/events/mom.asm # engine/events/move_tutor.asm # engine/events/pokecenter_pc.asm # engine/events/pokepic.asm # engine/events/std_scripts.asm # engine/events/unown_walls.asm # engine/init_gender.asm # engine/intro_menu.asm # engine/mail.asm # engine/main_menu.asm # engine/mart.asm # engine/menu_2.asm # engine/mon_menu.asm # engine/pack.asm # engine/slot_machine.asm # engine/start_menu.asm # home/menu.asm # maps/CeladonDeptStore6F.asm # maps/CeladonGameCornerPrizeRoom.asm # maps/DragonShrine.asm # maps/EarlsPokemonAcademy.asm # maps/GoldenrodCity.asm # maps/GoldenrodDeptStore6F.asm # maps/GoldenrodGameCorner.asm # maps/GoldenrodPokeComCenter2FMobile.asm # mobile/mobile_12.asm # mobile/mobile_12_2.asm # mobile/mobile_22.asm # mobile/mobile_22_2.asm # mobile/mobile_40.asm # mobile/mobile_45.asm # mobile/mobile_45_sprite_engine.asm # mobile/mobile_46.asm # mobile/mobile_5c.asm # mobile/mobile_5f.asm # mobile/mobile_menu.asm
49 lines
899 B
NASM
Executable File
49 lines
899 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 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 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 MENU_BACKUP_TILES ; flags
|
|
menu_coords 6, 4, 14, 13
|
|
dw NULL
|
|
db 1 ; default option
|