A retro style homage to 80s dungeon crawlers hand crafted in C++.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
|
|
|
#pragma once
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
#include <SFML/Graphics/Font.hpp>
|
|
|
|
#include <guecs/ui.hpp>
|
|
|
|
#include "events.hpp"
|
|
|
|
|
|
|
|
namespace gui {
|
|
|
|
class CombatUI {
|
|
|
|
public:
|
|
|
|
guecs::UI $gui;
|
|
|
|
|
|
|
|
CombatUI();
|
|
|
|
|
|
|
|
void init();
|
|
|
|
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,
|
|
|
|
int action, const std::string &icon_name,
|
|
|
|
const std::string &sound, const std::string &effect_name);
|
|
|
|
};
|
|
|
|
}
|