MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / drawRow

Method drawRow

3ds/source/ScriptRequestOverlays.cpp:250–256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

248}
249
250void ScriptPickOneOverlay::drawRow(size_t k, int rowY, bool selected) const
251{
252 TextPool& text = TextPool::get();
253 const float maxW = ScriptTile::UI_W - 2 * ScriptTile::PAD - 8;
254 text.draw(text.truncate(flattenLine(mItems[k]), maxW, ROW_SIZE), ScriptTile::UI_X + ScriptTile::PAD, rowY + 5, ROW_SIZE,
255 selected ? COLOR_TEXT : COLOR_MUTED, ScriptTile::Z);
256}
257
258std::string ScriptPickOneOverlay::hints(void) const
259{

Callers

nothing calls this directly

Calls 4

getFunction · 0.85
flattenLineFunction · 0.85
truncateMethod · 0.80
drawMethod · 0.45

Tested by

no test coverage detected