Refactoring the GUECS UI::render and the components so that it's just calling a .render on each one. This will then let me allow registering any components people want.
This commit is contained in:
parent
a9e219ea96
commit
4d71f552aa
7 changed files with 108 additions and 69 deletions
|
@ -150,7 +150,7 @@ struct CalculatorUI {
|
|||
}
|
||||
|
||||
void init() {
|
||||
$gui.set<guecs::Background>($gui.MAIN, {});
|
||||
$gui.set<guecs::Background>($gui.MAIN, {$gui.$parser});
|
||||
|
||||
for(auto& [name, cell] : $gui.cells()) {
|
||||
auto id = $gui.entity(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue