* Draws the control panel buttons in their current state. If the button is in the default * state draw it from the panel cel(extract its sub-rect). Else draw it from the buttons cel. */
| 809 | * state draw it from the panel cel(extract its sub-rect). Else draw it from the buttons cel. |
| 810 | */ |
| 811 | void DrawCtrlBtns() |
| 812 | { |
| 813 | int i; |
| 814 | |
| 815 | for (i = 0; i < 6; i++) { |
| 816 | if (!panbtn[i]) |
| 817 | DrawPanelBox(PanBtnPos[i][0] - PANEL_LEFT, PanBtnPos[i][1] - (PANEL_TOP - 16), 71, 20, PanBtnPos[i][0] + SCREEN_X, PanBtnPos[i][1] + SCREEN_Y); |
| 818 | else |
| 819 | CelDraw(PanBtnPos[i][0] + SCREEN_X, PanBtnPos[i][1] + (PANEL_Y - 334), pPanelButtons, i + 1, 71); |
| 820 | } |
| 821 | if (numpanbtns == 8) { |
| 822 | CelDraw(87 + PANEL_X, 122 + PANEL_Y, pMultiBtns, panbtn[6] + 1, 33); |
| 823 | if (FriendlyMode) |
| 824 | CelDraw(527 + PANEL_X, 122 + PANEL_Y, pMultiBtns, panbtn[7] + 3, 33); |
| 825 | else |
| 826 | CelDraw(527 + PANEL_X, 122 + PANEL_Y, pMultiBtns, panbtn[7] + 5, 33); |
| 827 | } |
| 828 | } |
| 829 | |
| 830 | /** |
| 831 | * Draws the "Speed Book": the rows of known spells for quick-setting a spell that |
no test coverage detected