Hi @
sualfred
EDIT:
may not be neccesary anymore , found my fault.
I overread and therefore ignored the shipped list(id=1) tags in script-embuary-image.xml
xml:
<scrolltime>0</scrolltime>
<itemlayout/>
Sorry for confuse someone...
Origional Post:
Hi got a big request regarding the handling for Image SlideShow
I like to have it up to the skinner, to how the slide supports.
-
image size, scrollbar ,
background handling, use different slide animations
If i am right the script should be able to can get rid of the slideshow workaraound and the script-embuary-image.xml.
So its maybe going to be 'smaller' that way.
I'am pretty unfamiliar with python.
So i just replace for testing purpose ,because i couldnt use an override action defined via skin xml
and wasnt able to get rid of that of a predefined <onclick> action in another way
python:
elif next_call == 'image':
FullScreenImage(controlId)
with
python:
elif next_call == 'image':
#untested and just if strictly needed to force onlick actions via script
# but best will be an an onclick action choosen by the skin not by script xbmc.executebuiltin('SetProperty(ThumbId,$INFO[System.CurrentControlId],home)')
xbmc.executebuiltin('Control.SetFocus(9992)')
,but i think the pre defined onfocus action by the script should be completely removed, as it will be easier to focus and define button (include) for fanart and/ or poster inside the main xmls
(script-embuary-person.xml , script-embuary-video.xml)
I can sure make an pr for the skin file of the script.
but for python files ....well i shouldnt really touch them .... .
- $INFO[Window(home).Property(ThumbId)],if an onclick action is needed script side ? , to devide between fanart(10055) and poster (10059) thumbs ids
- but i would prefer using an includefor 2 buttons using id params via skin instead using propertys
xml:
<!-- slideshow imitate image fanart ctrl 10055, -->
<control type="group">
<visible>Control.HasFocus(9992)</visible>
<animation effect="fade" start="0" end="100" time="350" tween="cubic" easing="inout">Visible</animation>
<animation effect="fade" start="0" end="100" time="350" tween="cubic" easing="inout">WindowOpen</animation>
<animation effect="fade" end="0" start="100" time="150">Hidden</animation>
<animation effect="fade" end="0" start="100" time="150">WindowClose</animation>
<control type="button" id="9992">
<visible allowhiddenfocus="true">false</visible>
<width>1</width>
<height>1</height>
<texturefocus />
<texturenofocus />
<onleft>Control.Move($INFO[Window(home).Property(ThumbId)],-1)</onleft>
<onright>Control.Move($INFO[Window(home).Property(ThumbId)],1)</onright>
<onup>Control.Move($INFO[Window(home).Property(ThumbId)],1)</onup>
<ondown>Control.Move($INFO[Window(home).Property(ThumbId)],-1)</ondown>
<onback>SetFocus($INFO[Window(home).Property(ThumbId)])</onback> <!-- currently also closes window -->
<oninfo>$INFO[Window(home).Property(ThumbId)]</oninfo>
<onclick>SetFocus($INFO[Window(home).Property(ThumbId)])</onclick>
</control>
<control type="image">
<texture colordiffuse="22000000">colors/white.png</texture>
</control>
<control type="group">
<animation effect="slide" start="0" end="-1920" condition="!Container($INFO[Window(home).Property(ThumbId)]).OnNext" reversible="false" time="350" tween="quadratic">Conditional</animation>
<animation effect="slide" start="0" end="1920" condition="!Container($INFO[Window(home).Property(ThumbId)]).OnPrevious" reversible="false" time="350" tween="quadratic">Conditional</animation>
<control type="image">
<centerleft>50%</centerleft>
<centertop>50%</centertop>
<width>1920</width>
<height>1080</height>
<left>-1920</left>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[Container($INFO[Window(home).Property(ThumbId)]).ListItem(-1).Art(thumb)]</texture>
</control>
<control type="image">
<centerleft>50%</centerleft>
<centertop>50%</centertop>
<width>1920</width>
<height>1080</height>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[Container($INFO[Window(home).Property(ThumbId)]).ListItem.Art(thumb)]</texture>
</control>
<control type="image">
<centerleft>50%</centerleft>
<centertop>50%</centertop>
<width>1920</width>
<height>1080</height>
<left>1920</left>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[Container($INFO[Window(home).Property(ThumbId)]).ListItem(1).Art(thumb)]</texture>
</control>
</control>
</control>
What i mean --
Video Example