raycaster/gui/combat_ui.hpp

23 lines
641 B
C++

#pragma once
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Font.hpp>
#include <guecs/ui.hpp>
#include "events.hpp"
namespace gui {
class CombatUI {
public:
bool $boss_style;
guecs::UI $gui;
CombatUI(bool boss_style);
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(guecs::Entity button, Events::GUI event,
int action, const std::string &icon_name,
const std::string &sound, const std::string &effect_name);
};
}