mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
fix: checkbox hover color
This commit is contained in:
parent
6ddb6765bf
commit
76d5af85cc
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue