Use overworld textbox in text printing functions, differentiating between 1bpp and 2bpp text (#10)

This commit is contained in:
xCrystal
2023-08-11 12:28:14 +02:00
parent 1e02f136fd
commit 052d246ee3
85 changed files with 448 additions and 379 deletions

View File

@@ -60,9 +60,9 @@ AskTeachTMHM:
jr c, .TM
ld hl, BootedHMText ; Booted up an HM
.TM:
call PrintText
call PrintText1bpp
ld hl, ContainedMoveText
call PrintText
call PrintText1bpp
call YesNoBox
.NotTMHM:
pop bc
@@ -84,7 +84,7 @@ ChooseMonToLearnTMHM_NoRefresh:
ld [wPartyMenuActionText], a
.loopback
farcall WritePartyMenuTilemap
farcall PrintPartyMenuText
farcall PlacePartyMenuText
call WaitBGMap
call SetPalettes
call DelayFrame
@@ -133,7 +133,7 @@ TeachTMHM:
call PlaySFX
pop de
ld hl, TMHMNotCompatibleText
call PrintText
call PrintText1bpp
jr .nope
.compatible
@@ -242,7 +242,7 @@ TMHM_ShowTMMoveDescription:
hlcoord 0, 12
ld b, 4
ld c, SCREEN_WIDTH - 2
call Textbox
call Textbox1bpp
ld a, [wCurItem]
cp NUM_TMS + NUM_HMS + 1
jr nc, TMHM_JoypadLoop
@@ -491,7 +491,7 @@ VerboseReceiveTMHM: ; unreferenced
jr nc, .print
ld hl, .ReceivedTMHMText
.print
jp PrintText
jp PrintText1bpp
.NoRoomTMHMText:
text_far _NoRoomTMHMText