![]() |
Routines |
| Prev: 55734 | Up: Map | Next: 55871 |
|
Used by the routines at Change_Room and Handler_InventoryItems.
Draws the 16 collected-key icons along the bottom of the screen.
|
|||||
|
Set the icon font and print position.
|
|||||
| Print_KeyBar | 55829 | LD HL,31856 | Write Buffer_ActiveFont to *CHARS. | ||
| 55832 | LD (23606),HL | ||||
| 55835 | LD BC,281 | Call JumpTable_SetPrintPosition at column 25 row 1 (the bottom line). | |||
| 55838 | CALL JumpTable_SetPrintPosition | ||||
|
Start the key loop.
|
|||||
| 55841 | LD B,0 | Start at key 0. | |||
| 55843 | LD A,7 | Write WHITE to *ATTR_T. | |||
| 55845 | LD (23695),A | ||||
|
Skip the highlight unless this key matches *CollectedKeys.
|
|||||
| Print_KeyBar_Loop | 55848 | LD A,(25761) | Jump to Print_KeyBar_Glyph unless this key matches *CollectedKeys. | ||
| 55851 | CP B | ||||
| 55852 | JR NZ,Print_KeyBar_Glyph | ||||
|
Highlight this key.
|
|||||
| 55854 | LD A,56 | Write BLACK to *ATTR_T. | |||
| 55856 | LD (23695),A | ||||
|
|||||
| Print_KeyBar_Glyph | 55859 | LD A,228 | Print key glyph 228. | ||
| 55861 | CALL JumpTable_PrintCharacter | ||||
| 55864 | INC B | Jump to Print_KeyBar_Loop until 16 keys are printed. | |||
| 55865 | LD A,B | ||||
| 55866 | CP 16 | ||||
| 55868 | JR NZ,Print_KeyBar_Loop | ||||
| 55870 | RET | Return. | |||
| Prev: 55734 | Up: Map | Next: 55871 |