$PARAM issue with complex include and <!-- description --> excludes - sualfred - 2016-02-09
Hey,
I've noticed a strange $PARAM behaviour.
This works:
Code: <!-- Home Widget Param Include -->
<include name="ParamWidgetInclude">
<param name="ID"/>
<param name="widget"/>
<param name="content" default="FtvWidget"/>
<definition>
<!-- Hidden Lists -->
<include name="Param$PARAM[content]Lists">
<param name="ID">$PARAM[ID]</param>
</include>
<!-- Banner List -->
<control id="$PARAM[ID]9" type="list">
<include>HiddenHomeList</include>
<content limit="1">$INFO[Skin.String($PARAM[ID]0-WidgetAd)]</content>
</control>
<!-- Advert Banner -->
<control type="group">
<left>419</left>
<top>-253</top>
<width>2100</width>
<height>1500</height>
<include>HomeWidgetsAnimation</include>
<include>WindowHomeFadeAnimation</include>
<visible>!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + IntegerGreaterThan(Container($PARAM[ID]0).NumItems,1) + [!IsEmpty(Window(home).Property(preload)) | StringCompare(Container(99).ListItem.Property(ftvWidget),$PARAM[widget])]</visible>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + [Control.HasFocus($PARAM[ID]0) | !Container($PARAM[ID]0).Row(1)]" easing="inout" effect="slide" end="0,-247" time="220" tween="sine">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(2)" easing="inout" effect="slide" end="0,-144" time="220" tween="sine">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3)" easing="inout" effect="slide" end="0,-144" time="220" tween="sine">Conditional</animation>
<animation condition="StringCompare(Container($PARAM[ID]0).NumItems,2) + Control.HasFocus($PARAM[ID]0)" easing="inout" effect="slide" end="0,-180" time="220" tween="sine">Conditional</animation>
<control type="group">
<left>33</left>
<top>383</top>
<width>2100</width>
<height>1500</height>
<control type="image">
<top>0</top>
<left>-48</left>
<centertop>288</centertop>
<width>1616</width>
<height>233</height>
<texture border="66,66,51,51">views/shadow_nf.png</texture>
</control>
<control type="image">
<width>1500</width>
<height>185</height>
<aspectratio scalediffuse="false" aligny="top">scale</aspectratio>
<texture background="true" diffuse="views/highlight_banner_mask.png">$INFO[Container($PARAM[ID]9).ListItem.Art(fanart)]</texture>
</control>
<control type="image">
<width>58</width>
<height>58</height>
<texture>views/OverlayHighlight.png</texture>
</control>
<control type="image">
<top>48</top>
<width>90</width>
<height>90</height>
<texture>views/OverlayHD.png</texture>
<visible>IntegerGreaterThan(ListItem.VideoResolution,719)</visible>
</control>
<control type="image">
<top>55</top>
<left>40</left>
<width>40</width>
<height>26</height>
<colordiffuse>bbffffff</colordiffuse>
<texture>views/HD_icon.png</texture>
<visible>IntegerGreaterThan(Container($PARAM[ID]9).ListItem.VideoResolution,719)</visible>
</control>
<control type="grouplist">
<top>10</top>
<left>40</left>
<aligny>center</aligny>
<width>1500</width>
<height>165</height>
<orientation>horizontal</orientation>
<itemgap>45</itemgap>
<control type="textbox">
<width>250</width>
<height>50</height>
<font>Med24</font>
<scroll>false</scroll>
<textcolor>ffffffff</textcolor>
<shadowcolor>88000000</shadowcolor>
<align>left</align>
<aligny>center</aligny>
<label>$LOCALIZE[31251]</label>
</control>
<control type="image">
<width>535</width>
<height>165</height>
<aspectratio aligny="center" align="center">stretch</aspectratio>
<texture>$INFO[Container($PARAM[ID]9).ListItem.Art(clearlogo)]</texture>
<visible>!IsEmpty(Container($PARAM[ID]9).ListItem.Art(clearlogo))</visible>
</control>
<control type="textbox">
<width>535</width>
<height>165</height>
<font>Med30</font>
<scroll>false</scroll>
<textcolor>ffffffff</textcolor>
<shadowcolor>88000000</shadowcolor>
<align>center</align>
<aligny>center</aligny>
<label>$VAR[$PARAM[ID]0-WidgetAd-Text]$INFO[Container($PARAM[ID]9).ListItem.Label,[B],[/B]]</label>
</control>
</control>
<control type="image">
<width>1500</width>
<height>185</height>
<texture>views/OverlayNF.png</texture>
<visible>Control.HasFocus($PARAM[ID]0)</visible>
<animation easing="inout" effect="fade" end="100" start="0" time="220" tween="sine">VisibleChange</animation>
</control>
</control>
</control>
<!-- Widgets -->
<control type="group">
<animation condition="!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + !Control.HasFocus($PARAM[ID]0) + Container($PARAM[ID]0).Row(1)" easing="inout" effect="slide" start="0,0" end="0,247" time="220" tween="sine">Conditional</animation>
<animation condition="!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + StringCompare(Container($PARAM[ID]0).NumItems,2) + !Control.HasFocus($PARAM[ID]0) + Container($PARAM[ID]0).Row(1)" easing="inout" effect="slide" start="0,0" end="0,247" time="220" tween="sine">Conditional</animation>
<animation condition="!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + StringCompare(Container($PARAM[ID]0).NumItems,2) + !Control.HasFocus($PARAM[ID]0)" easing="inout" effect="slide" end="0,180" time="220" tween="sine">Conditional</animation>
<control id="$PARAM[ID]0" type="fixedlist">
<include>HomeWidgetsAnimation</include>
<include>WindowHomeFadeAnimation</include>
<visible>!IsEmpty(Window(home).Property(preload)) | StringCompare(Container(99).ListItem.Property(ftvWidget),$PARAM[widget])</visible>
<left>419</left>
<top>-253</top>
<width>2100</width>
<height>1500</height>
<onup condition="!Window.IsVisible(1101)">SetProperty(BounceUp,1,Home)</onup>
<onup>noop</onup>
<ondown condition="!Window.IsVisible(1101)">SetProperty(BounceDown,1,Home)</ondown>
<ondown>noop</ondown>
<onleft>99</onleft>
<onright>Select</onright>
<onback>99</onback>
<movement>1</movement>
<focusposition>2</focusposition>
<viewtype label="">list</viewtype>
<orientation>vertical</orientation>
<defaultcontrol>1</defaultcontrol>
<scrolltime easing="inout" tween="sine">300</scrolltime>
<animation condition="StringCompare(Container($PARAM[ID]0).NumItems,1)" effect="slide" end="-304,-114">Conditional</animation>
<animation condition="StringCompare(Container($PARAM[ID]0).NumItems,2)" effect="slide" end="0,-299">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + !Container($PARAM[ID]0).Row(1)" easing="inout" effect="slide" end="0,-114" time="220" tween="sine">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3) + Control.HasFocus($PARAM[ID]0)" easing="inout" effect="slide" end="0,-212" time="220" tween="sine">Conditional</animation>
<itemlayout height="370" width="2000">
<control type="group">
<left>33</left>
<control type="image">
<width>227</width>
<height>334</height>
<texture border="0,14,11,14">home/home_button_nf.png</texture>
</control>
<control type="textbox">
<left>14</left>
<top>22</top>
<width>191</width>
<height>152</height>
<font>Bold26</font>
<align>left</align>
<textcolor>ffdadada</textcolor>
<label>$INFO[ListItem.Label]</label>
</control>
</control>
<include>HomePosterItemlayout</include>
<include>HomeWideItemlayout</include>
<include>HomeWideEpisodeItemlayout</include>
<include>HomeSquareItemlayout</include>
<include>HomeSquareInfoItemlayout</include>
</itemlayout>
<focusedlayout height="370" width="2000" condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,1)">
<control type="button">
<include>HiddenControl</include>
<onfocus>SetProperty(MainFocus,$INFO[Container(99).ListItem.Property(defaultID)])</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(2)">SetProperty(FocusRow,1_2)</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3)">SetProperty(FocusRow,2_2)</onfocus>
<onfocus condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(1)">SetProperty(FocusRow,1_3)</onfocus>
<onfocus condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(2)">SetProperty(FocusRow,2_3)</onfocus>
<onfocus condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3)">SetProperty(FocusRow,3_3)</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31159])">SetProperty(ForceViewType,wide,Home)</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31160])">SetProperty(ForceViewType,poster,Home)</onfocus>
<onfocus condition="!StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31159]) + !StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31160])">ClearProperty(ForceViewType,Home)</onfocus>
</control>
<control type="group">
<animation center="142,167" easing="inout" effect="zoom" end="132" start="100" time="220" tween="sine">Focus</animation>
<animation center="142,167" easing="inout" effect="zoom" end="100" start="132" time="220" tween="sine">UnFocus</animation>
<control type="group">
<left>33</left>
<control type="image">
<width>227</width>
<height>334</height>
<texture border="0,14,11,14">home/home_button_nf.png</texture>
</control>
<control type="textbox">
<top>2</top>
<width>254</width>
<height>200</height>
<font>Bold34</font>
<align>left</align>
<textcolor>ffdadada</textcolor>
<label>$INFO[ListItem.Label]</label>
<animation effect="fade" end="0" start="100" time="0">Focus</animation>
<animation condition="true" effect="slide" end="-18,-26" time="0">Conditional</animation>
<animation center="135,201" condition="true" effect="zoom" end="76" start="76" time="0">Conditional</animation>
</control>
<control type="image">
<width>227</width>
<height>334</height>
<texture border="0,14,11,14">home/home_button_fo.png</texture>
<visible>!IsEmpty(Window(Home).Property(WidgetHasFocus))</visible>
<animation effect="fade" end="100" start="0" time="0" condition="!IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="0" start="100" time="0" condition="IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="100" start="0" time="0">Focus</animation>
<animation effect="fade" end="0" start="100" time="0">UnFocus</animation>
</control>
<control type="textbox">
<top>2</top>
<width>254</width>
<height>200</height>
<font>Bold34</font>
<align>left</align>
<textcolor>ff453a18</textcolor>
<label>$INFO[ListItem.Label]</label>
<visible>!IsEmpty(Window(Home).Property(WidgetHasFocus))</visible>
<animation effect="fade" end="100" start="0" time="0" condition="!IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="0" start="100" time="0" condition="IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="100" start="0" time="0">Focus</animation>
<animation effect="fade" end="0" start="100" time="0">UnFocus</animation>
<animation condition="true" effect="slide" end="-18,-26" time="0">Conditional</animation>
<animation center="135,201" condition="true" effect="zoom" end="76" start="76" time="0">Conditional</animation>
</control>
</control>
<include>HomePosterFocusedlayout</include>
<include>HomeWideFocusedlayout</include>
<include>HomeWideEpisodeFocusedlayout</include>
<include>HomeSquareFocusedlayout</include>
<include>HomeSquareInfoFocusedlayout</include>
</control>
</focusedlayout>
<focusedlayout height="370" width="2000" condition="!IntegerGreaterThan(Container($PARAM[ID]0).NumItems,1)">
<control type="group">
<animation center="142,167" condition="true" effect="zoom" end="132" start="100" time="0">Conditional</animation>
<include>HomePosterFocusedlayout</include>
<include>HomeWideFocusedlayout</include>
<include>HomeWideEpisodeFocusedlayout</include>
<include>HomeSquareFocusedlayout</include>
<include>HomeSquareInfoFocusedlayout</include>
</control>
</focusedlayout>
<content>
<include name="$PARAM[content]">
<param name="ID">$PARAM[ID]</param>
</include>
</content>
</control>
</control>
</definition>
</include>
But if I wrap the include in another group control everything is broken and Kodi isn't able to include it:
Code: <!-- Home Widget Param Include -->
<include name="ParamWidgetInclude">
<param name="ID"/>
<param name="widget"/>
<param name="content" default="FtvWidget"/>
<definition>
<control type="group">
<!-- Hidden Lists -->
<include name="Param$PARAM[content]Lists">
<param name="ID">$PARAM[ID]</param>
</include>
<!-- Banner List -->
<control id="$PARAM[ID]9" type="list">
<include>HiddenHomeList</include>
<content limit="1">$INFO[Skin.String($PARAM[ID]0-WidgetAd)]</content>
</control>
<!-- Advert Banner -->
<control type="group">
<left>419</left>
<top>-253</top>
<width>2100</width>
<height>1500</height>
<include>HomeWidgetsAnimation</include>
<include>WindowHomeFadeAnimation</include>
<visible>!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + IntegerGreaterThan(Container($PARAM[ID]0).NumItems,1) + [!IsEmpty(Window(home).Property(preload)) | StringCompare(Container(99).ListItem.Property(ftvWidget),$PARAM[widget])]</visible>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + [Control.HasFocus($PARAM[ID]0) | !Container($PARAM[ID]0).Row(1)]" easing="inout" effect="slide" end="0,-247" time="220" tween="sine">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(2)" easing="inout" effect="slide" end="0,-144" time="220" tween="sine">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3)" easing="inout" effect="slide" end="0,-144" time="220" tween="sine">Conditional</animation>
<animation condition="StringCompare(Container($PARAM[ID]0).NumItems,2) + Control.HasFocus($PARAM[ID]0)" easing="inout" effect="slide" end="0,-180" time="220" tween="sine">Conditional</animation>
<control type="group">
<left>33</left>
<top>383</top>
<width>2100</width>
<height>1500</height>
<control type="image">
<top>0</top>
<left>-48</left>
<centertop>288</centertop>
<width>1616</width>
<height>233</height>
<texture border="66,66,51,51">views/shadow_nf.png</texture>
</control>
<control type="image">
<width>1500</width>
<height>185</height>
<aspectratio scalediffuse="false" aligny="top">scale</aspectratio>
<texture background="true" diffuse="views/highlight_banner_mask.png">$INFO[Container($PARAM[ID]9).ListItem.Art(fanart)]</texture>
</control>
<control type="image">
<width>58</width>
<height>58</height>
<texture>views/OverlayHighlight.png</texture>
</control>
<control type="image">
<top>48</top>
<width>90</width>
<height>90</height>
<texture>views/OverlayHD.png</texture>
<visible>IntegerGreaterThan(ListItem.VideoResolution,719)</visible>
</control>
<control type="image">
<top>55</top>
<left>40</left>
<width>40</width>
<height>26</height>
<colordiffuse>bbffffff</colordiffuse>
<texture>views/HD_icon.png</texture>
<visible>IntegerGreaterThan(Container($PARAM[ID]9).ListItem.VideoResolution,719)</visible>
</control>
<control type="grouplist">
<top>10</top>
<left>40</left>
<aligny>center</aligny>
<width>1500</width>
<height>165</height>
<orientation>horizontal</orientation>
<itemgap>45</itemgap>
<control type="textbox">
<width>250</width>
<height>50</height>
<font>Med24</font>
<scroll>false</scroll>
<textcolor>ffffffff</textcolor>
<shadowcolor>88000000</shadowcolor>
<align>left</align>
<aligny>center</aligny>
<label>$LOCALIZE[31251]</label>
</control>
<control type="image">
<width>535</width>
<height>165</height>
<aspectratio aligny="center" align="center">stretch</aspectratio>
<texture>$INFO[Container($PARAM[ID]9).ListItem.Art(clearlogo)]</texture>
<visible>!IsEmpty(Container($PARAM[ID]9).ListItem.Art(clearlogo))</visible>
</control>
<control type="textbox">
<width>535</width>
<height>165</height>
<font>Med30</font>
<scroll>false</scroll>
<textcolor>ffffffff</textcolor>
<shadowcolor>88000000</shadowcolor>
<align>center</align>
<aligny>center</aligny>
<label>$VAR[$PARAM[ID]0-WidgetAd-Text]$INFO[Container($PARAM[ID]9).ListItem.Label,[B],[/B]]</label>
</control>
</control>
<control type="image">
<width>1500</width>
<height>185</height>
<texture>views/OverlayNF.png</texture>
<visible>Control.HasFocus($PARAM[ID]0)</visible>
<animation easing="inout" effect="fade" end="100" start="0" time="220" tween="sine">VisibleChange</animation>
</control>
</control>
</control>
<!-- Widgets -->
<control type="group">
<animation condition="!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + !Control.HasFocus($PARAM[ID]0) + Container($PARAM[ID]0).Row(1)" easing="inout" effect="slide" start="0,0" end="0,247" time="220" tween="sine">Conditional</animation>
<animation condition="!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + StringCompare(Container($PARAM[ID]0).NumItems,2) + !Control.HasFocus($PARAM[ID]0) + Container($PARAM[ID]0).Row(1)" easing="inout" effect="slide" start="0,0" end="0,247" time="220" tween="sine">Conditional</animation>
<animation condition="!IsEmpty(Container($PARAM[ID]9).ListItem.Label) + StringCompare(Container($PARAM[ID]0).NumItems,2) + !Control.HasFocus($PARAM[ID]0)" easing="inout" effect="slide" end="0,180" time="220" tween="sine">Conditional</animation>
<control id="$PARAM[ID]0" type="fixedlist">
<include>HomeWidgetsAnimation</include>
<include>WindowHomeFadeAnimation</include>
<visible>!IsEmpty(Window(home).Property(preload)) | StringCompare(Container(99).ListItem.Property(ftvWidget),$PARAM[widget])</visible>
<left>419</left>
<top>-253</top>
<width>2100</width>
<height>1500</height>
<onup condition="!Window.IsVisible(1101)">SetProperty(BounceUp,1,Home)</onup>
<onup>noop</onup>
<ondown condition="!Window.IsVisible(1101)">SetProperty(BounceDown,1,Home)</ondown>
<ondown>noop</ondown>
<onleft>99</onleft>
<onright>Select</onright>
<onback>99</onback>
<movement>1</movement>
<focusposition>2</focusposition>
<viewtype label="">list</viewtype>
<orientation>vertical</orientation>
<defaultcontrol>1</defaultcontrol>
<scrolltime easing="inout" tween="sine">300</scrolltime>
<animation condition="StringCompare(Container($PARAM[ID]0).NumItems,1)" effect="slide" end="-304,-114">Conditional</animation>
<animation condition="StringCompare(Container($PARAM[ID]0).NumItems,2)" effect="slide" end="0,-299">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + !Container($PARAM[ID]0).Row(1)" easing="inout" effect="slide" end="0,-114" time="220" tween="sine">Conditional</animation>
<animation condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3) + Control.HasFocus($PARAM[ID]0)" easing="inout" effect="slide" end="0,-212" time="220" tween="sine">Conditional</animation>
<itemlayout height="370" width="2000">
<control type="group">
<left>33</left>
<control type="image">
<width>227</width>
<height>334</height>
<texture border="0,14,11,14">home/home_button_nf.png</texture>
</control>
<control type="textbox">
<left>14</left>
<top>22</top>
<width>191</width>
<height>152</height>
<font>Bold26</font>
<align>left</align>
<textcolor>ffdadada</textcolor>
<label>$INFO[ListItem.Label]</label>
</control>
</control>
<include>HomePosterItemlayout</include>
<include>HomeWideItemlayout</include>
<include>HomeWideEpisodeItemlayout</include>
<include>HomeSquareItemlayout</include>
<include>HomeSquareInfoItemlayout</include>
</itemlayout>
<focusedlayout height="370" width="2000" condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,1)">
<control type="button">
<include>HiddenControl</include>
<onfocus>SetProperty(MainFocus,$INFO[Container(99).ListItem.Property(defaultID)])</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(2)">SetProperty(FocusRow,1_2)</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3)">SetProperty(FocusRow,2_2)</onfocus>
<onfocus condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(1)">SetProperty(FocusRow,1_3)</onfocus>
<onfocus condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(2)">SetProperty(FocusRow,2_3)</onfocus>
<onfocus condition="IntegerGreaterThan(Container($PARAM[ID]0).NumItems,2) + Container($PARAM[ID]0).Row(3)">SetProperty(FocusRow,3_3)</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31159])">SetProperty(ForceViewType,wide,Home)</onfocus>
<onfocus condition="StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31160])">SetProperty(ForceViewType,poster,Home)</onfocus>
<onfocus condition="!StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31159]) + !StringCompare(Container($PARAM[ID]0).ListItem.Property(WidgetStyle),$LOCALIZE[31160])">ClearProperty(ForceViewType,Home)</onfocus>
</control>
<control type="group">
<animation center="142,167" easing="inout" effect="zoom" end="132" start="100" time="220" tween="sine">Focus</animation>
<animation center="142,167" easing="inout" effect="zoom" end="100" start="132" time="220" tween="sine">UnFocus</animation>
<control type="group">
<left>33</left>
<control type="image">
<width>227</width>
<height>334</height>
<texture border="0,14,11,14">home/home_button_nf.png</texture>
</control>
<control type="textbox">
<top>2</top>
<width>254</width>
<height>200</height>
<font>Bold34</font>
<align>left</align>
<textcolor>ffdadada</textcolor>
<label>$INFO[ListItem.Label]</label>
<animation effect="fade" end="0" start="100" time="0">Focus</animation>
<animation condition="true" effect="slide" end="-18,-26" time="0">Conditional</animation>
<animation center="135,201" condition="true" effect="zoom" end="76" start="76" time="0">Conditional</animation>
</control>
<control type="image">
<width>227</width>
<height>334</height>
<texture border="0,14,11,14">home/home_button_fo.png</texture>
<visible>!IsEmpty(Window(Home).Property(WidgetHasFocus))</visible>
<animation effect="fade" end="100" start="0" time="0" condition="!IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="0" start="100" time="0" condition="IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="100" start="0" time="0">Focus</animation>
<animation effect="fade" end="0" start="100" time="0">UnFocus</animation>
</control>
<control type="textbox">
<top>2</top>
<width>254</width>
<height>200</height>
<font>Bold34</font>
<align>left</align>
<textcolor>ff453a18</textcolor>
<label>$INFO[ListItem.Label]</label>
<visible>!IsEmpty(Window(Home).Property(WidgetHasFocus))</visible>
<animation effect="fade" end="100" start="0" time="0" condition="!IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="0" start="100" time="0" condition="IsEmpty(Window(Home).Property(WidgetHasFocus))">Conditional</animation>
<animation effect="fade" end="100" start="0" time="0">Focus</animation>
<animation effect="fade" end="0" start="100" time="0">UnFocus</animation>
<animation condition="true" effect="slide" end="-18,-26" time="0">Conditional</animation>
<animation center="135,201" condition="true" effect="zoom" end="76" start="76" time="0">Conditional</animation>
</control>
</control>
<include>HomePosterFocusedlayout</include>
<include>HomeWideFocusedlayout</include>
<include>HomeWideEpisodeFocusedlayout</include>
<include>HomeSquareFocusedlayout</include>
<include>HomeSquareInfoFocusedlayout</include>
</control>
</focusedlayout>
<focusedlayout height="370" width="2000" condition="!IntegerGreaterThan(Container($PARAM[ID]0).NumItems,1)">
<control type="group">
<animation center="142,167" condition="true" effect="zoom" end="132" start="100" time="0">Conditional</animation>
<include>HomePosterFocusedlayout</include>
<include>HomeWideFocusedlayout</include>
<include>HomeWideEpisodeFocusedlayout</include>
<include>HomeSquareFocusedlayout</include>
<include>HomeSquareInfoFocusedlayout</include>
</control>
</focusedlayout>
<content>
<include name="$PARAM[content]">
<param name="ID">$PARAM[ID]</param>
</include>
</content>
</control>
</control>
</control>
</definition>
</include>
Log:
http://pastebin.com/bCwejhmD
Edit:
This also happens if I add some exluded lines with <!-- ... ---> in some cases Oo
Edit2:
If I remove the excluded definition lines of my example from above, it works again. So it has something to do with the <!-- ... -->
RE: $PARAM issue with complex include - jurialmunkey - 2016-02-10
I've noticed comment tags messing up code quite a bit also.
You could always use the description="xxxx" tag if the comments are messing with things
- i.e. <control type="list" description="foobar">
RE: $PARAM issue with complex include - sualfred - 2016-02-12
Yep, but it's still a bug
Noticed it in some more cases, but only for the $PARAM function. Removing <!-- %s--> always solves it. I can live with it.
|