Intermediate refactor to move everything over to using the textures module rather than everyone using one TexturePack thing.

This commit is contained in:
Zed A. Shaw 2025-02-21 03:00:56 -05:00
parent 6c1d851e85
commit f3e1413022
23 changed files with 129 additions and 64 deletions

View file

@ -15,7 +15,7 @@ namespace gui {
"[ >.%(100,50)label_hp | *%.(198,50)bar_hp | _ ]");
}
void CombatUI::render(TexturePack& textures) {
void CombatUI::render() {
auto& world = $gui.world();
world.set_the<Background>({$gui.$parser});
@ -39,7 +39,7 @@ namespace gui {
}
}
$gui.init(textures);
$gui.init();
}
void CombatUI::draw(sf::RenderWindow& window) {