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.
27 lines
746 B
27 lines
746 B
7 months ago
|
#pragma once
|
||
|
#include <SFML/Graphics/RenderWindow.hpp>
|
||
|
#include <SFML/Graphics/Font.hpp>
|
||
4 months ago
|
#include <guecs/ui.hpp>
|
||
7 months ago
|
|
||
|
namespace gui {
|
||
4 months ago
|
using std::string;
|
||
|
|
||
7 months ago
|
class OverlayUI {
|
||
|
public:
|
||
|
guecs::UI $gui;
|
||
|
|
||
7 months ago
|
OverlayUI();
|
||
7 months ago
|
|
||
6 months ago
|
void init();
|
||
|
void render(sf::RenderWindow& window);
|
||
7 months ago
|
void show_sprite(string region, string sprite_name);
|
||
|
void close_sprite(string region);
|
||
5 months ago
|
void show_text(std::string region, std::wstring content);
|
||
|
void update_text(std::string region, std::wstring content);
|
||
7 months ago
|
void close_text(std::string region);
|
||
5 months ago
|
void show_label(std::string region, std::wstring content);
|
||
|
void update_label(std::string region, std::wstring content);
|
||
7 months ago
|
void close_label(std::string region);
|
||
7 months ago
|
};
|
||
|
}
|