Exploring raycasters and possibly make a little "doom like" game based on it.
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.
|
|
|
#pragma once
|
|
|
|
#include "levelmanager.hpp"
|
|
|
|
#include <SFML/Graphics/RenderWindow.hpp>
|
|
|
|
#include <SFML/Graphics/Font.hpp>
|
|
|
|
#include "guecs.hpp"
|
|
|
|
|
|
|
|
namespace gui {
|
|
|
|
class OverlayUI {
|
|
|
|
public:
|
|
|
|
guecs::UI $gui;
|
|
|
|
|
|
|
|
OverlayUI();
|
|
|
|
|
|
|
|
void init();
|
|
|
|
void render(sf::RenderWindow& window);
|
|
|
|
void click(int x, int y);
|
|
|
|
void show_sprite(string region, string sprite_name);
|
|
|
|
void close_sprite(string region);
|
|
|
|
void show_text(std::string region, std::string content);
|
|
|
|
void update_text(std::string region, std::string content);
|
|
|
|
void close_text(std::string region);
|
|
|
|
void show_label(std::string region, std::string content);
|
|
|
|
void update_label(std::string region, std::string content);
|
|
|
|
void close_label(std::string region);
|
|
|
|
};
|
|
|
|
}
|