2018-06-24 14:09:41 +00:00
|
|
|
InitDisplayForHallOfFame:
|
2017-12-16 02:22:26 +00:00
|
|
|
call ClearBGPalettes
|
2020-02-13 17:30:13 +00:00
|
|
|
call ClearTilemap
|
2017-12-16 02:22:26 +00:00
|
|
|
call ClearSprites
|
|
|
|
call DisableLCD
|
|
|
|
call LoadStandardFont
|
|
|
|
call LoadFontsBattleExtra
|
|
|
|
hlbgcoord 0, 0
|
2017-12-28 12:32:33 +00:00
|
|
|
ld bc, vBGMap1 - vBGMap0
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
2020-02-13 17:30:13 +00:00
|
|
|
hlcoord 0, 0, wAttrmap
|
2017-12-16 02:22:26 +00:00
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
|
|
|
xor a
|
|
|
|
call ByteFill
|
|
|
|
xor a
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hSCY], a
|
|
|
|
ldh [hSCX], a
|
2017-12-16 02:22:26 +00:00
|
|
|
call EnableLCD
|
2019-10-20 22:24:17 +00:00
|
|
|
ld hl, .SavingRecordText
|
2017-12-16 02:22:26 +00:00
|
|
|
call PrintText
|
|
|
|
call WaitBGMap2
|
2024-01-07 11:38:00 +00:00
|
|
|
call SetDefaultBGPAndOBP
|
2017-12-16 02:22:26 +00:00
|
|
|
ret
|
|
|
|
|
2019-10-20 22:24:17 +00:00
|
|
|
.SavingRecordText:
|
2019-03-11 00:43:34 +00:00
|
|
|
text_far _SavingRecordText
|
2018-11-17 18:33:03 +00:00
|
|
|
text_end
|
2017-12-16 02:22:26 +00:00
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
InitDisplayForRedCredits:
|
2017-12-16 02:22:26 +00:00
|
|
|
call ClearBGPalettes
|
2020-02-13 17:30:13 +00:00
|
|
|
call ClearTilemap
|
2017-12-16 02:22:26 +00:00
|
|
|
call ClearSprites
|
|
|
|
call DisableLCD
|
|
|
|
call LoadStandardFont
|
|
|
|
call LoadFontsBattleExtra
|
|
|
|
hlbgcoord 0, 0
|
2017-12-28 12:32:33 +00:00
|
|
|
ld bc, vBGMap1 - vBGMap0
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
2020-02-13 17:30:13 +00:00
|
|
|
hlcoord 0, 0, wAttrmap
|
2017-12-16 02:22:26 +00:00
|
|
|
ld bc, SCREEN_WIDTH * SCREEN_HEIGHT
|
|
|
|
xor a
|
|
|
|
call ByteFill
|
2018-01-01 14:08:21 +00:00
|
|
|
ld hl, wBGPals1
|
2017-12-16 02:22:26 +00:00
|
|
|
ld c, 4 tiles
|
|
|
|
.load_white_palettes
|
2018-01-18 16:16:24 +00:00
|
|
|
ld a, LOW(PALRGB_WHITE)
|
2017-12-16 02:22:26 +00:00
|
|
|
ld [hli], a
|
2018-01-18 16:16:24 +00:00
|
|
|
ld a, HIGH(PALRGB_WHITE)
|
2017-12-16 02:22:26 +00:00
|
|
|
ld [hli], a
|
|
|
|
dec c
|
|
|
|
jr nz, .load_white_palettes
|
|
|
|
xor a
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [hSCY], a
|
|
|
|
ldh [hSCX], a
|
2017-12-16 02:22:26 +00:00
|
|
|
call EnableLCD
|
|
|
|
call WaitBGMap2
|
2024-01-07 11:38:00 +00:00
|
|
|
call SetDefaultBGPAndOBP
|
2017-12-16 02:22:26 +00:00
|
|
|
ret
|
|
|
|
|
2018-06-24 14:09:41 +00:00
|
|
|
ResetDisplayBetweenHallOfFameMons:
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh a, [rSVBK]
|
2017-12-16 02:22:26 +00:00
|
|
|
push af
|
2018-01-04 00:12:45 +00:00
|
|
|
ld a, BANK(wDecompressScratch)
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rSVBK], a
|
2017-12-16 02:22:26 +00:00
|
|
|
ld hl, wDecompressScratch
|
2020-02-13 17:30:13 +00:00
|
|
|
ld bc, wScratchAttrmap - wDecompressScratch
|
2017-12-16 02:22:26 +00:00
|
|
|
ld a, " "
|
|
|
|
call ByteFill
|
|
|
|
hlbgcoord 0, 0
|
|
|
|
ld de, wDecompressScratch
|
|
|
|
ld b, 0
|
|
|
|
ld c, 4 tiles
|
|
|
|
call Request2bpp
|
|
|
|
pop af
|
2018-08-25 18:28:22 +00:00
|
|
|
ldh [rSVBK], a
|
2017-12-16 02:22:26 +00:00
|
|
|
ret
|