Help using Conditionals
#1
Firstly I should say that I have no skinning skills what so ever - I'm basically editing things and then checking to see what they look like. I've tried reading the skinning manual but it just goes over my head I'm afraid. What I have managed to do though is mod a MediaStream view (InfoList) to show a longer list of titles and display their fanart instead of their thumbs like below.

Movies -

Image

TV Shows -

Image

The only problem comes when I enter the TV Show and get the fanart displayed instead of the episode thumbs.

Image

Below is the code I've edited to show the fanart and what I'd really like to do is have the thumbs chosen when in Episode View.
Is this possible using a Condition?

[HTML] <control type="image">
<posx>-8</posx>
<posy>-8</posy>
<width>768</width>
<height>432</height>
<info>ListItem.Property(fanart_image)</info>
<aspectratio aligny="bottom">keep</aspectratio>
<bordertexture border="14">ThumbShadow2.png</bordertexture>
<bordersize>8</bordersize>
</control>
<control type="image">
<posy>416</posy>
<width>752</width>
<height>416</height>
<info>ListItem.Property(fanart_image)</info>
<texture flipy="true" diffuse="DiffuseMirror.png" />
<aspectratio aligny="top">keep</aspectratio>
</control>[/HTML]

Thanks.
Reply
#2
use Container.Content(episodes) to show a different thumb when viewing episodes.
Reply
#3
So something like this -

<visible>[Container.Content(episodes) <info>ListItem.Thumb</info>] | <info>ListItem.Property(fanart_image)</info></visible>
Reply
#4
Nope. I obviously don't understand how to use them properly. Rolleyes

I know what I want XBMC to do (but just don't know how to get it to do it).

always use
<info>ListItem.Property(fanart_image)</info>
unless
Container.Content(episodes)
is true, then use
<info>ListItem.Thumb</info>

Does the condition control everything within <control>...</control>?
Reply
#5
Smile 
What about this, does that help? You need separate image controls, one for fanart, one for episode thumb. Each having different conditionals.

fanart:
Code:
<control type="image">
          <posx>-8</posx>
          <posy>-8</posy>
          <width>768</width>
          <height>432</height>
          <info>ListItem.Property(fanart_image)</info>
          [b]<visible>!Container.Content(episodes)</visible>[/b]
          <aspectratio aligny="bottom">keep</aspectratio>
          <bordertexture border="14">ThumbShadow2.png</bordertexture>
          <bordersize>8</bordersize>
        </control>
        <control type="image">
          <posy>416</posy>
          <width>752</width>
          <height>416</height>
          <info>ListItem.Property(fanart_image)</info>
          [b]<visible>!Container.Content(episodes)</visible>[/b]</visible>[/b]
          <texture flipy="true" diffuse="DiffuseMirror.png" />
          <aspectratio aligny="top">keep</aspectratio>
        </control>

thumb:
Code:
<control type="image">
          <posx>-8</posx>
          <posy>-8</posy>
          <width>768</width>
          <height>432</height>
          [b]<info>ListItem.Thumb</info>
          <visible>Container.Content(episodes)</visible>[/b]
          <aspectratio aligny="bottom">keep</aspectratio>
          <bordertexture border="14">ThumbShadow2.png</bordertexture>
          <bordersize>8</bordersize>
        </control>
        <control type="image">
          <posy>416</posy>
          <width>752</width>
          <height>416</height>
         [b] <info>ListItem.Thumb</info>
          <visible>Container.Content(episodes)</visible></visible>[/b]
          <texture flipy="true" diffuse="DiffuseMirror.png" />
          <aspectratio aligny="top">keep</aspectratio>
        </control>
Reply
#6
That's it.

I was almost there (I had both thumb and fanart showing) but didn't realise the significance of the ! in the condition.

Thanks.
Reply
#7
Results here -

http://forum.xbmc.org/showthread.php?p=2...post278433
Reply

Logout Mark Read Team Forum Stats Members Help
Help using Conditionals0