| 361 | } |
| 362 | |
| 363 | void Window_Interpreter::UiSubActionLine::Draw(BitmapRef contents, Rect rect) const { |
| 364 | int offset_x = 0; |
| 365 | |
| 366 | for (int i = 0; i < static_cast<int>(this->actions.size()); i++) { |
| 367 | if (!visibility_delegates[i]()) |
| 368 | continue; |
| 369 | TextDrawUnderlined(contents, rect.x + offset_x, rect.y, colors[i], texts[i]); |
| 370 | offset_x += (texts[i].length() + 1) * 6; |
| 371 | } |
| 372 | } |
| 373 | |
| 374 | void Window_Interpreter::UiSubActionLine::ClearIndex() { |
| 375 | this->index = 0; |
no test coverage detected