Initial GUECS refactor is done, it's now on its own with no other dependencies, but now I need to trim it down to do only what it needs.
This commit is contained in:
parent
20176cf54a
commit
1780a758b3
5 changed files with 152 additions and 87 deletions
|
@ -15,12 +15,11 @@ TEST_CASE("prototype one gui", "[ecs-gui]") {
|
|||
gui.layout("[test1|test2|test3][test4|_|test5]");
|
||||
|
||||
for(auto& [name, cell] : gui.cells()) {
|
||||
auto& world = gui.world();
|
||||
auto button = gui.entity(name);
|
||||
world.set<lel::Cell>(button, cell);
|
||||
world.set<Rectangle>(button, {});
|
||||
world.set<Clickable>(button, {});
|
||||
world.set<Textual>(button, {L"whatever"});
|
||||
gui.set<lel::Cell>(button, cell);
|
||||
gui.set<Rectangle>(button, {});
|
||||
gui.set<Clickable>(button, {});
|
||||
gui.set<Textual>(button, {L"whatever"});
|
||||
}
|
||||
|
||||
gui.init();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue