2013-11-22, 18:14
Hi i'm again
i want to use a container (panel) to count how many menu items are visible/hidden in the custom settings, so it's a static panel with 6 items see in the code block.
Container.Numitems also gives me 6, although a few items are hidden by the visible condition.
i think it shouldn't be.
i want to use a container (panel) to count how many menu items are visible/hidden in the custom settings, so it's a static panel with 6 items see in the code block.
Container.Numitems also gives me 6, although a few items are hidden by the visible condition.
i think it shouldn't be.
PHP Code:
<control type="panel" id="310" description="to get the number of active menuitems">
<posx>0</posx>
<posy>0</posy>
<width>6</width>
<height>1</height>
<orientation>vertical</orientation>
<itemlayout height="1" width="1">
</itemlayout>
<focusedlayout height="1" width="1">
</focusedlayout>
<content>
<item id="1" description="Movies"><visible>!Skin.HasSetting(MoviesSectionHide)</visible></item>
<item id="2" description="TvShows"><visible>!Skin.HasSetting(TVSectionHide)</visible></item>
<item id="3" description="Music"><visible>!Skin.HasSetting(MusicSectionHide)</visible></item>
<item id="4" description="Pictures"><visible>!Skin.HasSetting(PicturesSectionHide)</visible></item>
<item id="5" description="Addons"><visible>!Skin.HasSetting(AddonsSectionHide)</visible></item>
<item id="6" description="XBMC"><visible>true</visible></item>
</content>
</control>