Prev: 34762 Up: Map Next: 34799
34768: Adjust the height and display a message window, then return to game
Used by the routines at 33129, 33811, 33883, 33935, 33993, 34062, 34106, 34544, 34552, 34560, 34568, 34576, 34584, 34730, 34799, 34803, 34808, 34812, 34816, 34914 and 35393.
Input
A Window index
HL Points to text to show in window
34768 PUSH HL Store HL
34769 LD L,A Load index A into HL...
34770 LD H,0 ...
34772 EX AF,AF' Exchange AF
34773 ADD HL,HL Multiply HL by 8...
34774 ADD HL,HL ...
34775 ADD HL,HL ...
34776 LD DE,41877 Point DE at bottom position of first window in window data table...
34779 ADD HL,DE ...then add this to HL to obtain bottom position of window A location
34780 POP DE Restore pointer to text to show in window
34781 LD A,(DE) Load the first character of the text (a height value) into A...
34782 LD (HL),A ...and from there into window table, thereby adjusting the height of the window!
34783 INC DE Move to next character (which should be the true start of the text)
34784 PUSH DE Store this pointer
34785 EX AF,AF' Switch back to restore window index to A
34786 CALL 36987 Draw the window with index A
34789 POP HL Restore pointer to text to HL
34790 CALL 36725 Print the text into the window
34793 CALL 38749 Display "PRESS SPACE OR FIRE TO CONTINUE" window and wait for space / fire
34796 JP 30428 Reset Gimbal-white-out-safe flag, redraw current room and return to main game loop
Prev: 34762 Up: Map Next: 34799