Kodi Community Forum

Full Version: How to skip empty items in a list
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Ups, forgot to change this line for Krypton. Try again
(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.
That's all you need (example):



<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:


<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>

(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!!!
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
(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!
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.embua...-by-string
(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!
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.
(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.embua...-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!
Pages: 1 2