mirror of
https://github.com/thornAvery/kep-hack.git
synced 2025-09-16 18:30:50 +12:00
66 lines
1.2 KiB
NASM
66 lines
1.2 KiB
NASM
PrintNotebookText:
|
|
call EnableAutoTextBoxDrawing
|
|
ld a, $1
|
|
ld [wDoNotWaitForButtonPressAfterDisplayingText], a
|
|
ld a, [wHiddenObjectFunctionArgument]
|
|
jp PrintPredefTextID
|
|
|
|
TMNotebook::
|
|
TX_FAR TMNotebookText
|
|
TX_WAIT
|
|
db "@"
|
|
|
|
ViridianSchoolNotebook::
|
|
TX_ASM
|
|
ld hl, ViridianSchoolNotebookText1
|
|
call PrintText
|
|
call TurnPageSchoolNotebook
|
|
jr nz, .doneReading
|
|
ld hl, ViridianSchoolNotebookText2
|
|
call PrintText
|
|
call TurnPageSchoolNotebook
|
|
jr nz, .doneReading
|
|
ld hl, ViridianSchoolNotebookText3
|
|
call PrintText
|
|
call TurnPageSchoolNotebook
|
|
jr nz, .doneReading
|
|
ld hl, ViridianSchoolNotebookText4
|
|
call PrintText
|
|
ld hl, ViridianSchoolNotebookText5
|
|
call PrintText
|
|
.doneReading
|
|
jp TextScriptEnd
|
|
|
|
TurnPageSchoolNotebook:
|
|
ld hl, TurnPageText
|
|
call PrintText
|
|
call YesNoChoice
|
|
ld a, [wCurrentMenuItem]
|
|
and a
|
|
ret
|
|
|
|
TurnPageText:
|
|
TX_FAR _TurnPageText
|
|
db "@"
|
|
|
|
ViridianSchoolNotebookText5:
|
|
TX_FAR _ViridianSchoolNotebookText5
|
|
TX_WAIT
|
|
db "@"
|
|
|
|
ViridianSchoolNotebookText1:
|
|
TX_FAR _ViridianSchoolNotebookText1
|
|
db "@"
|
|
|
|
ViridianSchoolNotebookText2:
|
|
TX_FAR _ViridianSchoolNotebookText2
|
|
db "@"
|
|
|
|
ViridianSchoolNotebookText3:
|
|
TX_FAR _ViridianSchoolNotebookText3
|
|
db "@"
|
|
|
|
ViridianSchoolNotebookText4:
|
|
TX_FAR _ViridianSchoolNotebookText4
|
|
db "@"
|