2015-11-19 15:07:20 -08:00
|
|
|
FontExtra:
|
2017-12-09 19:57:41 -08:00
|
|
|
INCBIN "gfx/font/font_extra.2bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
|
|
|
|
Font:
|
2017-12-09 19:57:41 -08:00
|
|
|
INCBIN "gfx/font/font.1bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
|
|
|
|
FontBattleExtra:
|
2017-12-09 19:57:41 -08:00
|
|
|
INCBIN "gfx/font/font_battle_extra.2bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
|
|
|
|
Frames: ; f8800
|
|
|
|
INCBIN "gfx/frames/1.1bpp"
|
|
|
|
INCBIN "gfx/frames/2.1bpp"
|
|
|
|
INCBIN "gfx/frames/3.1bpp"
|
|
|
|
INCBIN "gfx/frames/4.1bpp"
|
|
|
|
INCBIN "gfx/frames/5.1bpp"
|
|
|
|
INCBIN "gfx/frames/6.1bpp"
|
|
|
|
INCBIN "gfx/frames/7.1bpp"
|
|
|
|
INCBIN "gfx/frames/8.1bpp"
|
|
|
|
INCBIN "gfx/frames/9.1bpp"
|
|
|
|
; f89b0
|
|
|
|
|
2017-12-09 20:37:08 -08:00
|
|
|
; Various misc graphics here.
|
2015-11-19 15:07:20 -08:00
|
|
|
|
2016-05-08 11:11:24 -07:00
|
|
|
StatsScreenPageTilesGFX: ; f89b0
|
2017-12-09 20:37:08 -08:00
|
|
|
INCBIN "gfx/stats/stats_tiles.2bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f8a90
|
|
|
|
|
2017-12-09 20:37:08 -08:00
|
|
|
ShinyIconGFX: ; f8a90
|
2016-05-08 11:11:24 -07:00
|
|
|
; also part of StatsScreenPageTilesGFX
|
2015-11-19 15:07:20 -08:00
|
|
|
INCBIN "gfx/stats/shiny.2bpp"
|
|
|
|
|
2017-12-09 20:37:08 -08:00
|
|
|
ExpBarEndsGFX: ; f8aa0
|
2016-05-08 11:11:24 -07:00
|
|
|
; not referenced on its own, but part of StatsScreenPageTilesGFX
|
2017-12-09 20:37:08 -08:00
|
|
|
INCBIN "gfx/stats/exp_bar_ends.2bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f8ac0
|
|
|
|
|
|
|
|
EnemyHPBarBorderGFX: ; f8ac0
|
|
|
|
INCBIN "gfx/battle/enemy_hp_bar_border.1bpp"
|
|
|
|
; f8ae0
|
|
|
|
|
|
|
|
HPExpBarBorderGFX: ; f8ae0
|
|
|
|
INCBIN "gfx/battle/hp_exp_bar_border.1bpp"
|
|
|
|
; f8b10
|
|
|
|
|
|
|
|
ExpBarGFX: ; f8b10
|
|
|
|
INCBIN "gfx/battle/expbar.2bpp"
|
|
|
|
; f8ba0
|
|
|
|
|
|
|
|
TownMapGFX: ; f8ba0
|
2017-12-09 19:57:41 -08:00
|
|
|
INCBIN "gfx/pokegear/town_map.2bpp.lz"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f8ea4
|
|
|
|
|
2017-12-15 14:50:45 -08:00
|
|
|
UnusedWeekdayKanjiGFX: ; unused kanji
|
|
|
|
INCBIN "gfx/font/unused_weekday_kanji.2bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f8f24
|
|
|
|
|
2018-01-11 19:16:17 -08:00
|
|
|
PokegearPhoneIconGFX: ; f8f24
|
|
|
|
INCBIN "gfx/font/phone_icon.2bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f8f34
|
|
|
|
|
2017-12-15 14:50:45 -08:00
|
|
|
UnusedBoldFontGFX: ; unused bold letters + unown chars
|
|
|
|
INCBIN "gfx/font/unused_bold_font.1bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f9204
|
|
|
|
|
|
|
|
TextBoxSpaceGFX: ; f9204
|
2017-06-24 13:28:50 -07:00
|
|
|
INCBIN "gfx/frames/space.1bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f9214
|
|
|
|
|
2018-01-11 19:16:17 -08:00
|
|
|
FontsExtra_SolidBlackGFX: ; f9214
|
|
|
|
INCBIN "gfx/font/black.1bpp"
|
|
|
|
; f921c
|
|
|
|
|
|
|
|
UnusedUpArrowGFX: ; unused up arrow + whitespace
|
|
|
|
INCBIN "gfx/font/unused_arrow.1bpp"
|
|
|
|
; f9234
|
|
|
|
|
|
|
|
MobilePhoneTilesGFX: ; f9234
|
2015-11-19 15:07:20 -08:00
|
|
|
INCBIN "gfx/mobile/phone_tiles.2bpp"
|
|
|
|
; f9344
|
|
|
|
|
|
|
|
MapEntryFrameGFX: ; f9344
|
|
|
|
INCBIN "gfx/frames/map_entry_sign.2bpp"
|
|
|
|
; f9424
|
|
|
|
|
2016-05-08 11:11:24 -07:00
|
|
|
FontsExtra2_UpArrowGFX: ; f9424
|
2017-12-09 20:37:08 -08:00
|
|
|
INCBIN "gfx/font/up_arrow.2bpp"
|
2015-11-19 15:07:20 -08:00
|
|
|
; f9434
|
|
|
|
|
|
|
|
Footprints: ; f9434
|
2017-12-15 17:42:02 -08:00
|
|
|
INCLUDE "gfx/footprints.asm"
|
2015-11-19 15:07:20 -08:00
|
|
|
; fb434
|
|
|
|
|
|
|
|
; This and the following two functions are unreferenced.
|
2016-05-08 11:11:24 -07:00
|
|
|
; Debug, perhaps?
|
2015-11-19 15:07:20 -08:00
|
|
|
Unknown_fb434:
|
|
|
|
db 0
|
|
|
|
|
|
|
|
Functionfb435: ; 4b435
|
|
|
|
ld a, [Unknown_fb434]
|
|
|
|
and a
|
|
|
|
jp nz, Get1bpp_2
|
|
|
|
jp Get1bpp
|
|
|
|
; fb43f
|
|
|
|
|
|
|
|
Functionfb43f: ; fb43f
|
|
|
|
ld a, [Unknown_fb434]
|
|
|
|
and a
|
|
|
|
jp nz, Get2bpp_2
|
|
|
|
jp Get2bpp
|
|
|
|
; End unreferenced block
|
|
|
|
; fb449
|
|
|
|
|
|
|
|
_LoadStandardFont:: ; fb449
|
|
|
|
ld de, Font
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles1
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(Font), 128 ; "A" to "9"
|
2015-11-19 15:07:20 -08:00
|
|
|
ld a, [rLCDC]
|
2017-12-29 09:53:21 -08:00
|
|
|
bit rLCDC_ENABLE, a
|
2015-11-19 15:07:20 -08:00
|
|
|
jp z, Copy1bpp
|
|
|
|
|
|
|
|
ld de, Font
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles1
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(Font), 32 ; "A" to "]"
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get1bpp_2
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, Font + 32 * LEN_1BPP_TILE
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles1 tile $20
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(Font), 32 ; "a" to $bf
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get1bpp_2
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, Font + 64 * LEN_1BPP_TILE
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles1 tile $40
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(Font), 32 ; "Ä" to "←"
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get1bpp_2
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, Font + 96 * LEN_1BPP_TILE
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles1 tile $60
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(Font), 32 ; "'" to "9"
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get1bpp_2
|
|
|
|
ret
|
|
|
|
; fb48a
|
|
|
|
|
|
|
|
_LoadFontsExtra1:: ; fb48a
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, FontsExtra_SolidBlackGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile "<BLACK>" ; $60
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(FontsExtra_SolidBlackGFX), 1
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get1bpp_2
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, PokegearPhoneIconGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile "<PHONE>" ; $62
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(PokegearPhoneIconGFX), 1
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get2bpp_2
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, FontExtra tile 3
|
|
|
|
ld hl, vTiles2 tile "<BOLD_D>"
|
|
|
|
lb bc, BANK(FontExtra), 22 ; "<BOLD_D>" to "ぉ"
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get2bpp_2
|
|
|
|
jr LoadFrame
|
|
|
|
; fb4b0
|
|
|
|
|
|
|
|
_LoadFontsExtra2:: ; fb4b0
|
2016-05-08 11:11:24 -07:00
|
|
|
ld de, FontsExtra2_UpArrowGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile "▲" ; $61
|
2016-05-08 11:11:24 -07:00
|
|
|
ld b, BANK(FontsExtra2_UpArrowGFX)
|
2015-11-19 15:07:20 -08:00
|
|
|
ld c, 1
|
|
|
|
call Get2bpp_2
|
|
|
|
ret
|
|
|
|
; fb4be
|
|
|
|
|
|
|
|
_LoadFontsBattleExtra:: ; fb4be
|
|
|
|
ld de, FontBattleExtra
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $60
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(FontBattleExtra), 25
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get2bpp_2
|
|
|
|
jr LoadFrame
|
|
|
|
; fb4cc
|
|
|
|
|
|
|
|
LoadFrame: ; fb4cc
|
|
|
|
ld a, [TextBoxFrame]
|
2018-01-11 20:04:50 -08:00
|
|
|
maskbits NUM_FRAMES +- 1
|
2018-01-11 19:16:17 -08:00
|
|
|
ld bc, 6 * LEN_1BPP_TILE
|
2015-11-19 15:07:20 -08:00
|
|
|
ld hl, Frames
|
|
|
|
call AddNTimes
|
|
|
|
ld d, h
|
|
|
|
ld e, l
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile "┌" ; $79
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(Frames), 6 ; "┌" to "┘"
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get1bpp_2
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile " " ; $7f
|
2015-11-19 15:07:20 -08:00
|
|
|
ld de, TextBoxSpaceGFX
|
|
|
|
lb bc, BANK(TextBoxSpaceGFX), 1
|
|
|
|
call Get1bpp_2
|
|
|
|
ret
|
|
|
|
; fb4f2
|
|
|
|
|
|
|
|
LoadBattleFontsHPBar: ; fb4f2
|
|
|
|
ld de, FontBattleExtra
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $60
|
2018-01-11 19:16:17 -08:00
|
|
|
lb bc, BANK(FontBattleExtra), 12
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get2bpp_2
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $70
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, FontBattleExtra tile 16
|
|
|
|
lb bc, BANK(FontBattleExtra), 3 ; "<ど>" to "『"
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get2bpp_2
|
|
|
|
call LoadFrame
|
|
|
|
|
|
|
|
LoadHPBar: ; fb50d
|
|
|
|
ld de, EnemyHPBarBorderGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $6c
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
|
|
|
call Get1bpp_2
|
|
|
|
ld de, HPExpBarBorderGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $73
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(HPExpBarBorderGFX), 6
|
|
|
|
call Get1bpp_2
|
|
|
|
ld de, ExpBarGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $55
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(ExpBarGFX), 9
|
|
|
|
call Get2bpp_2
|
2018-01-11 19:16:17 -08:00
|
|
|
ld de, MobilePhoneTilesGFX tile 7 ; mobile phone icon
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $5e
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(MobilePhoneTilesGFX), 2
|
|
|
|
call Get2bpp_2
|
|
|
|
ret
|
|
|
|
; fb53e
|
|
|
|
|
2016-05-08 11:11:24 -07:00
|
|
|
StatsScreen_LoadFont: ; fb53e
|
2015-11-19 15:07:20 -08:00
|
|
|
call _LoadFontsBattleExtra
|
|
|
|
ld de, EnemyHPBarBorderGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $6c
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(EnemyHPBarBorderGFX), 4
|
|
|
|
call Get1bpp_2
|
|
|
|
ld de, HPExpBarBorderGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $78
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(HPExpBarBorderGFX), 1
|
|
|
|
call Get1bpp_2
|
|
|
|
ld de, HPExpBarBorderGFX + 3 * LEN_1BPP_TILE
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $76
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(HPExpBarBorderGFX), 2
|
|
|
|
call Get1bpp_2
|
|
|
|
ld de, ExpBarGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $55
|
2015-11-19 15:07:20 -08:00
|
|
|
lb bc, BANK(ExpBarGFX), 8
|
|
|
|
call Get2bpp_2
|
2016-05-08 11:11:24 -07:00
|
|
|
LoadStatsScreenPageTilesGFX: ; fb571
|
|
|
|
ld de, StatsScreenPageTilesGFX
|
2017-12-28 04:32:33 -08:00
|
|
|
ld hl, vTiles2 tile $31
|
2016-05-08 11:11:24 -07:00
|
|
|
lb bc, BANK(StatsScreenPageTilesGFX), $11
|
2015-11-19 15:07:20 -08:00
|
|
|
call Get2bpp_2
|
|
|
|
ret
|
|
|
|
; fb57e
|