Added a Background guecs component.
This commit is contained in:
parent
69a810b5a1
commit
3a6ba8445a
7 changed files with 78 additions and 56 deletions
|
@ -18,6 +18,8 @@ namespace gui {
|
|||
void CombatUI::render(TexturePack& textures) {
|
||||
auto& world = $gui.world();
|
||||
|
||||
world.set_the<Background>({$gui.$parser});
|
||||
|
||||
for(auto& [name, cell] : $gui.cells()) {
|
||||
if(name.starts_with("button_")) {
|
||||
auto button = $gui.entity(name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue