mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-08 20:41:49 +00:00
Merge branch 'main' into volume-renderer
This commit is contained in:
commit
b8bf249d1b
9 changed files with 59 additions and 51 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