| 47 | } |
| 48 | |
| 49 | void Window_Command::DrawItem(int index, Font::SystemColor color) { |
| 50 | contents->ClearRect(Rect(0, menu_item_height * index, contents->GetWidth() - 0, menu_item_height)); |
| 51 | contents->TextDraw(0, menu_item_height * index + menu_item_height / 8, color, commands[index]); |
| 52 | } |
| 53 | |
| 54 | void Window_Command::DisableItem(int i) { |
| 55 | SetItemEnabled(i, false); |