mirror of
https://github.com/luanti-org/luanti.git
synced 2025-08-06 17:41:04 +00:00
Add function to get all HUD elements (#14042)
This commit is contained in:
parent
ed7d4037b2
commit
92c55c27cf
9 changed files with 85 additions and 0 deletions
|
@ -26,6 +26,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#include "util/basic_macros.h"
|
||||
#include <list>
|
||||
#include <mutex>
|
||||
#include <functional>
|
||||
|
||||
#define PLAYERNAME_SIZE 20
|
||||
|
||||
|
@ -225,6 +226,7 @@ public:
|
|||
}
|
||||
|
||||
HudElement* getHud(u32 id);
|
||||
void hudApply(std::function<void(const std::vector<HudElement*>&)> f);
|
||||
u32 addHud(HudElement* hud);
|
||||
HudElement* removeHud(u32 id);
|
||||
void clearHud();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue