2014-05-22 22:13:20 +00:00
|
|
|
DisplayDiploma: ; 566e2 (15:66e2)
|
|
|
|
call SaveScreenTilesToBuffer2
|
|
|
|
call GBPalWhiteOutWithDelay3
|
|
|
|
call ClearScreen
|
|
|
|
xor a
|
2014-05-26 21:04:56 +00:00
|
|
|
ld [wcfcb], a
|
|
|
|
ld hl, wd730
|
2014-05-22 22:13:20 +00:00
|
|
|
set 6, [hl]
|
|
|
|
call DisableLCD
|
|
|
|
ld hl, CircleTile ; $7d88
|
2014-05-29 08:31:46 +00:00
|
|
|
ld de, vChars2 + $700
|
2014-05-22 22:13:20 +00:00
|
|
|
ld bc, $0010
|
|
|
|
ld a, BANK(CircleTile)
|
|
|
|
call FarCopyData2
|
|
|
|
ld hl, wTileMap
|
|
|
|
ld bc, $1012
|
2014-06-16 20:57:26 +00:00
|
|
|
predef Func_5ab0
|
2014-05-22 22:13:20 +00:00
|
|
|
ld hl, DiplomaTextPointersAndCoords ; $6784
|
|
|
|
ld c, $5
|
|
|
|
.asm_56715
|
|
|
|
push bc
|
|
|
|
ld a, [hli]
|
|
|
|
ld e, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
|
|
|
ld a, [hli]
|
|
|
|
push hl
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
call PlaceString
|
|
|
|
pop hl
|
|
|
|
inc hl
|
|
|
|
pop bc
|
|
|
|
dec c
|
|
|
|
jr nz, .asm_56715 ; 0x56725 $ee
|
2014-05-26 21:04:56 +00:00
|
|
|
FuncCoord 10, 4
|
2014-05-22 22:13:20 +00:00
|
|
|
ld hl, Coord
|
2014-06-14 11:12:40 +00:00
|
|
|
ld de, wPlayerName
|
2014-05-22 22:13:20 +00:00
|
|
|
call PlaceString
|
|
|
|
callba Func_44dd
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wOAMBuffer + $01
|
2014-05-22 22:13:20 +00:00
|
|
|
ld bc, $8028
|
|
|
|
.asm_5673e
|
|
|
|
ld a, [hl]
|
|
|
|
add $21
|
|
|
|
ld [hli], a
|
|
|
|
inc hl
|
|
|
|
ld a, b
|
|
|
|
ld [hli], a
|
|
|
|
inc hl
|
|
|
|
dec c
|
|
|
|
jr nz, .asm_5673e ; 0x56747 $f5
|
|
|
|
call EnableLCD
|
|
|
|
callba LoadTrainerInfoTextBoxTiles
|
|
|
|
ld b, $8
|
|
|
|
call GoPAL_SET
|
|
|
|
call Delay3
|
|
|
|
call GBPalNormal
|
|
|
|
ld a, $90
|
|
|
|
ld [$ff48], a
|
|
|
|
call WaitForTextScrollButtonPress
|
2014-05-26 21:04:56 +00:00
|
|
|
ld hl, wd730
|
2014-05-22 22:13:20 +00:00
|
|
|
res 6, [hl]
|
|
|
|
call GBPalWhiteOutWithDelay3
|
|
|
|
call Func_3dbe
|
|
|
|
call Delay3
|
|
|
|
jp GBPalNormal
|
|
|
|
|
|
|
|
Func_56777: ; 56777 (15:6777)
|
2014-06-14 11:12:40 +00:00
|
|
|
ld hl, wPlayerName
|
2014-05-22 22:13:20 +00:00
|
|
|
ld bc, $ff00
|
|
|
|
.asm_5677d
|
|
|
|
ld a, [hli]
|
|
|
|
cp $50
|
|
|
|
ret z
|
|
|
|
dec c
|
|
|
|
jr .asm_5677d ; 0x56782 $f9
|
|
|
|
|
|
|
|
DiplomaTextPointersAndCoords: ; 56784 (15:6784)
|
|
|
|
dw DiplomaText
|
2014-05-26 21:04:56 +00:00
|
|
|
dw wTileMap + $2d
|
2014-05-22 22:13:20 +00:00
|
|
|
dw DiplomaPlayer
|
2014-05-26 21:04:56 +00:00
|
|
|
dw wTileMap + $53
|
2014-05-22 22:13:20 +00:00
|
|
|
dw DiplomaEmptyText
|
2014-05-26 21:04:56 +00:00
|
|
|
dw wTileMap + $5f
|
2014-05-22 22:13:20 +00:00
|
|
|
dw DiplomaCongrats
|
2014-05-26 21:04:56 +00:00
|
|
|
dw wTileMap + $7a
|
2014-05-22 22:13:20 +00:00
|
|
|
dw DiplomaGameFreak
|
2014-05-26 21:04:56 +00:00
|
|
|
dw wTileMap + $149
|
2014-05-22 22:13:20 +00:00
|
|
|
|
|
|
|
DiplomaText:
|
|
|
|
db $70,"Diploma",$70,"@"
|
|
|
|
|
|
|
|
DiplomaPlayer:
|
|
|
|
db "Player@"
|
|
|
|
|
|
|
|
DiplomaEmptyText:
|
|
|
|
db "@"
|
|
|
|
|
|
|
|
DiplomaCongrats:
|
|
|
|
db "Congrats! This"
|
|
|
|
next "diploma certifies"
|
|
|
|
next "that you have"
|
|
|
|
next "completed your"
|
|
|
|
next "#DEX.@"
|
|
|
|
|
|
|
|
DiplomaGameFreak:
|
|
|
|
db "GAME FREAK@"
|