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

Method hints

switch/source/ScriptTile.cpp:60–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

58}
59
60void ScriptTile::hints(int x, int y, int w, const std::string& text)
61{
62 u32 hw, hh;
63 Gfx::GetTextDimensions(NOTE_SIZE, text.c_str(), &hw, &hh);
64 Gfx::DrawText(NOTE_SIZE, x + w - PAD - (int)hw, y + (HINT_H - (int)hh) / 2, COLOR_TEXT2, text.c_str());
65}
66
67int ScriptTile::uiFrame(const std::string& title, const std::string& note)
68{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected