hud events update
This commit is contained in:
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user