Initial idea for the boss fight UI but it's just a temporary holder for now.

This commit is contained in:
Zed A. Shaw 2025-02-27 15:24:17 -05:00
parent a72d2879fd
commit 64807174c0
16 changed files with 165 additions and 36 deletions

View file

@ -29,7 +29,7 @@ namespace gui {
}
}
void StatusUI::render() {
void StatusUI::init() {
$gui.world().set_the<Background>({$gui.$parser});
for(auto& [name, cell] : $gui.cells()) {
@ -112,7 +112,7 @@ namespace gui {
}
}
void StatusUI::draw(sf::RenderWindow &window) {
void StatusUI::render(sf::RenderWindow &window) {
$gui.render(window);
}
@ -125,6 +125,6 @@ namespace gui {
void StatusUI::update_level(GameLevel &level) {
$level = level;
render();
init();
}
}