McRogueFace/src/UIMenu.h

32 lines
514 B
C
Raw Normal View History

#pragma once
#include "Common.h"
#include "Button.h"
class UIMenu
{
public:
//UIMenu() {};
sf::Font & font;
UIMenu(sf::Font & _font);
std::vector<sf::Text> captions;
std::vector<Button> buttons;
sf::RectangleShape box;
bool visible = false;
int next_text = 10;
int next_button = 10;
void render(sf::RenderWindow & window);
void refresh();
void add_caption(const char* text, int size, sf::Color color);
void add_button(Button b);
protected:
private:
};