Prev: 5F4B Up: Map Next: 5F8D
5F6D: Draw Briefing Box
Draws the four sides of the box with corners in HL and DE.
Input
HL First corner
DE Second corner
A Colour
Draw_Briefing_Box 5F6D LD ($EE78),A Write the colour to *Draw_List_Type.
Draw the horizontal side at the first corner's Y coordinate.
5F70 PUSH HL Stash the corners on the stack.
5F71 PUSH DE
5F72 LD D,H Set the second corner's Y coordinate from the first corner.
5F73 CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
5F76 POP DE Restore the corners from the stack.
5F77 POP HL
Draw the vertical side at the second corner's X coordinate.
5F78 PUSH HL Stash the corners on the stack.
5F79 PUSH DE
5F7A LD L,E Set the first corner's X coordinate from the second corner.
5F7B CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
5F7E POP DE Restore the corners from the stack.
5F7F POP HL
Draw the horizontal side at the second corner's Y coordinate.
5F80 PUSH HL Stash the corners on the stack.
5F81 PUSH DE
5F82 LD H,D Set the first corner's Y coordinate from the second corner.
5F83 CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
5F86 POP DE Restore the corners from the stack.
5F87 POP HL
Draw the vertical side at the first corner's X coordinate.
5F88 LD E,L Set the second corner's X coordinate from the first corner.
5F89 CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
5F8C RET Return.
Prev: 5F4B Up: Map Next: 5F8D