Added a Background guecs component.

This commit is contained in:
Zed A. Shaw 2025-02-18 23:08:04 -05:00
parent 69a810b5a1
commit 3a6ba8445a
7 changed files with 78 additions and 56 deletions

View file

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