MCPcopy Create free account
hub / github.com/devkitPro/3ds-hbmenu / menuDrawTop

Function menuDrawTop

source/ui/menu.c:259–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257}
258
259void menuDrawTop(float iod)
260{
261 menu_s* menu = menuGetCurrent();
262
263 drawingSetMode(DRAW_MODE_DRAWING);
264 drawingSetZ(0.4f);
265
266 drawingWithColor(0x60FFFFFF);
267 drawingDrawQuad(0.0f, 240-24.0f, 400.0f, 24.0f);
268 drawingSubmitPrim(GPU_TRIANGLE_STRIP, 4);
269
270 textSetColor(0xFF545454);
271 textDrawInBox(menu->dirname, 0, 0.5f, 0.5f, 240.0f-8, 8.0f, 400-8.0f);
272}
273
274float menuDrawEntry(menuEntry_s* me, float x, float y, bool selected)
275{

Callers

nothing calls this directly

Calls 8

menuGetCurrentFunction · 0.85
drawingSetModeFunction · 0.85
drawingSetZFunction · 0.85
drawingWithColorFunction · 0.85
drawingDrawQuadFunction · 0.85
drawingSubmitPrimFunction · 0.85
textSetColorFunction · 0.85
textDrawInBoxFunction · 0.85

Tested by

no test coverage detected