2009-06-12, 03:29
So I've been playing around with Wir3d's empty skin learning the ropes and I'm having a slight bit of trouble getting the focused item to appear in a wraplist oriented horizontally. The rest of the gray unselected items appear, but the focused item is a blank space. When selected it functions properly and it takes you to where it points to, but it just doesn't visually show up. Any ideas why?
p.s. I migrated from the pal folder to a 720p folder and adjusted skin.xml so that's not the problem
Here's the code:
p.s. I migrated from the pal folder to a 720p folder and adjusted skin.xml so that's not the problem
Here's the code:
Code:
<window id="0">
<defaultcontrol>300</defaultcontrol>
<allowoverlay>yes</allowoverlay>
<controls>
<control type="wraplist" id="300">
<description>Home Menu</description>
<posx>0</posx>
<posy>0</posy>
<height>150</height>
<width>1280</width>
<orientation>horizontal</orientation> <!-- for horizontal view to work width must be set in itemlayout -->
<visible>yes</visible>
<onup>1</onup>
<ondown>1</ondown>
<onleft>1</onleft>
<onright>1</onright>
<focusposition>0</focusposition> <!-- Highlighted Item list position-->
<scrolltime>200</scrolltime>
<!-- Unselected Items -->
<itemlayout height="150" width="150">
<control type="label">
<posx>0</posx>
<info>ListItem.Label</info>
<textcolor>7fffffff</textcolor>
<scroll>false</scroll>
<align>center</align>
</control>
</itemlayout>
<!-- Selected Item -->
<focusedlayout height="150" width="200">
<control type="label">
<posx>0</posx>
<info>ListItem.Label</info>
<textcolor>ffffffff</textcolor>
<align>center</align>
</control>
</focusedlayout>
<!-- Menu Items -->
<content>
<item id="1">
<description>Videos</description>
<label>$LOCALIZE[31000]</label>
<onclick>xbmc.activatewindow(6)</onclick>
</item>
<item id="2">
<description>Music</description>
<label>$LOCALIZE[31001]</label>
<onclick>xbmc.activatewindow(5)</onclick>
</item>
<item id="3">
<description>Pictures</description>
<label>$LOCALIZE[31002]</label>
<onclick>xbmc.activatewindow(2)</onclick>
</item>
<item id="4">
<description>Programs</description>
<label>$LOCALIZE[31003]</label>
<onclick>xbmc.activatewindow(1)</onclick>
</item>
<item id="5">
<description>Favourites</description>
<label>$LOCALIZE[31004]</label>
<onclick>xbmc.activatewindow(favourites)</onclick>
</item>
<item id="8">
<description>Scripts</description>
<label>$LOCALIZE[31005]</label>
<onclick>xbmc.activatewindow(Scripts)</onclick>
</item>
<item id="6">
<description>Weather</description>
<label>$LOCALIZE[31006]</label>
<onclick>xbmc.activatewindow(2600)</onclick>
<visible>System.HasNetwork</visible>
</item>
<item id="7">
<description>Files</description>
<label>$LOCALIZE[31007]</label>
<onclick>xbmc.activatewindow(3)</onclick>
</item>
<item id="9">
<description>Settings</description>
<label>$LOCALIZE[31008]</label>
<onclick>xbmc.activatewindow(settings)</onclick>
</item>
<item id="10">
<description>Refresh</description>
<label>$LOCALIZE[31009]</label>
<onclick>XBMC.ReloadSkin()</onclick>
</item>
</content>
</control>
</controls>
</window>