MCPcopy Create free account
hub / github.com/EasyRPG/Player / Draw

Method Draw

src/window_interpreter.cpp:363–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

361}
362
363void 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
374void Window_Interpreter::UiSubActionLine::ClearIndex() {
375 this->index = 0;

Callers 1

DrawDescriptionLinesMethod · 0.45

Calls 2

TextDrawUnderlinedFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected