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:
Zed A. Shaw 2025-05-04 11:56:30 -04:00
parent 20176cf54a
commit 1780a758b3
5 changed files with 152 additions and 87 deletions

View file

@ -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();