Merge branch 'main' into volume-renderer

This commit is contained in:
MihailRis 2025-12-28 20:05:13 +03:00
commit b8bf249d1b
9 changed files with 59 additions and 51 deletions

View file

@ -25,7 +25,8 @@ void CheckBox::draw(const DrawContext& pctx, const Assets&) {
batch->rect(pos.x, pos.y, size.x, size.y);
}
void CheckBox::mouseRelease(int, int) {
void CheckBox::mouseRelease(int x, int y) {
UINode::mouseRelease(x, y);
checked = !checked;
if (consumer) {
consumer(checked);