2010-12-18, 09:08
Ok, I was playing with a new song viewtype, I coded it up, everything was perfectly fine, then I started moving back and forth from other albums, artists, and then back to songs. Suddenly the view refuses to work and I'm going crazy trying to figure out why.
here is the code for the view:
here is the code for the view:
PHP Code:
<includes>
<include name="Songs">
<control type="group">
<include>MusicInfoOpenClose</include>
<include>ViewWindowOC</include>
<include>ContextFade</include>
<include>Keyboard</include>
<control type="list" id="602">
<viewtype label="Songs">list</viewtype>
<posx>585</posx>
<posy>125</posy>
<width>900</width>
<height>453</height>
<scrolltime>200</scrolltime>
<orientation>vertical</orientation>
<focusposition>2</focusposition>
<onup>602</onup>
<ondown>602</ondown>
<onleft>300</onleft>
<onright>603</onright>
<pagecontrol>603</pagecontrol>
<visible>Container.Content(songs)</visible>
<itemlayout width="633" height="56">
<control type="label">
<!--Track # Greater than 10-->
<posy>0</posy>
<posx>0</posx>
<width>652</width>
<height>40</height>
<textcolor>6bffffff</textcolor>
<selectedcolor>ff7acafe</selectedcolor>
<font>tvtitle</font>
<align>left</align>
<label>$INFO[ListItem.TrackNumber]</label>
<visible>IntegerGreaterThan(ListItem.TrackNumber,9) + !substring(Container.Listitem.Label,..,left)</visible>
</control>
<control type="label">
<!--Track # Less than 10-->
<posy>0</posy>
<posx>0</posx>
<width>652</width>
<height>40</height>
<textcolor>6bffffff</textcolor>
<selectedcolor>ff7acafe</selectedcolor>
<font>tvtitle</font>
<align>left</align>
<label>$INFO[ListItem.TrackNumber,0]</label>
<visible>!IntegerGreaterThan(ListItem.TrackNumber,9) + !substring(Container.Listitem.Label,..,left)</visible>
</control>
<control type="label">
<posx>50</posx>
<posy>0</posy>
<width>633</width>
<height>40</height>
<align>left</align>
<label>$INFO[ListItem.Title]</label>
<font>tvtitle</font>
<textcolor>6bffffff</textcolor>
<selectedcolor>taskbar</selectedcolor>
</control>
</itemlayout>
<focusedlayout width="633" height="56">
<control type="image">
<posx>0</posx>
<posy>0</posy>
<width>640</width>
<height>58</height>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture border="12">whitepanel2.png</texture>
<animation type="conditional" condition="true" reversible="false">
<effect type="fade" start="10" end="10" time="0" />
<effect type="slide" start="0,0" end="-18,-10" time="0" />
</animation>
</control>
<control type="label">
<!--Track # Greater than 10-->
<posy>0</posy>
<posx>0</posx>
<width>652</width>
<height>40</height>
<textcolor>taskbar</textcolor>
<selectedcolor>ff7acafe</selectedcolor>
<font>tvtitle</font>
<align>left</align>
<label>$INFO[ListItem.TrackNumber]</label>
<visible>IntegerGreaterThan(ListItem.TrackNumber,9) + !substring(Container.Listitem.Label,..,left)</visible>
</control>
<control type="label">
<!--Track # Less than 10-->
<posy>0</posy>
<posx>0</posx>
<width>652</width>
<height>40</height>
<textcolor>taskbar</textcolor>
<selectedcolor>ff7acafe</selectedcolor>
<font>tvtitle</font>
<align>left</align>
<label>$INFO[ListItem.TrackNumber,0]</label>
<visible>!IntegerGreaterThan(ListItem.TrackNumber,9) + !substring(Container.Listitem.Label,..,left)</visible>
</control>
<control type="label">
<posx>50</posx>
<posy>0</posy>
<width>633</width>
<height>40</height>
<align>left</align>
<label>$INFO[ListItem.Title]</label>
<font>tvtitle</font>
<textcolor>taskbar</textcolor>
<selectedcolor>taskbar</selectedcolor>
</control>
</focusedlayout>
</control>
<control type="group">
<visible>Control.IsVisible(602)</visible>
<control type="image">
<posx>118</posx>
<posy>118</posy>
<width>446</width>
<height>446</height>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture border="12">whitepanel2.png</texture>
</control>
<control type="image">
<posx>130</posx>
<posy>130</posy>
<width>422</width>
<height>422</height>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture>$INFO[ListItem.Icon]</texture>
</control>
</control>
<control type="group">
<posy>80</posy>
<visible>Control.IsVisible(602)</visible>
<control type="grouplist">
<posx>125</posx>
<posy>488</posy>
<width>1280</width>
<height>40</height>
<align>left</align>
<orientation>horizontal</orientation>
<control type="label">
<posx>0</posx>
<width min="29" max="1050">auto</width>
<height>38</height>
<font>movietitle6</font>
<textcolor>E0F0F0F0</textcolor>
<scroll>false</scroll>
<label>[UPPERCASE]$INFO[ListItem.Album][/UPPERCASE]</label>
</control>
</control>
<control type="label">
<posx>125</posx>
<posy>518</posy>
<width>914</width>
<height>35</height>
<font>aired</font>
<textcolor>movietitleb2</textcolor>
<scroll>true</scroll>
<align>left</align>
<aligny>center</aligny>
<label>[UPPERCASE]$INFO[ListItem.Artist,, • ]$INFO[ListItem.Year][/UPPERCASE]</label>
<visible>Container.Content(Songs)</visible>
</control>
</control>
<!-- Scroll Bar -->
<control type="scrollbar" id="603">
<posx>1240</posx>
<posy>130</posy>
<width>5</width>
<height>450</height>
<visible allowhiddenfocus="true">Control.IsVisible(602) + Control.HasFocus(603)</visible>
<texturesliderbackground>white2.png</texturesliderbackground>
<textureslidernibfocus>white3v.png</textureslidernibfocus>
<onleft>602</onleft>
<onright>-</onright>
<showonepage>false</showonepage>
<orientation>vertical</orientation>
<animation effect="fade" start="0" end="100" time="400" condition="Control.HasFocus(603)">Conditional</animation>
</control>
</control>
</include>
</includes>