Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Center align nametags by default, add property to control this #9511

Open
rubenwardy opened this issue Mar 14, 2020 · 2 comments
Open

Center align nametags by default, add property to control this #9511

rubenwardy opened this issue Mar 14, 2020 · 2 comments
Labels
@ Client / Audiovisuals Feature request Issues that request the addition or enhancement of a feature @ Script API

Comments

@rubenwardy
Copy link
Member

rubenwardy commented Mar 14, 2020

player:set_nametag_attributes({
	alignment = { x = 0, y = 0 }, -- center
	alignment = { x = -1, y = 0 }, -- left
})
@rubenwardy rubenwardy added the Feature request Issues that request the addition or enhancement of a feature label Mar 14, 2020
@rubenwardy rubenwardy changed the title Center align nametags+waypoints by default, add property to control this Center align nametags by default, add property to control this Apr 11, 2020
@appgurueu
Copy link
Contributor

What about making nametags HUD elements? They could be waypoints attached to an object. This would also allow having different nametags per-player.

@rubenwardy
Copy link
Member Author

rubenwardy commented Nov 26, 2021

What about making nametags HUD elements? They could be waypoints attached to an object. This would also allow having different nametags per-player.

Remember that you can have nametags on entities as well as players - it's the same code. Having to manually make nametags for all objects would be painful, and would break compat anyway

That being said, this could be changed to be implemented on the client using the same code as the waypoint HUD element, they're essentially the same things

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@ Client / Audiovisuals Feature request Issues that request the addition or enhancement of a feature @ Script API
Projects
None yet
Development

No branches or pull requests

3 participants