LEL can now do hit detection on squares.
This commit is contained in:
parent
aa149b6574
commit
7f9e200abe
4 changed files with 22 additions and 1 deletions
|
@ -28,8 +28,9 @@ namespace gui {
|
|||
auto inner_cell = lel::center(30, 40, cell);
|
||||
inner.setPosition({float(inner_cell.x), float(inner_cell.y)});
|
||||
inner.setSize({float(inner_cell.w), float(inner_cell.h)});
|
||||
inner.setOutlineColor({100, 100, 100});
|
||||
inner.setOutlineColor({100, 0, 0});
|
||||
inner.setOutlineThickness(5);
|
||||
inner.setFillColor({50, 50, 50});
|
||||
$shapes.push_back(inner);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue