| 52 | } |
| 53 | |
| 54 | void Window_Settings::DrawOption(int index) { |
| 55 | Rect rect = GetItemRect(index); |
| 56 | contents->ClearRect(rect); |
| 57 | |
| 58 | auto& option = GetFrame().options[index]; |
| 59 | |
| 60 | bool enabled = bool(option.action); |
| 61 | Font::SystemColor color = enabled ? option.color : Font::ColorDisabled; |
| 62 | |
| 63 | contents->TextDraw(rect, color, option.text); |
| 64 | contents->TextDraw(rect, color, option.value_text, Text::AlignRight); |
| 65 | } |
| 66 | |
| 67 | Window_Settings::StackFrame& Window_Settings::GetFrame(int n) { |
| 68 | auto i = stack_index - n; |
no test coverage detected