Fix the clicker demo.
This commit is contained in:
parent
6837192583
commit
0d91c554c6
1 changed files with 2 additions and 3 deletions
|
@ -77,7 +77,7 @@ struct ClickerUI {
|
||||||
"[_|_ |_|_|_]"
|
"[_|_ |_|_|_]"
|
||||||
"[_|_ |_|_|_]"
|
"[_|_ |_|_|_]"
|
||||||
"[_|_ |_|_|_]"
|
"[_|_ |_|_|_]"
|
||||||
"[(30,30)a1|=(30,30)a2|a3|=a4|a5]");
|
"[a1|a2|a3|a4|a5]");
|
||||||
}
|
}
|
||||||
|
|
||||||
void init() {
|
void init() {
|
||||||
|
@ -91,9 +91,8 @@ struct ClickerUI {
|
||||||
for(auto& [name, cell] : $gui.cells()) {
|
for(auto& [name, cell] : $gui.cells()) {
|
||||||
auto id = $gui.entity(name);
|
auto id = $gui.entity(name);
|
||||||
if(name != "clicker") {
|
if(name != "clicker") {
|
||||||
$gui.set<guecs::Rectangle>(id, {0, {255, 0, 0, 255}});
|
|
||||||
$gui.set<guecs::Effect>(id, {});
|
$gui.set<guecs::Effect>(id, {});
|
||||||
// $gui.set<guecs::Sprite>(id, { "clicker_treat_bone" });
|
$gui.set<guecs::Sprite>(id, { "clicker_treat_bone" });
|
||||||
$gui.set<guecs::Clickable>(id, {
|
$gui.set<guecs::Clickable>(id, {
|
||||||
[&](auto, auto) { handle_button(Event::A_BUTTON); }
|
[&](auto, auto) { handle_button(Event::A_BUTTON); }
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue