You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Use overworld textbox in text printing functions, differentiating between 1bpp and 2bpp text (#10)
This commit is contained in:
@@ -302,7 +302,7 @@ _CardFlip:
|
||||
ldh [hBGMapMode], a
|
||||
call CardFlip_ShuffleDeck
|
||||
ld hl, .CardFlipShuffledText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
jr .LoopAround
|
||||
|
||||
.KeepTheCurrentDeck:
|
||||
@@ -475,7 +475,7 @@ CardFlip_UpdateCoinBalanceDisplay:
|
||||
hlcoord 0, 12
|
||||
ld b, 4
|
||||
ld c, SCREEN_WIDTH - 2
|
||||
call Textbox
|
||||
call Textbox1bpp
|
||||
pop hl
|
||||
call PrintTextboxText
|
||||
call CardFlip_PrintCoinBalance
|
||||
@@ -485,7 +485,7 @@ CardFlip_PrintCoinBalance:
|
||||
hlcoord 9, 15
|
||||
ld b, 1
|
||||
ld c, 9
|
||||
call Textbox
|
||||
call Textbox1bpp
|
||||
hlcoord 10, 16
|
||||
ld de, .CoinStr
|
||||
call PlaceString
|
||||
@@ -511,7 +511,7 @@ CardFlip_InitTilemap:
|
||||
call CardFlip_CopyToBox
|
||||
hlcoord 0, 12
|
||||
lb bc, 4, 18
|
||||
call Textbox
|
||||
call Textbox1bpp
|
||||
ret
|
||||
|
||||
CardFlip_FillGreenBox:
|
||||
|
@@ -289,7 +289,7 @@ MemoryGame_CheckMatch:
|
||||
add hl, de
|
||||
call MemoryGame_PlaceCard
|
||||
ld hl, .VictoryText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
ret
|
||||
|
||||
.no_match
|
||||
@@ -305,7 +305,7 @@ MemoryGame_CheckMatch:
|
||||
call MemoryGame_PlaceCard
|
||||
|
||||
ld hl, MemoryGameDarnText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
ret
|
||||
|
||||
.VictoryText:
|
||||
@@ -457,7 +457,7 @@ MemoryGame_InitStrings:
|
||||
ld de, .japstr2
|
||||
call PlaceString
|
||||
ld hl, .dummy_text
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
ret
|
||||
|
||||
.dummy_text
|
||||
|
@@ -1717,7 +1717,7 @@ Slots_TurnLightsOnOrOff:
|
||||
Slots_AskBet:
|
||||
.loop
|
||||
ld hl, .SlotsBetHowManyCoinsText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
ld hl, .MenuHeader
|
||||
call LoadMenuHeader
|
||||
call VerticalMenu
|
||||
@@ -1737,7 +1737,7 @@ Slots_AskBet:
|
||||
cp c
|
||||
jr nc, .Start
|
||||
ld hl, .SlotsNotEnoughCoinsText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
jr .loop
|
||||
|
||||
.Start:
|
||||
@@ -1752,7 +1752,7 @@ Slots_AskBet:
|
||||
ld de, SFX_PAY_DAY
|
||||
call PlaySFX
|
||||
ld hl, .SlotsStartText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
and a
|
||||
ret
|
||||
|
||||
@@ -1787,14 +1787,14 @@ Slots_AskPlayAgain:
|
||||
or [hl]
|
||||
jr nz, .you_have_coins
|
||||
ld hl, .SlotsRanOutOfCoinsText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
ld c, 60
|
||||
call DelayFrames
|
||||
jr .exit_slots
|
||||
|
||||
.you_have_coins
|
||||
ld hl, .SlotsPlayAgainText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
call LoadMenuTextbox
|
||||
lb bc, 14, 12
|
||||
call PlaceYesNoBox
|
||||
@@ -1857,7 +1857,7 @@ Slots_PayoutText:
|
||||
cp SLOTS_NO_MATCH
|
||||
jr nz, .MatchedSomething
|
||||
ld hl, .SlotsDarnText
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
ret
|
||||
|
||||
.MatchedSomething:
|
||||
@@ -1880,7 +1880,7 @@ Slots_PayoutText:
|
||||
|
||||
.return
|
||||
ld hl, .Text_PrintPayout
|
||||
call PrintText
|
||||
call PrintText1bpp
|
||||
ret
|
||||
|
||||
.PayoutStrings:
|
||||
|
Reference in New Issue
Block a user