Status UI now has a log and some buttons.

This commit is contained in:
Zed A. Shaw 2025-02-18 23:58:13 -05:00
parent 3a6ba8445a
commit bfe0d797c8
7 changed files with 61 additions and 17 deletions

View file

@ -47,6 +47,10 @@ namespace guecs {
text.init(cell, $font);
});
$world.query<lel::Cell, Label>([this](auto, auto& cell, auto& text) {
text.init(cell, $font);
});
$world.query<lel::Cell, Sprite>([&](auto, auto &cell, auto &sprite) {
auto sprite_texture = textures.get(sprite.name);
sprite.texture = sprite_texture.texture;
@ -78,6 +82,10 @@ namespace guecs {
window.draw(*sprite.sprite);
});
$world.query<Label>([&](auto, auto& text) {
window.draw(*text.text);
});
$world.query<Textual>([&](auto, auto& text) {
window.draw(*text.text);
});