Seemingly Randomly a viewtype stopped working
#1
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:

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
Reply
#2
and here is my mymusicnav.xml

PHP Code:
<window id="502">
<
defaultcontrol always="true">50</defaultcontrol>
<
allowoverlay>yes</allowoverlay>
 <
views>50,523,508,600,526,56,59,515,579,595,602</views
<
controls>

     <
control type="image">
        <
posx>0</posx>
        <
posy>0</posy>
        <
width>1280</width>
        <
height>720</height>
        <
aspectratio>stretch</aspectratio>
        <
texture>bg2.png</texture>
        <
colordiffuse>FFCCCCCF</colordiffuse>
    </
control>
    <
control type="image">
        <
posx>0</posx>
        <
posy>0</posy>
        <
width>1280</width>
        <
height>720</height>
        <
aspectratio>stretch</aspectratio>
        <
texture>black.png</texture>
        <
colordiffuse>50FFFFFF</colordiffuse>
    </
control>

    <
control type="image">
        <
posx>0</posx>
        <
posy>0</posy>
        <
width>1280</width>
        <
height>720</height>
        <
texture background="true">$INFO[ListItem.Property(Fanart_Image)]</texture>
        <
fadetime>300</fadetime>
        <
aspectratio>stretch</aspectratio>
        <
visible>[Container.Content(Artists) + [Skin.HasSetting(artists_fanart_light) | Skin.HasSetting(artists_fanart_med) | Skin.HasSetting(artists_fanart_heavy)]] | [Container.Content(Albums) + [Skin.HasSetting(albums_fanart_light) | Skin.HasSetting(albums_fanart_med) | Skin.HasSetting(albums_fanart_heavy)]] | [Container.Content(Songs) + [Skin.HasSetting(songs_fanart_light) | Skin.HasSetting(songs_fanart_med) | Skin.HasSetting(songs_fanart_heavy)]]</visible>
        <
animation effect="fade" start="100" end="6" condition="Container.Content(Artists) + Skin.HasSetting(artists_fanart_light)">Conditional</animation>
        <
animation effect="fade" start="100" end="20" condition="Container.Content(Artists) + Skin.HasSetting(artists_fanart_med)">Conditional</animation>
        <
animation effect="fade" start="100" end="35" condition="Container.Content(Artists) + Skin.HasSetting(artists_fanart_heavy)">Conditional</animation>
        <
animation effect="fade" start="100" end="6" condition="Container.Content(Albums) + Skin.HasSetting(albums_fanart_light)">Conditional</animation>
        <
animation effect="fade" start="100" end="20" condition="Container.Content(Albums) + Skin.HasSetting(albums_fanart_med)">Conditional</animation>
        <
animation effect="fade" start="100" end="35" condition="Container.Content(Albums) + Skin.HasSetting(albums_fanart_heavy)">Conditional</animation>
        <
animation effect="fade" start="100" end="6" condition="Container.Content(Songs) + Skin.HasSetting(songs_fanart_light)">Conditional</animation>
        <
animation effect="fade" start="100" end="20" condition="Container.Content(Songs) + Skin.HasSetting(songs_fanart_med)">Conditional</animation>
        <
animation effect="fade" start="100" end="35" condition="Container.Content(Songs) + Skin.HasSetting(songs_fanart_heavy)">Conditional</animation>
        <include>
ContextFade</include>
        <
animation type="WindowClose" reversible="false">
            <
effect type="fade" start="100" end="0" time="350" delay="0" />
        </
animation>
        <
animation type="WindowOpen" reversible="false">
            <
effect type="fade" start="0" end="100" time="650" delay="450" />
        </
animation>
    </
control>    


<
control type="group">
    <
animation effect="slide" start="0,100" end="0,0" time="500" delay="200" reversable="false">WindowOpen</animation>
    <
animation effect="slide" start="0,0" end="0,100" delay="0" time="600" reversable="false">WindowClose</animation>
    <
control type="image">
        <
posx>0</posx>
        <
posy>654</posy>
        <
width>1280</width>
        <
height>70</height>
        <
aspectratio>stretch</aspectratio>
        <
texture>black.png</texture>
        <
colordiffuse>A0FFFFFF</colordiffuse>
        <
visible>!Control.IsVisible(52) + !Control.IsVisible(53)</visible>
    </
control>
    <
control type="image">
        <
posx>0</posx>
        <
posy>715</posy>
        <
width>1280</width>
        <
height>5</height>
        <
aspectratio>stretch</aspectratio>
        <
texture>zbase.png</texture>
        <
colordiffuse>FFFFFFFF</colordiffuse>
        <
animation effect="slide" start="0,15" end="0,0" time="550" delay="200" reversable="false">WindowOpen</animation>
        <
animation effect="slide" start="0,0" end="0,15" delay="0" time="600" reversable="false">WindowClose</animation>
    </
control>
    <
control type="image">
        <
posx>0</posx>
        <
posy>715</posy>
        <
width>1280</width>
        <
height>5</height>
        <
aspectratio>stretch</aspectratio>
        <
texture flipx="true">zbase.png</texture>
        <
colordiffuse>FFFFFFFF</colordiffuse>
        <
animation effect="fade" start="0" end="100" time="1600" condition="true" pulse="true">true</animation>
        <
animation effect="slide" start="0,15" end="0,0" time="550" delay="200" reversable="false">WindowOpen</animation>
        <
animation effect="slide" start="0,0" end="0,15" delay="0" time="600" reversable="false">WindowClose</animation>
    </
control>
    <
control type="image">
        <
posx>0</posx>
        <
posy>654</posy>
        <
width>1280</width>
        <
height>1</height>
        <
aspectratio>stretch</aspectratio>
        <
texture>white.png</texture>
        <
colordiffuse>20FFFFFF</colordiffuse>
        <
visible>!Control.IsVisible(52) + !Control.IsVisible(53)</visible>
    </
control>
</
control>
        
<include>
DropDownBar</include>    
<include>
Info</include>        
<include>
AlbumWrap</include>
<include>
AlbumWrap2</include>
<include>
Songs</include>
<include>
TVShowMusicDetail</include>
<include>List</include>
<include>
MusicPoster</include>
<include>
Grid</include>
<include>
Icon</include>
<include>
Icon2</include>
<include>
nav</include>
</
controls>
  
</
window
Reply
#3
Define "refuses to work"
Reply
#4
it no longer shows when switching views
Reply
#5
OK, I'm not sure why...but I changed the viewtype name and include name from Songs, to SongWrap....and it works again. Does that make any sense?

I figured it out....I accidently changed the include name on another file to "songs" the conflict killed it
Reply

Logout Mark Read Team Forum Stats Members Help
Seemingly Randomly a viewtype stopped working0