2016-08-30, 16:29
Hi,
I have the following question/problem.
my addon "send" two kinds of content to Kodi.
first is a static content $INFO[Window(Home).Property(TV-Guide.x.Date)]
that gives the date from today till 14 days in advance.
the content is shown in a <control type="list" id="9000">
so far so good.
second is a dynamic content with all TV-Shows within the next 14 days.
The content is shown in a <control type="panel" id="3xx">
I try to get a <visible> in the panal that only shows all TV-Show were $INFO[Window(Home).Property(TV-Guide.x.Date)] from Container 9000 ist equal to the ListItem.Property(Datum) from the dynamic content...
but I cant get it work...
I have the following question/problem.
my addon "send" two kinds of content to Kodi.
first is a static content $INFO[Window(Home).Property(TV-Guide.x.Date)]
that gives the date from today till 14 days in advance.
the content is shown in a <control type="list" id="9000">
so far so good.
second is a dynamic content with all TV-Shows within the next 14 days.
The content is shown in a <control type="panel" id="3xx">
I try to get a <visible> in the panal that only shows all TV-Show were $INFO[Window(Home).Property(TV-Guide.x.Date)] from Container 9000 ist equal to the ListItem.Property(Datum) from the dynamic content...
but I cant get it work...
Code:
<control type="group">
<left>0</left>
<top>128</top>
<include>Window_OpenClose_Animation</include>
<include>SystemLeftPanel</include>
<control type="list" id="9000">
<!--onfocus>SetProperty(guide.date,$INFO[Container(9000).ListItem.Property(date)],home)</onfocus-->
<left>82</left>
<top>32</top>
<width>356</width>
<height>720</height>
<onleft>61</onleft>
<onright condition="Container(9000).HasFocus(1)">200</onright>
<onright condition="Container(9000).HasFocus(2)">201</onright>
<onright condition="Container(9000).HasFocus(3)">202</onright>
<onright condition="Container(9000).HasFocus(4)">203</onright>
<onright condition="Container(9000).HasFocus(5)">204</onright>
<onright condition="Container(9000).HasFocus(6)">205</onright>
<onright condition="Container(9000).HasFocus(7)">206</onright>
<onright condition="Container(9000).HasFocus(8)">207</onright>
<onright condition="Container(9000).HasFocus(9)">208</onright>
<onright condition="Container(9000).HasFocus(10)">209</onright>
<onright condition="Container(9000).HasFocus(11)">210</onright>
<onright condition="Container(9000).HasFocus(12)">211</onright>
<onright condition="Container(9000).HasFocus(13)">212</onright>
<onright condition="Container(9000).HasFocus(14)">213</onright>
<onright condition="Container(9000).HasFocus(15)">214</onright>
<onup>9000</onup>
<ondown>9000</ondown>
<pagecontrol>61</pagecontrol>
<scrolltime tween="quadratic">300</scrolltime>
<!--onfocus>SetProperty(guide.date,$INFO[ListItem.Property(date)],home)</onfocus-->
<itemlayout height="90" width="356">
<control type="image">
<top>30</top>
<width>356</width>
<height>60</height>
<texture border="1">separator2.png</texture>
</control>
<control type="group">
<control type="label">
<width>356</width>
<height>90</height>
<font>font15_bold</font>
<textoffsetx>20</textoffsetx>
<textcolor>grey2</textcolor>
<selectedcolor>$VAR[ThemeLabelColor]</selectedcolor>
<label>$INFO[ListItem.Label]</label>
</control>
<control type="label">
<width>356</width>
<height>90</height>
<font>font15</font>
<textoffsetx>20</textoffsetx>
<textcolor>grey2</textcolor>
<selectedcolor>$VAR[ThemeLabelColor]</selectedcolor>
<align>right</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label2]</label>
</control>
</control>
</itemlayout>
<focusedlayout height="90" width="356">
<control type="image">
<top>30</top>
<width>356</width>
<height>60</height>
<texture border="1">separator2.png</texture>
</control>
<control type="image">
<left>0</left>
<top>0</top>
<width>356</width>
<height>90</height>
<texture colordiffuse="$VAR[HighlightBarColor]" border="4">listselect_fo.png</texture>
<visible>Control.HasFocus(9000)</visible>
<include>VisibleFadeEffect</include>
</control>
<control type="group">
<control type="label">
<width>356</width>
<height>90</height>
<font>font15_bold</font>
<textoffsetx>20</textoffsetx>
<selectedcolor>$VAR[ThemeLabelColor]</selectedcolor>
<label>$INFO[ListItem.Label]</label>
</control>
<control type="label">
<width>356</width>
<height>90</height>
<font>font15</font>
<textoffsetx>20</textoffsetx>
<selectedcolor>$VAR[ThemeLabelColor]</selectedcolor>
<align>right</align>
<aligny>center</aligny>
<label>$INFO[ListItem.Label2]</label>
</control>
</control>
</focusedlayout>
<content>
<item id="1">
<label>$INFO[Window(Home).Property(TV-Guide.0.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.0.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="2">
<label>$INFO[Window(Home).Property(TV-Guide.1.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.1.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="3">
<label>$INFO[Window(Home).Property(TV-Guide.2.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.2.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="4">
<label>$INFO[Window(Home).Property(TV-Guide.3.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.3.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="5">
<label>$INFO[Window(Home).Property(TV-Guide.4.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.4.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="6">
<label>$INFO[Window(Home).Property(TV-Guide.5.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.5.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="7">
<label>$INFO[Window(Home).Property(TV-Guide.6.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.6.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="8">
<label>$INFO[Window(Home).Property(TV-Guide.7.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.7.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="9">
<label>$INFO[Window(Home).Property(TV-Guide.8.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.8.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="10">
<label>$INFO[Window(Home).Property(TV-Guide.9.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.9.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="11">
<label>$INFO[Window(Home).Property(TV-Guide.10.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.10.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="12">
<label>$INFO[Window(Home).Property(TV-Guide.11.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.11.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="13">
<label>$INFO[Window(Home).Property(TV-Guide.12.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.12.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="14">
<label>$INFO[Window(Home).Property(TV-Guide.13.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.13.Wday)]</label2>
<onclick>noop</onclick>
</item>
<item id="15">
<label>$INFO[Window(Home).Property(TV-Guide.14.Date)]</label>
<label2>$INFO[Window(Home).Property(TV-Guide.14.Wday)]</label2>
<onclick>noop</onclick>
</item>
</content>
</control>
<control type="scrollbar" id="61">
<left>65</left>
<top>32</top>
<width>14</width>
<height>720</height>
<onleft>-</onleft>
<onleft>-</onleft>
<onright>9000</onright>
<ondown>61</ondown>
<onup>61</onup>
<showonepage>false</showonepage>
<texturesliderbackground>-</texturesliderbackground>
<texturesliderbar colordiffuse="55ffffff" border="1">scrollbar/texturesliderbar2.png</texturesliderbar>
<texturesliderbarfocus border="1">scrollbar/texturesliderbar2.png</texturesliderbarfocus>
</control>
<control type="image">
<description>LOGO</description>
<left>82</left>
<top>752</top>
<width>356</width>
<height>120</height>
<aspectratio>keep</aspectratio>
<texture>aeon-nox-logo.png</texture>
</control>
<include>SystemRightPanel</include>
<control type="group" id="9001">
<control type="scrollbar" id="60">
<left>522</left>
<top>18</top>
<width>1316</width>
<height>12</height>
<onup>9001</onup>
<ondown condition="Container(9000).HasFocus(1)">200</ondown>
<ondown condition="Container(9000).HasFocus(2)">201</ondown>
<ondown condition="Container(9000).HasFocus(3)">202</ondown>
<ondown condition="Container(9000).HasFocus(4)">203</ondown>
<ondown condition="Container(9000).HasFocus(5)">204</ondown>
<ondown condition="Container(9000).HasFocus(6)">205</ondown>
<ondown condition="Container(9000).HasFocus(7)">206</ondown>
<ondown condition="Container(9000).HasFocus(8)">207</ondown>
<ondown condition="Container(9000).HasFocus(9)">208</ondown>
<ondown condition="Container(9000).HasFocus(10)">209</ondown>
<ondown condition="Container(9000).HasFocus(11)">210</ondown>
<ondown condition="Container(9000).HasFocus(12)">211</ondown>
<ondown condition="Container(9000).HasFocus(13)">212</ondown>
<ondown condition="Container(9000).HasFocus(14)">213</ondown>
<ondown condition="Container(9000).HasFocus(15)">214</ondown>
<ondown condition="Container(9000).HasFocus(16)">215</ondown>
<onleft>9000</onleft>
<texturesliderbackground border="1">-</texturesliderbackground>
<texturesliderbar border="6,0,6,0">scrollbar/texturesliderbar_hor.png</texturesliderbar>
<texturesliderbarfocus border="6,0,6,0">scrollbar/texturesliderbarfocus_hor.png</texturesliderbarfocus>
<textureslidernib>-</textureslidernib>
<textureslidernibfocus>-</textureslidernibfocus>
<showonepage>false</showonepage>
<orientation>horizontal</orientation>
<animation effect="fade" start="100" end="0" time="500" delay="500" condition="!Control.HasFocus(60) + !Container.Scrolling">Conditional</animation>
</control>
<control type="panel" id="200">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(1)] | Control.HasFocus(200) | [Container(9000).HasFocus(1) + Control.HasFocus(60)]</visible>
<!--visible>StringCompare(Container(200).ListItem.Property(Datum),30.08.2016)</visible-->
<include>SettingsFadeEffect</include>
<onright>200</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="201">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(2)] | Control.HasFocus(201) | [Container(9000).HasFocus(2) + Control.HasFocus(60)]</visible>
<!--visible>StringCompare(ListItem.Property(Datum),Window(Home).Property(guide.date1))</visible-->
<include>SettingsFadeEffect</include>
<onright>201</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="202">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(3)] | Control.HasFocus(202) | [Container(9000).HasFocus(3) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>202</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="203">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(4)] | Control.HasFocus(203) | [Container(9000).HasFocus(4) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>203</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="204">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(5)] | Control.HasFocus(204) | [Container(9000).HasFocus(5) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>204</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="205">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(6)] | Control.HasFocus(205) | [Container(9000).HasFocus(6) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>205</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="206">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(7)] | Control.HasFocus(206) | [Container(9000).HasFocus(7) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>206</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="207">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(8)] | Control.HasFocus(207) | [Container(9000).HasFocus(8) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>207</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="208">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(9)] | Control.HasFocus(208) | [Container(9000).HasFocus(9) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>208</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="209">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(10)] | Control.HasFocus(209) | [Container(9000).HasFocus(10) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>209</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="210">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(11)] | Control.HasFocus(210) | [Container(9000).HasFocus(11) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>210</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="211">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(12)] | Control.HasFocus(211) | [Container(9000).HasFocus(12) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>211</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="212">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(13)] | Control.HasFocus(212) | [Container(9000).HasFocus(13) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>212</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="213">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(14)] | Control.HasFocus(213) | [Container(9000).HasFocus(14) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>213</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="214">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(15)] | Control.HasFocus(214) | [Container(9000).HasFocus(15) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>214</onright>
<include>SerienplanerListCommonLayout</include>
</control>
<control type="panel" id="215">
<visible allowhiddenfocus="true">[Control.HasFocus(9000) + Container(9000).HasFocus(16)] | Control.HasFocus(215) | [Container(9000).HasFocus(16) + Control.HasFocus(60)]</visible>
<include>SettingsFadeEffect</include>
<onright>215</onright>
<include>SerienplanerListCommonLayout</include>
</control>
</control>
</control>