Open AwesomePossum212 opened 3 years ago
I think this would be an undesirable change for most developers. The nametag can be fetched through the API and you can get colours that way.
A solution could be made, though people may need to implement custom event hooks to get it to update on a team change. We could add a Signal which fires when the team changes and provides the new team colour, though this seems redundant as most people would want to implement their own event handling.
I've made up a prototype which is available on the wally branch on my fork. It uses wally to manage packages.
Looking back on this, I agree that most devs probably would prefer to hand chat tag coloring themselves. Attempting to use this module without realizing that it also affects chat tag colors may confuse devs and isn't immediately relevant to the core functionality of the module.
A user recently requested this feature on the DevForum.
This would ideally sync chat tags and titles to where calling
.changeTag()
would update the chat tag as well as the titles. This would make it easier for developers to have a one-stop-shop for changing a player's title across multiple locations.However, there are a few barriers to backward compatibility and consistent behavior that need to be addressed:
In order to add some extra non-essential features like this, it may be prudent to start some sort of plugin system that allows developers to create add-on features for Nametag+ without bloating the basic API. However, this will require another feature request to fully address.