1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
This commit is contained in:
sfan5 2025-06-17 17:59:23 +02:00
parent 98296fd8b4
commit a9fc0e4a3b
2 changed files with 3 additions and 3 deletions

View file

@ -9516,14 +9516,14 @@ Player properties need to be saved manually.
-- `false` will cause the background to be set automatically based on user settings.
-- Default: false
nametag_fontsize = false,
nametag_fontsize = 1,
-- Sets the font size of the nametag in pixels.
-- `false` will cause the size to be set automatically based on user settings.
-- Default: false
nametag_scale_z = false,
-- If enabled, the nametag will be scaled by Z in screen space, meaning it becomes
-- smaller the further way the object is.
-- smaller the further away the object is.
-- Default: false
infotext = "",

View file

@ -659,7 +659,7 @@ void Camera::drawNametags()
// scaling (draw to RTT first?).
{
// Because the current approach puts a high load on the font engine
// we quantize the font size and set and arbitrary maximum...
// we quantize the font size and set an arbitrary maximum...
font_size = MYMIN(font_size, 256);
if (font_size > 128)
font_size &= ~(1|2|4);