#include "menu.h" #include "japi/input.h" #include "japi/draw.h" #include "japi/font.h" namespace menu { int x1, x2, m; int menu_shown = -1; void start() { draw::setColor(0xff3c3c3c); draw::fillrect(0,0,draw::getWindowSize().x,24); x1=0; x2=0; m=-1; } bool option(const char* label) { m++; x1 = x2 + 8; x2 = x1 + font::len(label)+8; int mx = input::mouseX(); int my = input::mouseY(); if (mx>=x1 && my>=0 && mx=x1-8 && my>=24 && mx