Widget Colors

Discussion about the game and its default mods.
Post Reply
reaperrr
Posts: 17
Joined: Wed Dec 17, 2003 3:35 pm

Widget Colors

Post by reaperrr »

It bugged me that most widgets are hard-coded to white text (grey when disabled), so with some careful copy-pasting from the LabelWidget code and some adjustments I've successfully changed that for the ButtonWidget and will apply that to other Widgets where possible.
However, I have difficulties with the CheckboxWidget. The text is not a problem, but the check remains white. What do I have to do to change that?

Scott_NZ
Posts: 94
Joined: Thu Sep 13, 2012 9:09 am

Post by Scott_NZ »

Checkbox depends on 'checkbox-bits' with a field named 'checked'.
Take RA as an example. It has the following in chrome.yaml:

Code: Select all

checkbox-bits: buttons.png
	checked: 0,112,16,16
The check art itself is in uibits/buttons.png at (0,112).

reaperrr
Posts: 17
Joined: Wed Dec 17, 2003 3:35 pm

Post by reaperrr »

Ah, I see. I really should have known better than to look at buttons.png with Windows Preview/Paint, which translates transparency to white :roll:

Thanks. Lesson learned, I guess...

Post Reply