Conditional visibility and System.Idletime()
#1
Question 
I have two controls, Control A is an image control, and Control B is a control group.

Control B is set to become visible with a System.IdleTime(2) so that it appears after 2 seconds of doing nothing. This works.

Control A is set to be visible only if Control B is NOT visible. This previously worked fine when Control B became visible through a hard action (Control B used to become visible by navigating to it), but now it no longer does. When control B becomes visible, Control A does not get hidden.

Code snippet follows

Code:
            <control type="image">
                <posx>415</posx>
                <posy>0</posy>
                <width>285</width>
                <height>480</height>
                <aspectratio align="right" aligny="center">keep</aspectratio>
                <info>ListItem.Icon</info>
                <visible>!ControlGroup(2000).IsVisible(0)</visible>
            </control>
        </control>
        <control type="group" id="2000">
            <animation effect="fade" start="0" end="100" time="200">Visible</animation>
            <visible allowhiddenfocus="true">System.IdleTime(2)</visible>
            <control type="image">
                <posx>20</posx>
                <posy>0</posy>
                <width>335</width>
                <height>480</height>
                <aspectratio aligny="center">keep</aspectratio>
                <info>ListItem.Icon</info>
            </control>
Reply
#2
Ok. I managed to work around this by building a complex series of conditionals and animations, but I wonder if the original issue is a bug?
Reply
#3
Some things to try:

1. Drop the (0) off the controlgroup.isvisible.

2. Change the controlgroup.isvisible to control.isvisible.

Also, please make available a skin that allows this to be easily reproduced (eg a mod to the PM3 homepage that shows this behaviour for instance) if you think there's a bug here, whether solved by the above or not Smile

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
#4
jmarshall Wrote:Some things to try:

1. Drop the (0) off the controlgroup.isvisible.

2. Change the controlgroup.isvisible to control.isvisible.

Also, please make available a skin that allows this to be easily reproduced (eg a mod to the PM3 homepage that shows this behaviour for instance) if you think there's a bug here, whether solved by the above or not Smile

Cheers
Jonathan

I didin't try #1, though I did try #2.

When I get a moment i'll hack something into PM3 and see what I see.
Reply

Logout Mark Read Team Forum Stats Members Help
Conditional visibility and System.Idletime()0