mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-05 19:31:04 +00:00
Decouple entity minimap markers from nametags replacing with show_on_minimap property (#10443)
This commit is contained in:
parent
b826e39730
commit
660115c1ab
11 changed files with 85 additions and 11 deletions
|
@ -30,6 +30,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
class Camera;
|
||||
class Client;
|
||||
struct Nametag;
|
||||
struct MinimapMarker;
|
||||
|
||||
/*
|
||||
SmoothTranslator
|
||||
|
@ -84,6 +85,7 @@ private:
|
|||
scene::IBillboardSceneNode *m_spritenode = nullptr;
|
||||
scene::IDummyTransformationSceneNode *m_matrixnode = nullptr;
|
||||
Nametag *m_nametag = nullptr;
|
||||
MinimapMarker *m_marker = nullptr;
|
||||
v3f m_position = v3f(0.0f, 10.0f * BS, 0);
|
||||
v3f m_velocity;
|
||||
v3f m_acceleration;
|
||||
|
@ -254,6 +256,8 @@ public:
|
|||
|
||||
void updateNametag();
|
||||
|
||||
void updateMarker();
|
||||
|
||||
void updateNodePos();
|
||||
|
||||
void step(float dtime, ClientEnvironment *env);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue