Boss fight now reuses the combat_ui.cpp to do the combat panel, so next is making it work with the mechanics I want but no art.

This commit is contained in:
Zed A. Shaw 2025-09-24 14:22:24 -04:00
parent 6ec43026b6
commit 8a828fbd31
11 changed files with 107 additions and 91 deletions

View file

@ -7,15 +7,16 @@
namespace gui {
class CombatUI {
public:
bool $boss_style;
guecs::UI $gui;
CombatUI();
CombatUI(bool boss_style);
void init();
void init(int x, int y, int w, int h);
void render(sf::RenderWindow& window);
void update_level();
bool mouse(float x, float y, guecs::Modifiers mods);
guecs::Entity make_button(std::string name, Events::GUI event,
guecs::Entity make_button(guecs::Entity button, Events::GUI event,
int action, const std::string &icon_name,
const std::string &sound, const std::string &effect_name);
};