#include "menu.h" #include "japi/input.h" #include "japi/draw.h" #include "japi/font.h" #include namespace menu { int x1, x2, m; int menu_shown = -1; bool must_stop = false; bool changing = false; namespace popup { int x=0, y=0, width=0, height=0; void start() { popup::x = x1-8; draw::setColor(0xff3c3c3c); draw::fillrect(popup::x,24,popup::width,popup::height); int mx = input::mouseX(); int my = input::mouseY(); if (mx>=popup::x && my>=24 && mx=popup::x && my>=popup::y && mx=x1 && my>=0 && mx