#include "jui.h" #include "jdraw.h" #include "jinput.h" #include #include namespace ui { void label(const char *label, const int x, const int y, const int w, const int h, const int color) { draw::color(color); draw::fillrect(x, y, w, h); draw::color(WHITE); draw::rect(x, y, w, h); draw::print(label, x+3, y+3, BLACK, 0); } const bool button(const char *label, const int x, const int y, const int w, const int h, const bool pressed) { const int mx = draw::getLocalX(input::mouseX()); const int my = draw::getLocalY(input::mouseY()); const bool btnDown = input::mouseBtn(1) || input::mouseBtn(3); const bool inside = (mx>=x) && (mx=y) && (my=x) && (mx=y) && (my=x) && (mx=y) && (my=x) && (mx=y) && (my=x) && (mx=y) && (my