Skip to content

Conversation

@Blitz54
Copy link
Contributor

@Blitz54 Blitz54 commented Dec 10, 2025

When adding the desecrated background images for mods on items, and the white image on skill gems, any lines that would get wrapped would print white for the latter lines. DrawString I guess strips the color code out and applies the color to the text, but doesn't set the universal draw color. So I needed a way to track the last used draw color (in this case from the text hex), print the background image in white, and then restore the last used color so that the text continues to use either supported or unsupported text coloring. Or any coloring for that matter.

Please take a look, I used mostly Claude for this, my brain only does Lua now, and we are lucky it can even do that.

@LocalIdentity LocalIdentity merged commit 7fd8aca into PathOfBuildingCommunity:master Dec 14, 2025
1 check passed
@Blitz54 Blitz54 deleted the track-color branch December 14, 2025 21:21
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.

2 participants