2019-05-13, 21:16
I use <nested /> elements quite a bit in my skin code. However, I have one include where the <nested /> tag wont work and I absolutely cannot figure out why it doesn't work. I'm completely stumped on this one:
PHP Code:
<include name="Home_Fixed_Menu">
<param name="visible" default="!Control.HasFocus(302) | !Skin.HasSetting(HomeMultiHorizontal) | !Skin.HasSetting(HomeMulti)" />
<param name="icon" default="special://skin/extras/icons/home.png" />
<param name="id" default="301" />
<param name="font" default="font_topbar" />
<param name="content" default="skinshortcuts-mainmenu" />
<definition>
<control type="group">
<top>55</top>
<left>view_pad</left>
<include>Animation_Home_MenuFlip</include>
<visible allowhiddenfocus="true">$PARAM[visible]</visible>
<control type="group">
<height>70</height>
<width>1200</width>
<control type="image">
<left>-18</left>
<height>70</height>
<width>70</width>
<aspectratio>keep</aspectratio>
<texture colordiffuse="main_fg_30">$PARAM[icon]</texture>
</control>
<control type="image">
<right>-134</right>
<visible>Container($PARAM[id]).HasNext | Container($PARAM[id]).HasPrevious</visible>
<centertop>55%</centertop>
<width>24</width>
<height>24</height>
<texture flipx="true" colordiffuse="main_fg_30">buttons/spin-left.png</texture>
</control>
<control type="list" id="$PARAM[id]">
<nested />
<top>0</top>
<left>70</left>
<right>-70</right>
<orientation>horizontal</orientation>
<visible>Window.IsVisible(Home) + !$EXP[Exp_InfoVisible]</visible>
<itemlayout width="200" height="70">
<control type="label">
<left>10</left>
<right>10</right>
<label>$INFO[ListItem.Label]</label>
<align>center</align>
<height>70</height>
<font>$PARAM[font]_small</font>
<textcolor>main_fg_30</textcolor>
</control>
</itemlayout>
<focusedlayout width="200" height="70">
<control type="label">
<left>10</left>
<right>10</right>
<label>$INFO[ListItem.Label]</label>
<align>center</align>
<height>70</height>
<font>$PARAM[font]</font>
<textcolor>main_fg_100</textcolor>
<visible>Control.HasFocus($PARAM[id])</visible>
</control>
<control type="label">
<left>10</left>
<right>10</right>
<label>$INFO[ListItem.Label]</label>
<align>center</align>
<height>70</height>
<font>$PARAM[font]</font>
<textcolor>main_fg_30</textcolor>
<visible>!Control.HasFocus($PARAM[id])</visible>
</control>
</focusedlayout>
<content><include>$PARAM[content]</include></content>
</control>
</control>
</control>
</definition>
</include>