Kodi Community Forum
Solved How to skip empty items in a list - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Solved How to skip empty items in a list (/showthread.php?tid=345520)

Pages: 1 2


RE: How to skip empty items in a list - sualfred - 2019-07-19

Ups, forgot to change this line for Krypton. Try again


RE: How to skip empty items in a list - chrissix666 - 2019-07-19

(2019-07-19, 21:52)sualfred Wrote: Ups, forgot to change this line for Krypton. Try again
nice, install is fine! Now i need to find out how to use the code.
I hope with this option i can also show a textbox label switching with the images like the other previous solutions.


RE: How to skip empty items in a list - sualfred - 2019-07-19

That's all you need (example):

xml:


<control type="list" id="123">
<height>100</height>
<width>100</width>
<autoscroll>true</autoscroll>
<scrolltime>5000</scrolltime>
<itemlayout/>
<focusedlayout height="100" width="100">
<control type="image">
<texture>$INFO[ListItem.Icon]</texture>
</control>
</focusedcontrol>
<content>plugin://script.embuary.helper/?info=getresourceimages&addon=resource.images.actorart&string='$ESCINFO[ListItem.Cast]'</content>
</control>

Or example 2:
xml:


<control type="list" id="123">
<left>3000</left>
<height>1</height>
<width>1</width>
<autoscroll>true</autoscroll>
<scrolltime>5000</scrolltime>
<itemlayout/>
<focusedlayout/>
<content>plugin://script.embuary.helper/?info=getresourceimages&addon=resource.images.actorart&string='$ESCINFO[ListItem.Cast]'</content>
</control>

<!-- Fake multiimage control -->
<control type="image">
<width>300</width>
<height>300</height>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[Container(123).ListItem.Icon]</texture>
</control>




RE: How to skip empty items in a list - chrissix666 - 2019-07-19

(2019-07-19, 22:09)sualfred Wrote: That's all you need (example):

oh maaaaan, it's really working!!!  Cool first time i ever see it's functional as intended!
That's really the last, really the last: Is there any chance to switch also textlabels "synchron" with it?
Countryname, Actressname, Directorname...Huh

EDIT: Thaaaaaaaaanks!!!!!

@manfeed @latts9923 @Captain_Pike its working!!!


RE: How to skip empty items in a list - sualfred - 2019-07-19

Update from github again and use:

ListItem.Label 

or with the example 2 from above:

Container(123).ListItem.Label

Edit:
ListItem.Label = Paul Walker
ListItem.Icon = resource://resource.images.actorart/Paul Walker.png


RE: How to skip empty items in a list - chrissix666 - 2019-07-19

(2019-07-19, 22:23)sualfred Wrote: Update from github again and use:
It's perfect man! It's perfect! Now i can accomplish my artwork projects! Great thanks!
I will test the function extensively and push to it's limits!
I will test everything after the series whether resource and label matching works also there same fine as with cast (director, studio, genre, country....)

Really Great! A lot to do now in the skin!


RE: How to skip empty items in a list - sualfred - 2019-07-19

Just 16 lines of Python code to make you happy. Have fun Wink

@manfeed 

fyi, you can get rid of your skin hacks.

https://github.com/sualfred/script.embuary.helper/wiki/Widgets:-Special-content#get-resource-addon-images-by-string


RE: How to skip empty items in a list - chrissix666 - 2019-07-19

(2019-07-19, 22:40)sualfred Wrote: fyi, you can get rid of your skin hacks.
FYI, the third solution described here "skin hack" is crashing every textures/images on all my systems and their skins.
But now a much elegant solution is here  Smile
Will test out a lot and report when i mention something!


RE: How to skip empty items in a list - chrissix666 - 2019-07-20

oh man, it's also working with standard String.IsEmpty in visible tags, i can use fallback stuff - nice!
only workaround to find how to animate label textbox change.


RE: How to skip empty items in a list - manfeed - 2019-07-27

(2019-07-19, 22:40)sualfred Wrote: Just 16 lines of Python code to make you happy. Have fun Wink

@manfeed 

fyi, you can get rid of your skin hacks.

https://github.com/sualfred/script.embuary.helper/wiki/Widgets:-Special-content#get-resource-addon-images-by-string
Thanks! I'll try it, since it seems a much better option... Nod

Thanks also for all the new options in Embuary Helper... much appreciated!