2018-06-24 07:09:41 -07:00
|
|
|
InitDisplayForHallOfFame:
|
2017-12-15 18:22:26 -08:00
|
|
|
call ClearBGPalettes
|
|
|
|
call ClearTileMap
|
|
|
|
call ClearSprites
|
|
|
|
call DisableLCD
|
|
|
|
call LoadStandardFont
|
|
|
|
call LoadFontsBattleExtra
|
|
|
|
hlbgcoord 0, 0
|
2017-12-28 04:32:33 -08:00
|
|
|
ld bc, vBGMap1 - vBGMap0
|
2017-12-15 18:22:26 -08:00
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
2018-01-23 14:39:09 -08:00
|
|
|
hlcoord 0, 0, wAttrMap
|
2017-12-15 18:22:26 -08:00
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
|
|
|
xor a
|
|
|
|
call ByteFill
|
|
|
|
xor a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hSCY], a
|
|
|
|
ldh [hSCX], a
|
2017-12-15 18:22:26 -08:00
|
|
|
call EnableLCD
|
|
|
|
ld hl, .SavingRecordDontTurnOff
|
|
|
|
call PrintText
|
|
|
|
call WaitBGMap2
|
|
|
|
call SetPalettes
|
|
|
|
ret
|
|
|
|
|
2018-06-24 17:10:37 -07:00
|
|
|
.SavingRecordDontTurnOff:
|
2017-12-15 18:22:26 -08:00
|
|
|
; SAVING RECORD… DON'T TURN OFF!
|
|
|
|
text_jump UnknownText_0x1bd39e
|
|
|
|
db "@"
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
InitDisplayForRedCredits:
|
2017-12-15 18:22:26 -08:00
|
|
|
call ClearBGPalettes
|
|
|
|
call ClearTileMap
|
|
|
|
call ClearSprites
|
|
|
|
call DisableLCD
|
|
|
|
call LoadStandardFont
|
|
|
|
call LoadFontsBattleExtra
|
|
|
|
hlbgcoord 0, 0
|
2017-12-28 04:32:33 -08:00
|
|
|
ld bc, vBGMap1 - vBGMap0
|
2017-12-15 18:22:26 -08:00
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
2018-01-23 14:39:09 -08:00
|
|
|
hlcoord 0, 0, wAttrMap
|
2017-12-15 18:22:26 -08:00
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
|
|
|
xor a
|
|
|
|
call ByteFill
|
2018-01-01 06:08:21 -08:00
|
|
|
ld hl, wBGPals1
|
2017-12-15 18:22:26 -08:00
|
|
|
ld c, 4 tiles
|
|
|
|
.load_white_palettes
|
2018-01-18 08:16:24 -08:00
|
|
|
ld a, LOW(PALRGB_WHITE)
|
2017-12-15 18:22:26 -08:00
|
|
|
ld [hli], a
|
2018-01-18 08:16:24 -08:00
|
|
|
ld a, HIGH(PALRGB_WHITE)
|
2017-12-15 18:22:26 -08:00
|
|
|
ld [hli], a
|
|
|
|
dec c
|
|
|
|
jr nz, .load_white_palettes
|
|
|
|
xor a
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [hSCY], a
|
|
|
|
ldh [hSCX], a
|
2017-12-15 18:22:26 -08:00
|
|
|
call EnableLCD
|
|
|
|
call WaitBGMap2
|
|
|
|
call SetPalettes
|
|
|
|
ret
|
|
|
|
|
2018-06-24 07:09:41 -07:00
|
|
|
ResetDisplayBetweenHallOfFameMons:
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh a, [rSVBK]
|
2017-12-15 18:22:26 -08:00
|
|
|
push af
|
2018-01-03 16:12:45 -08:00
|
|
|
ld a, BANK(wDecompressScratch)
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2017-12-15 18:22:26 -08:00
|
|
|
ld hl, wDecompressScratch
|
|
|
|
ld bc, wScratchAttrMap - wDecompressScratch
|
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
|
|
|
hlbgcoord 0, 0
|
|
|
|
ld de, wDecompressScratch
|
|
|
|
ld b, 0
|
|
|
|
ld c, 4 tiles
|
|
|
|
call Request2bpp
|
|
|
|
pop af
|
2018-08-25 11:28:22 -07:00
|
|
|
ldh [rSVBK], a
|
2017-12-15 18:22:26 -08:00
|
|
|
ret
|