Prev: 24395 Up: Map Next: 24461
24429: 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 24429 LD (61048),A Write the colour to *Draw_List_Type.
Draw the horizontal side at the first corner's Y coordinate.
24432 PUSH HL Stash the corners on the stack.
24433 PUSH DE
24434 LD D,H Set the second corner's Y coordinate from the first corner.
24435 CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
24438 POP DE Restore the corners from the stack.
24439 POP HL
Draw the vertical side at the second corner's X coordinate.
24440 PUSH HL Stash the corners on the stack.
24441 PUSH DE
24442 LD L,E Set the first corner's X coordinate from the second corner.
24443 CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
24446 POP DE Restore the corners from the stack.
24447 POP HL
Draw the horizontal side at the second corner's Y coordinate.
24448 PUSH HL Stash the corners on the stack.
24449 PUSH DE
24450 LD H,D Set the first corner's Y coordinate from the second corner.
24451 CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
24454 POP DE Restore the corners from the stack.
24455 POP HL
Draw the vertical side at the first corner's X coordinate.
24456 LD E,L Set the second corner's X coordinate from the first corner.
24457 CALL Move_Slot_Table_24 Call Move_Slot_Table_24.
24460 RET Return.
Prev: 24395 Up: Map Next: 24461