mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
Menu screen prototype, refactor
This commit is contained in:
parent
5af04e20d1
commit
b03bcb5191
14 changed files with 267 additions and 52 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define SRC_HUD_H_
|
||||
|
||||
#include <string>
|
||||
#include <memory>
|
||||
|
||||
class Batch2D;
|
||||
class Camera;
|
||||
|
|
@ -9,10 +10,11 @@ class Level;
|
|||
class Assets;
|
||||
class Player;
|
||||
class Level;
|
||||
class Engine;
|
||||
|
||||
namespace gui {
|
||||
class GUI;
|
||||
class Panel;
|
||||
class UINode;
|
||||
}
|
||||
|
||||
class HudRenderer {
|
||||
|
|
@ -27,13 +29,13 @@ class HudRenderer {
|
|||
std::wstring fpsString;
|
||||
bool occlusion;
|
||||
bool inventoryOpen = false;
|
||||
bool pause = true;
|
||||
bool pause = false;
|
||||
|
||||
gui::Panel* debugPanel;
|
||||
gui::Panel* pauseMenu;
|
||||
std::shared_ptr<gui::UINode> debugPanel;
|
||||
std::shared_ptr<gui::UINode> pauseMenu;
|
||||
gui::GUI* guiController;
|
||||
public:
|
||||
HudRenderer(gui::GUI* gui, Level* level, Assets* assets);
|
||||
HudRenderer(Engine* engine, Level* level);
|
||||
~HudRenderer();
|
||||
void drawInventory(Player* player);
|
||||
void draw();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue