AwesomePossum212 / nametag-plus

A performant and modular solution to Roblox's default nametag system that automatically supports titles, health bars, and more.
MIT License
6 stars 2 forks source link

Integrate chat tags to use titles #20

Open AwesomePossum212 opened 3 years ago

AwesomePossum212 commented 3 years ago

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.

Water261 commented 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.

Water261 commented 3 years ago

I've made up a prototype which is available on the wally branch on my fork. It uses wally to manage packages.

AwesomePossum212 commented 2 years ago

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.