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

@ -12,16 +12,16 @@ namespace gui {
{
$gui.position(STATUS_UI_X, STATUS_UI_Y, STATUS_UI_WIDTH, STATUS_UI_HEIGHT);
$gui.layout(
"[button1 | button2 | button3]"
"[button4 | button5 | button6]"
"[button7 | button8 | button9]"
"[*%(100,300)log_view]"
"[_]"
"[_]"
"[button1 | button2 | button3]"
"[button4 | button5 | button6]"
"[button7 | button8 | button9]"
);
}
void StatusUI::render(TexturePack &textures) {
void StatusUI::render() {
auto& world = $gui.world();
std::vector<std::string> fake_items{
@ -48,7 +48,7 @@ namespace gui {
}
}
$gui.init(textures);
$gui.init();
}
void StatusUI::draw(sf::RenderWindow &window) {