Hi.
I'm modding Showcase DVD view to add the possibility to open the case for viewing CDart disc :
I'm able to open the case by pressing down arrow (by using hidden button id="961")
Now, I want to display the CDart disc (disc.png) if present or Bluray / DVD disc if not but resolution is known or default disc if no disc.png and no resolution.
In Includes_Showcase_Cases.xml, I create new includes :
And in group 6004, I add :
And I have what I want : disc.png if exist Bluray Disc if not.
Now, I want to have BR or DVD disc depending on resolution.
I have tried those code without success :
Where is my mistake ? Is there a different way to do what I what ?
Thanks.
I'm modding Showcase DVD view to add the possibility to open the case for viewing CDart disc :
I'm able to open the case by pressing down arrow (by using hidden button id="961")
Now, I want to display the CDart disc (disc.png) if present or Bluray / DVD disc if not but resolution is known or default disc if no disc.png and no resolution.
In Includes_Showcase_Cases.xml, I create new includes :
Code:
<include name="MovieShowcaseBDDisc">
<posx>109</posx>
<posy>110</posy>
<width>195</width>
<height>195</height>
<texture background="true" fallback="common/cdart/disc-BD.png">$VAR[ShowcaseDisc0Var]</texture>
</include>
<include name="MovieShowcaseDVDDisc">
<posx>109</posx>
<posy>110</posy>
<width>195</width>
<height>195</height>
<texture background="true" fallback="common/cdart/disc-DVD.png">$VAR[ShowcaseDisc0Var]</texture>
</include>
<include name="MovieShowcaseDisc">
<posx>109</posx>
<posy>110</posy>
<width>195</width>
<height>195</height>
<texture background="true">common/cdart/default.png</texture>
</include>
And in group 6004, I add :
Code:
<include>MovieShowcaseBDDisc</include>
And I have what I want : disc.png if exist Bluray Disc if not.
Now, I want to have BR or DVD disc depending on resolution.
I have tried those code without success :
Code:
<include condition="stringcompare(Container(504).ListItemNoWrap(0).VideoResolution,720) | stringcompare(Container(504).ListItemNoWrap(0).VideoResolution,1080)">MovieShowcaseBDDisc</include>
Code:
<include condition="stringcompare(Container(504).ListItem(0).VideoResolution,720) | stringcompare(Container(504).ListItem(0).VideoResolution,1080)">MovieShowcaseBDDisc</include>
Code:
<include condition="stringcompare($INFO[Container(504).ListItem(0).VideoResolution],720) | stringcompare($INFO[Container(504).ListItem(0).VideoResolution],1080)">MovieShowcaseBDDisc</include>
Where is my mistake ? Is there a different way to do what I what ?
Thanks.