Converted the buttons to reflect the actions you can take.
This commit is contained in:
parent
d7e9944e58
commit
b5d93399d5
4 changed files with 16 additions and 9 deletions
|
@ -3,6 +3,7 @@
|
|||
#include <SFML/Graphics/RenderWindow.hpp>
|
||||
#include <SFML/Graphics/Font.hpp>
|
||||
#include "guecs.hpp"
|
||||
#include "events.hpp"
|
||||
|
||||
namespace gui {
|
||||
class CombatUI {
|
||||
|
@ -17,6 +18,6 @@ namespace gui {
|
|||
void update_level(GameLevel &level);
|
||||
void set_damage(float percent);
|
||||
bool mouse(float x, float y);
|
||||
void make_button(std::string name, std::wstring label);
|
||||
void make_button(std::string name, std::wstring label, Events::GUI event);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue