Reply to thread

Changing unfocused alpha changes transparancy of the entire item, including its texture. According to the wiki it should be done like this: change textcolor in lists without affecting alpha:


[code]

  <textcolor>FF808080</textcolor>

  <textcolor2>FF808080</textcolor2>

  <textcolor3>FF808080</textcolor3>

[/code]


...each targeting the code of the three label items.


And specify the color of selected items like this:


[code]

  <selectedColor>FFFFFFFF</selectedColor>

  <selectedColor2>FFFFFFFF</selectedColor2>

  <selectedColor3>FFFFFFFF</selectedColor3>

[/code]


This doesn't work however. I think specifying colors in listcontrols is bugged.


This is from the source, so the wiki does mention the correct tags:


[code]

    [XMLSkinElement("textcolor")]

    protected long _textColor = 0xFFFFFFFF;

    [XMLSkinElement("textcolor2")]

    protected long _textColor2 = 0xFFFFFFFF;

    [XMLSkinElement("textcolor3")]

    protected long _textColor3 = 0xFFFFFFFF;

    [XMLSkinElement("selectedColor")]

    protected long _selectedColor = 0xFFFFFFFF;

    [XMLSkinElement("selectedColor2")]

    protected long _selectedColor2 = 0xFFFFFFFF;

    [XMLSkinElement("selectedColor3")]

    protected long _selectedColor3 = 0xFFFFFFFF;

[/code]


Top Bottom