1
0
mirror of https://github.com/luanti-org/luanti.git synced 2026-01-01 10:45:32 +01:00

Allow to scale nametag by distance and set font size (#16267)

This commit is contained in:
sfan5
2025-09-23 21:07:17 +02:00
committed by GitHub
parent ec790a3884
commit db8cd2121c
8 changed files with 154 additions and 81 deletions

View File

@@ -56,6 +56,7 @@ struct ObjectProperties
f32 automatic_face_movement_max_rotation_per_sec = -1.0f;
float eye_height = 1.625f;
float zoom_fov = 0.0f;
std::optional<u32> nametag_fontsize;
MapNode node = MapNode(CONTENT_IGNORE);
u16 hp_max = 1;
u16 breath_max = 0;
@@ -73,6 +74,7 @@ struct ObjectProperties
bool use_texture_alpha = false;
bool shaded = true;
bool show_on_minimap = false;
bool nametag_scale_z = false;
ObjectProperties();