Conversation
|
Good work, although indentation is a bit screwed up. This project uses hard tabs, not spaces. |
|
I must've messed it up with autoformatting, oops, thanks tho! |
|
Can you fix the formatting, please? |
|
done! (assuming the only issue was the spaces instead of tabs) sorry, i got busy w/ other stuff |
LiquidFenrir
left a comment
There was a problem hiding this comment.
There's a bug when a character is in the last range of colours and the next character also is.
You also don't properly reset to the default opaque black (or WithColor-provided value) when the first range doesn't start at the beginning of the text, instead drawing with the last drawn character's colour.
|
i think those should be fixed now, anything else? |
|
Looks fine to me now, but I think |
|
fixed |
|
Hey! Any news about the pr? |
adds support for drawing multicolor text in one call to
C2D_DrawTextusing a new flagC2D_MultiColora
u32array must also be passed toC2D_DrawTextformatted like:{start_idx0, color0, start_idx1, color1, ...}where the start_idx is the index of the character where the corresponding color starts in the string. This is kind of similar to the coloredtext format in the text drawing calls Love2D.a
u32with the length of that array must be passed as well.