mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 19:41:51 +00:00
hud events update
This commit is contained in:
parent
cac963bd7b
commit
9d82e3416b
4 changed files with 16 additions and 2 deletions
|
|
@ -628,3 +628,7 @@ void Hud::setPause(bool pause) {
|
|||
darkOverlay->setVisible(pause);
|
||||
menu->setVisible(pause);
|
||||
}
|
||||
|
||||
Player* Hud::getPlayer() const {
|
||||
return frontend->getLevel()->player;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -116,6 +116,8 @@ public:
|
|||
void add(HudElement element);
|
||||
void remove(HudElement& element);
|
||||
void remove(std::shared_ptr<gui::UINode> node);
|
||||
|
||||
Player* getPlayer() const;
|
||||
};
|
||||
|
||||
#endif /* SRC_HUD_H_ */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue