selecting no thumb fails to show fallback texture
#1
So Ive got my DefaultAlbumCover.png and also a noalbum.png for when the Default doesn't work for some reason. If the album art was never present this code works:

PHP Code:
                    <control type="image">
                        <
posx>130</posx>
                        <
posy>130</posy>
                        <
width>422</width>
                        <
height>422</height>
                        <
aspectratio scalediffuse="false">scale</aspectratio>
                        <
texture>$INFO[ListItem.Thumb]</texture>
                    </
control>
                    <
control type="image">
                        <
posx>130</posx>
                        <
posy>130</posy>
                        <
width>422</width>
                        <
height>422</height>
                        <
texture>noalbum.png</texture>
                        <
visible>IsEmpty(ListItem.Thumb)</visible>
                    </
control

Yet, if album art has EVER been scraped, cached or whatever, and you then select No Thumb, the previous method of showing the noalbum.png doesn't show. It only shows blank.

Is there a way to get the fallback to show after selecting no thumb?
Reply
#2
I'm pretty tired, went paintball and for drinks yesterday, so body and mind hurts, and im a noob but that should be:


PHP Code:
                    <control type="image">
                        <
posx>130</posx>
                        <
posy>130</posy>
                        <
width>422</width>
                        <
height>422</height>
                        <
aspectratio scalediffuse="false">scale</aspectratio>
                        <
texture>$INFO[MusicPlayer.Cover]</texture>
                    </
control

No need for the second control. And in case you still want to be extra safe...

PHP Code:
                    <control type="image">
                        <
posx>130</posx>
                        <
posy>130</posy>
                        <
width>422</width>
                        <
height>422</height>
                        <
aspectratio scalediffuse="false">scale</aspectratio>
                        <
texture fallback="noalbum.png">$INFO[MusicPlayer.Cover]</texture>
                    </
control

Sorry if I'm getting all wrong, my brain is exploding.
Reply

Logout Mark Read Team Forum Stats Members Help
selecting no thumb fails to show fallback texture0