mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 03:21:49 +00:00
quick check with linters
This commit is contained in:
parent
92f185ab51
commit
9522aedeec
55 changed files with 129 additions and 184 deletions
|
|
@ -10,7 +10,7 @@ CheckBox::CheckBox(bool checked) : UINode(glm::vec2(32.0f)), checked(checked) {
|
|||
setColor(glm::vec4(0.0f, 0.0f, 0.0f, 0.5f));
|
||||
}
|
||||
|
||||
void CheckBox::draw(const DrawContext* pctx, Assets* assets) {
|
||||
void CheckBox::draw(const DrawContext* pctx, Assets*) {
|
||||
if (supplier) {
|
||||
checked = supplier();
|
||||
}
|
||||
|
|
@ -21,7 +21,7 @@ void CheckBox::draw(const DrawContext* pctx, Assets* assets) {
|
|||
batch->rect(pos.x, pos.y, size.x, size.y);
|
||||
}
|
||||
|
||||
void CheckBox::mouseRelease(GUI*, int x, int y) {
|
||||
void CheckBox::mouseRelease(GUI*, int, int) {
|
||||
checked = !checked;
|
||||
if (consumer) {
|
||||
consumer(checked);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue