Porting in old gamejam code. Removed SOME cruft, more likely remains. Sound + sprite test.

This commit is contained in:
John McCardle 2023-02-24 23:46:34 -05:00
commit d2499a67f8
27 changed files with 1090 additions and 4 deletions

32
src/UIMenu.h Normal file
View file

@ -0,0 +1,32 @@
#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:
};