Possible for multiple overlays?
#1
Question 
In my homescreen i have the music playing showing the cover, track name, artist name and duration. What I would like to do is:

When browsing files (Movies, music, pictures etc.), could it be possible to make an extra "overlay.xlm"? for instance:

MusicOverlay.xml - the default which will be displayed on Home Screen only.
MusicOverlayBrowsing.xml - when browsing media.


Thanks!
Reply
#2
Just use separate groups in the MusicOverlay.xml and use visible conditions based on what window is visible.
Reply
#3
in MusicOverlay.xml just apply <visible>Window.IsActive(home)</visible> to group You want to see on home

--edit, lol by split second, Hitcher Wink
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#4
Thank you guys. I really appreciated your help! Smile
Reply
#5
Okay, I got the above to work. Now i'm working on PlayerControls.xml. For some reason I can't get it to act as the MusicOverlay.xml. Is that because the PlayerControls.xml does not supports it? I want to only have 3 mediacontrols on home, and for browsing musicfiles for example i want 5.

Have tried all day and it drives me nuts Big Grin


Once again, thanks!
Reply
#6
What you'll have to do in this case is use conditional includes.
Reply
#7
Hitcher Wrote:What you'll have to do in this case is use conditional includes.

By that you mean an extra .xml file, and put it in my code like:

Code:
<!-- CONTROLS WHEN BROWSING -->
    <include>filename.xml</include>
    <visible>Windows.IsActive(musicfiles)</visible>

    CODES FOR PLAYERCONTROLS
<!-- CONTROLS WHEN BROWSING END -->

?
Reply
#8
Almost.

PHP Code:
<include condition="Window.IsActive(musicfiles)">NAME_OF_INCLUDE</include> 

Then in the includes.xml

PHP Code:
<include name="NAME_OF_INCLUDE">
your player controls for music files
</include> 

etc.
Reply
#9
Hitcher Wrote:Almost.

PHP Code:
<include condition="Windows.IsActive(musicfiles)">NAME_OF_INCLUDE</include> 

Then in the includes.xml

PHP Code:
<include name="NAME_OF_INCLUDE">
your player controls for music files
</include> 

etc.

Great! Thanks! I'm on that now! Smile So when I have edited it in Includes.xml, I'll just put it inside the PlayerControls.xml afterwards? Is it still possible using the same command ("m") or would it conflict so I have to make a custom command under keymap.xml?

Once agin, Thanks Hitcher!
Reply
#10
The conditional includes go in the PlayerControls.xml and it'll load which ever one is relevant.

If you only want it different for Home then simply use this -

PHP Code:
<include condition="Window.IsActive(home)">NAME_OF_HOME_INCLUDE</include>
<include 
condition="!Window.IsActive(home)">NAME_OF_OTHER_INCLUDE</include> 
Reply
#11
Hitcher Wrote:The conditional includes go in the PlayerControls.xml and it'll load which ever one is relevant.

If you only want it different for Home then simply use this -

PHP Code:
<include condition="Window.IsActive(home)">NAME_OF_HOME_INCLUDE</include>
<include 
condition="!Window.IsActive(home)">NAME_OF_OTHER_INCLUDE</include> 

Great Hitcher. You've been a great help! I'll report back to you whether or not I get it to work. Smile
Reply
#12
Okay, didn't work out. My code looks like this now:

In PlayerControls.xml

Code:
<!-- PLAYER CONTROLS WHEN BROWSING -->
    <include condition="Window.IsActive(musicfiles)">PlayerControlsBrowsing</include>
<!-- PLAYER CONTROLS WHEN BROWSING END -->

In Includes.xml

Code:
<!-- PLAYER CONTROLS WHEN BROWSING -->
    <include name="PlayerControlsBrowsing">
            
            <control type="grouplist" id="1">
                <posx>15</posx>
                <posy>60</posy>
                <width>621</width>
                <height>225</height>
                <itemgap>3</itemgap>
                <orientation>horizontal</orientation>
                <onleft>1</onleft>
                <onright>1</onright>
            
                <control type="togglebutton" id="400">
                    <description>Random</description>
                    <width>75</width>
                    <height>75</height>
                    <label>-</label>
                    <texturefocus>other_textures/OSD/RandomOffFO.png</texturefocus>
                    <texturenofocus>other_textures/OSD/RandomOffNF.png</texturenofocus>
                    <usealttexture>Playlist.IsRandom</usealttexture>
                    <alttexturefocus>other_textures/OSD/RandomOnFO.png</alttexturefocus>
                    <alttexturenofocus>other_textures/OSD/RandomOnNF.png</alttexturenofocus>
                    <onclick>playercontrol(random)</onclick>
                </control>
            </control>
    </include>
<!-- PLAYER CONTROLS WHEN BROWSING END -->

I only did the Radom Button as a test. It looks right to me, but something is wrong. Sad
Reply

Logout Mark Read Team Forum Stats Members Help
Possible for multiple overlays?0