Skip to content

Fix washed-out experience bar colors + darker mining brown - #5

Merged
dazuki merged 3 commits into
dazuki:mainfrom
Class0806:fix-bar-colors
Oct 7, 2026
Merged

dazuki merged 3 commits into
dazuki:mainfrom
Class0806:fix-bar-colors

Conversation

@Class0806

Copy link
Copy Markdown

Split out of #4 per review.

The problem

Since the original UIInfoSuite2 (2017), the new Color(int, int, int, float) initializers bound to the all-float constructor, so every channel above 1 saturated to 255: farming / fishing / mining / luck rendered white, Combat rendered pink instead of red (its green channel was zero — the shade visible in the mod's screenshots), and only Foraging kept its intended green (two zero channels). The intended colors were in the code all along but never rendered.

The fix

Convert components to explicit 0-1 floats (the same style MasteryFillColor already uses), restoring the intended yellow / blue / brown / red. Also darkens the mining brown from tan (145,104,63) to (101,67,33) so the bar stands out against the beige dialogue box it's drawn on, per your review on #4 — happy to tune the shade.

🤖 Generated with Claude Code

Class0806 and others added 2 commits October 7, 2026 14:33
The (int, int, int, float) Color initializers bound to the all-float
constructor, so every channel above 1 saturated to 255: farming / fishing /
mining / luck rendered white, Combat rendered pink instead of red (its green
channel was zero — the shade visible in the mod's screenshots), and only
Foraging kept its intended green (two zero channels). Convert components to
0-1 floats like MasteryFillColor already does, restoring the intended colors.

Co-Authored-By: Claude Code <noreply@anthropic.com>
The original tan (145,104,63) blends into the beige dialogue box the bar
is drawn on. Use dark brown (101,67,33) instead, per review on dazuki#4.

Co-Authored-By: Claude Code <noreply@anthropic.com>
@dazuki

dazuki commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Will have a more closer look at the coloring after work. Thank you for the PR!

@dazuki
dazuki merged commit ee83546 into dazuki:main Oct 7, 2026
@dazuki

dazuki commented Oct 7, 2026 •

Copy link
Copy Markdown
Owner

Removed the comments and changed an odd float value for the Farming skill bar which has been around for some time. Thanks for your contribution!

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