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

add chat color customizability to groups #79

Merged
merged 2 commits into from
Feb 20, 2022
Merged

Conversation

Chupalika
Copy link

Hi, I would like to add this feature! It partially addresses #38. I may try to add prefixes in the future.

I have tried this alongside TCR-TerrariaChatRelay which uses the same method to intercept chat messages, and it works fine.

I wasn't able to set a chat color for Admin because it seems that it's created on mod load rather than stored in the database. I didn't really need it now though so I decided I'll leave it as is and maybe try again in the future.

20220117010427_1
20220117013034_1

@JavidPack
Copy link
Owner

Does this break loading existing groups? I wonder what the color will be for missing entries in the json. Let me know if you tested that.

@Chupalika
Copy link
Author

nah it seems to load fine for existing groups, it just shows up as (0,0,0) in game. In the json they are just missing the "color" field, but once a group update is applied they will be backfilled with (0,0,0,0).

@JavidPack
Copy link
Owner

Looks good, I'll be publishing this in the hour.

@JavidPack JavidPack merged commit 7c481e2 into JavidPack:1.3 Feb 20, 2022
@JavidPack
Copy link
Owner

Just so you know, this approach does break all mod commands, you might want to fix this for TCR-TerrariaChatRelay

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants