need help with textcolor
#1
how can i get this to work as it doesn't seem too.

Code:
<textcolor Condition="Container(9000).HasFocus(998)">white</textcolor>

trying to change the text color when focus on a content
Reply
#2
the textcolor tag doesn't have a condition attribute.
try using a $VAR[] instead.
Do not PM or e-mail Team-Kodi members directly asking for support.
Always read the Forum rules, Kodi online-manual, FAQ, Help and Search the forum before posting.
Reply
#3
textcolor tags does not accept "condition" attribute.

you can use two different controls with:
Code:
<textcolor>white</textcolor>
<visible>Container(9000).HasFocus(998)</visible>

and:
Code:
<textcolor>red</textcolor>
<visible>!Container(9000).HasFocus(998)</visible>

or, you can use variables:
Code:
<textcolor>$VAR[foo]</textcolor>

Code:
<variable name="foo">
<value condition="Container(9000).HasFocus(998)">white</value>
<value>red</value>
</variable>

edit:
and ronie is quicker once again :]
Phenomenal™ Skin • ForumWebsiteGitHub
Reply
#4
thanks i'll give that a go
Reply
#5
What is the control type? There could be better ways.
Reply
#6
You could also use includes with conditions. It might not be best solution just letting you know all of your options
E.G
PHP Code:
<include name="whitetext">
<
textcolor>white<\textcolor>
</include> 
And: put this in the control
PHP Code:
<include condition="foo">whitetext</include> 
Aussie, Aussie, Aussie, Oi, Oi, Oi

Don't forget the Thank User button if i have helped!
|
V
Reply

Logout Mark Read Team Forum Stats Members Help
need help with textcolor0