Visible tag question
#1
I have been messing around with the visible tags this one in particular

Code:
<visible allowhiddenfocus="true">

It has been working great. But I have run into a problem. When I use this tag on the bookmarks created through the skin settings it acts weird. Like, if you have the last visible button highlighted and press down on the dpad the texturefocus dissappears but the button is being highlighted behind the background. I have tried many different combinations but none have worked right. Is there anyway to use this tag with these bookmarks?
Reply
#2
The allowhiddenfocus attribute just means that if the control is hidden, you may still move on to it (thus focusing it, and one would presume the plan is to make it visible). If you focus on an invisible button with allowhiddenfocus set to true, they'll receive focus, but will not become visible, unless the visible condition causes them to do so.

Cheers,
Jonathan
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
Thanks for the clarification jmarshall. I was afraid that might have been the answer. But I think I might have found a solution to my problem after a lot of thinking about it. Thanks again!
Reply
#4
Alright, I have another question. Why doesn't this work correctly

Code:
<visible>[!Skin.HasSetting(bookmarkbuttons) + Skin.HasSetting(ProgramsBM4)] + Control.HasFocus(2)|Control.HasFocus(3)|Control.HasFocus(4)|Control.HasFocus(99)|Control.HasFocus(6)|Control.HasFocus(31)|Control.HasFocus(32)|Control.HasFocus(33)|Control.HasFocus(34)</visible>

This allows buttons to be focused if bookmarks are not set or enabled. So is my logic wrong on this? Shouldn't this be

Code:
[true] and one of these is true

then a button is focused? Because the way it is acting now is that it is focused even if this part [] is not true.
Reply
#5
Try adding [] around the or operations.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#6
I have and it didn't work. I will try it again just to make sure. I'll let you know.
Reply
#7
Thanks jmarshall that fixed it. I had tried it before but was using the allowhiddenfocus tag. Thats why it didn't work.
Reply

Logout Mark Read Team Forum Stats Members Help
Visible tag question0