Initial idea for the boss fight UI but it's just a temporary holder for now.
This commit is contained in:
parent
a72d2879fd
commit
64807174c0
16 changed files with 165 additions and 36 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue