Status UI now has a log and some buttons.
This commit is contained in:
parent
3a6ba8445a
commit
bfe0d797c8
7 changed files with 61 additions and 17 deletions
|
@ -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);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue