v16 Problem with wraplist
#1
Hi,

1. I've got wraplist for album.
PHP Code:
<control type="wraplist" id="880004">
                    <
viewtype label="icon">List Info</viewtype>
                    <
left>30</left>
                    <
top>130</top>
                    <
width>510</width>
                    <
height>90</height>
                    <
orientation>horizontal</orientation>
                    <
scrolltime tween="cubic" easing="inout">6000</scrolltime>
                    <
preloaditems>6</preloaditems>
                    <
focusposition>6</focusposition>
                    <
autoscroll>true</autoscroll>
                    <
viewtype>false</viewtype>
                    <
itemlayout height="170" width="85">
                        <
control type="image">
                            <
left>0</left>
                            <
top>5</top>
                            <
width>80</width>
                            <
height>80</height>
                            <
aligny>center</aligny>
                            <
align>center</align>
                            <
aspectratio>scale</aspectratio>
                            <include>
Animation_Fade</include>
                            <
texture fallback="defaultaudiocover.png" diffuse="thumb_shelf_diffuse.png" background="true">$INFO[ListItem.Icon]</texture>
                            <
animation effect="fade" end="50" condition="true">Conditional</animation>
                        </
control>
                    </
itemlayout>
                    (...)
               </
control



2. Wraplist is filled with name album and cover
PHP Code:
<content>
            <
item id="1">
                <
icon>$INFO[Window(Visualisation).Property(ArtistSlideshow.1.AlbumThumb)]</icon>
                <
label>$INFO[Window(Visualisation).Property(ArtistSlideshow.1.AlbumName)]</label>
                <
onclick>noop</onclick>
                <
visible>!IsEmpty(Window(Visualisation).Property(ArtistSlideshow.1.AlbumThumb))</visible>
            </
item>
(...)
</
content

3. In position where there is no cover (only name album) visibility is set to false.
PHP Code:
<visible>!IsEmpty(Window(Visualisation).Property(ArtistSlideshow.1.AlbumThumb))</visible

4. When wraplist is displayed, in visualisation where visibility is set to false I've got reserve cover with fallback="defaultaudiocover.png"
Image
When I delete fallback="defaultaudiocover.png" from
PHP Code:
<texture fallback="defaultaudiocover.png" diffuse="thumb_shelf_diffuse.png" background="true">$INFO[ListItem.Icon]</texture
for code
PHP Code:
<texture diffuse="thumb_shelf_diffuse.png" background="true">$INFO[ListItem.Icon]</texture
it displaying empty items in list
Image

5. I want to display wraplist without reserve picture(graphic), empty postitions. Everythink is filled by existing graphic (all position in view)
Image

Please help. Maybe someone knows how to do it.

JB
Reply
#2
I think you want to change the visible condition to compare the string Window(Visualisation).Property(ArtistSlideshow.1.AlbumThumb) with defaultaudiocover.png and hide when they match.
Reply
#3
(2016-11-09, 11:35)Hitcher Wrote: I think you want to change the visible condition to compare the string Window(Visualisation).Property(ArtistSlideshow.1.AlbumThumb) with defaultaudiocover.png and hide when they match.

Window(Visualisation).Property(ArtistSlideshow.1.AlbumThumb) and defaultaudiocover.png are always different.
If KODI refresh command XBMC.ReloadSkin () wraplist display correctly (graphics no.3)!
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with wraplist0