MCPcopy Create free account
hub / github.com/doldecomp/mkdd / draw

Method draw

src/Osako/MapSelectApp.cpp:222–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220}
221
222void MapSelectApp::Menu::draw() {
223 static const JUTColor gray(0x80, 0x80, 0x80, 0x80);
224 static const JUTColor white(0xff, 0xff, 0xff, 0xff);
225
226 System::getJ2DOrtho()->setPort();
227 J2DPrint *print = System::getJ2DPrint();
228 print->initiate();
229
230 if (mMapType == 0) {
231 print->setCharColor(gray);
232 print->setGradColor(gray);
233 }
234 else {
235 print->setCharColor(white);
236 print->setGradColor(white);
237 }
238
239 print->print(mX, mY, mCrsName);
240 if (mMapType == 2) {
241 print->print(mX - 30, mY, "=>");
242 }
243}
244
245bool MapSelectApp::Menu::move(Direction direction) {
246 // fabricated return, but size matches this way

Callers

nothing calls this directly

Calls 7

getJ2DOrthoFunction · 0.85
getJ2DPrintFunction · 0.85
setPortMethod · 0.45
initiateMethod · 0.45
setCharColorMethod · 0.45
setGradColorMethod · 0.45
printMethod · 0.45

Tested by

no test coverage detected