-
Notifications
You must be signed in to change notification settings - Fork 89
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 support for the new custom colors to the colors API (CS:S, TF2, HL2:DM, DOD:S) #10
Comments
The first step is done: parsing RGB(A) color tags. The following are valid tags:
Example: {#F00F} to print red text with full opacity. Left todo:
|
Will you be adding CSGO colors like purple? I think the tag is \x03. |
All CS:GO Colors: |
Yes, I can add those colors, please create a new issue for that as this one is for the RGB colors. |
Sure thing, added a new issue with further detail. |
Better idea is integrate morecolors. |
The following games now support the new custom colors:
The following new control characters can be used now in the usermessage SayText2:
\x07
Followup bytes (as string): RRGGBB
\x08 (supports alpha)
Followup bytes (as string): RRGGBBAA
Todo: implement this in the smlib colors API
I don't know why Valve decided to specify the color code as string, as this is not efficient, 1 byte for each color part would have been better to save banwidth, but ok.
https://forums.alliedmods.net/showthread.php?t=185016
https://forums.alliedmods.net/showthread.php?p=1717390
The text was updated successfully, but these errors were encountered: