Solved How to skip empty items in a list
#16
Ups, forgot to change this line for Krypton. Try again
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#17
(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.
Reply
#18
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>

Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#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!!!
Reply
#20
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
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#21
(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!
Reply
#22
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
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#23
(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!
Reply
#24
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.
Reply
#25
(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!
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button)
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
How to skip empty items in a list51