mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 14:01:49 +00:00
hud.show_overlay fix
This commit is contained in:
parent
76f52037b5
commit
92f185ab51
2 changed files with 31 additions and 9 deletions
|
|
@ -55,6 +55,10 @@ public:
|
|||
UiDocument* getDocument() const;
|
||||
std::shared_ptr<gui::UINode> getNode() const;
|
||||
|
||||
bool isInventoryBound() const {
|
||||
return mode == hud_element_mode::inventory_bound;
|
||||
}
|
||||
|
||||
void setRemoved() {
|
||||
removed = true;
|
||||
}
|
||||
|
|
@ -112,6 +116,8 @@ class Hud : public util::ObjectsKeeper {
|
|||
void updateElementsPosition(const Viewport& viewport);
|
||||
void updateHotbarControl();
|
||||
void cleanup();
|
||||
|
||||
void showExchangeSlot();
|
||||
public:
|
||||
Hud(Engine* engine, LevelFrontend* frontend, Player* player);
|
||||
~Hud();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue