fix: checkbox hover color

This commit is contained in:
clasher113 2025-12-27 16:07:26 +02:00
parent 6ddb6765bf
commit 76d5af85cc

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);