LEL is able to position right/left/top/bottom and expand out too.
This commit is contained in:
parent
872cedc8e1
commit
cebf61a794
4 changed files with 27 additions and 18 deletions
|
@ -10,7 +10,6 @@ namespace gui {
|
|||
{
|
||||
bool good = $layout.parse(
|
||||
"[attack1 | attack2 | attack3 | heal]"
|
||||
"[move1 | move2 | move3 | move4]"
|
||||
);
|
||||
|
||||
dbc::check(good, "failed to parse combat layout");
|
||||
|
@ -19,7 +18,7 @@ namespace gui {
|
|||
sf::RectangleShape button;
|
||||
button.setPosition({float(cell.x + 10), float(cell.y + 10)});
|
||||
button.setSize({float(cell.w - 20), float(cell.h - 20)});
|
||||
button.setFillColor({uint8_t(cell.col * 75), 100, 100});
|
||||
button.setFillColor({100, 100, 100});
|
||||
button.setOutlineColor({200, 200, 200});
|
||||
button.setOutlineThickness(5);
|
||||
$shapes[name] = button;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue