mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 13:01:49 +00:00
refactor: add GUI instance reference to UI nodes
This commit is contained in:
parent
74a94f869c
commit
4c48afbb90
70 changed files with 1133 additions and 832 deletions
|
|
@ -16,6 +16,11 @@ class ContentPackRuntime;
|
|||
class Decorator;
|
||||
class Level;
|
||||
class World;
|
||||
class Input;
|
||||
|
||||
namespace gui {
|
||||
class GUI;
|
||||
}
|
||||
|
||||
class LevelScreen : public Screen {
|
||||
World& world;
|
||||
|
|
@ -27,6 +32,8 @@ class LevelScreen : public Screen {
|
|||
std::unique_ptr<PostProcessing> postProcessing;
|
||||
std::unique_ptr<Decorator> decorator;
|
||||
std::unique_ptr<Hud> hud;
|
||||
gui::GUI& gui;
|
||||
Input& input;
|
||||
|
||||
void saveWorldPreview();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue