-
Notifications
You must be signed in to change notification settings - Fork 8
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
Can't colorize GUI labels #59
Comments
Yeah, this is going to be impossible since there's no colorcoded support by default. So I'm stuck doing weird workarounds that simply don't even work, the text doesn't even display properly to begin with. I don't know why one would have colorcoded support for mostly everything else, but not for CEGUI based things. Here's what I quickly wrapped up anyway, credit goes to Patrick and Sarrum for the regex:
And the output: There's other ways that I can think of to resolve this: Option A is easier, but then there's the downfall where you need to add yet another library to the project. |
Not keen on having a dependency on another GUI renderer. Instead of importing all that logic, another option is writing/including logic that creates multiple labels, split up by colour. (And setting the label colours.) |
Me neither honestly, I just wrote it down as a possibility. I wonder, would this work right out of the box? Edit: Nevermind, just noticed the vendor version being earlier (0.4.0), so not supported it seems. |
Those formatting tags look good. @Lpsd is working on the dream of updating CEGUI. multitheftauto/mtasa-blue#1459 |
Describe the bug
Can't colorize GUI labels. In action there are only color tags.
To reproduce
write into dialog big text with different colors
Expected behaviour
It must colorized.
Screenshots
The text was updated successfully, but these errors were encountered: