1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 18:55:29 +02:00

Add function to get all HUD elements (#14042)

This commit is contained in:
cx384
2024-01-14 17:46:29 +01:00
committed by GitHub
parent ed7d4037b2
commit 92c55c27cf
9 changed files with 85 additions and 0 deletions

View File

@@ -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();