@"chrissix"
Thanks for the open case mod looks great. Rightlist is one of my fav view. I have added the actors icons to show for each movie while in the library. Saves time having to go into dialoginfo for every movie.
Here is some screenshots how it looks. When you press left on the movie list the actor images show bigger version so can scroll though them. Pressing up or down returns back to list.
@
latts9923
Feel free to add this to your mod if it works ok. You may need to check the ids and such so it doesn't collide with anything.
I hope i have included all the needed code haven't tested on your leia mod as i am still on 17.6.
Also maybe you could add a top menu button to enable or disable the actors images be even better
Rightlistview.xml On the fixedlist id=51 can change the Onleft=7000 so it focuses images when pressing left on list
Code:
<!-- #################### CAST Images ############################# -->
<control type="group">
<visible>stringcompare(container.folderpath,special://profile/playlists/video/Movies.xsp) | Control.HasFocus(7000) + ![String.Contains(ListItem.Path,videodb://movies/sets)] + !Container(7000).IsUpdating</visible>
<control type="list" id="7000">
<viewtype label="list">List Info</viewtype>
<animation effect="slide" start="0,100" end="0,0" delay="0" time="1500" tween="cubic" easing="out" condition="!Container(7000).IsUpdating">Conditional</animation>
<left>1110</left>
<top>715</top>
<width>315</width>
<height>168</height>
<onup>51</onup>
<ondown>51</ondown>
<ondown>Control.Move(7000,$INFO[Container(7000).CurrentItem,-])</ondown>
<ondown>Control.Move(7000,1)</ondown>
<ondown>Control.SetFocus(7000,0)</ondown>
<onup>Control.Move(7000,$INFO[Container(7000).CurrentItem,-])</onup>
<onup>Control.Move(7000,1)</onup>
<onup>Control.SetFocus(7000,0)</onup>
<orientation>horizontal</orientation>
<scrolltime>400</scrolltime>
<focusposition>0</focusposition>
<preloaditems>2</preloaditems>
<itemlayout height="95" width="65">
<control type="image">
<left>2</left>
<top>8</top>
<width>57</width>
<height>90</height>
<aligny>center</aligny>
<align>center</align>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture background="true" diffuse="thumb_poster_diffuse.png">$INFO[ListItem.Icon]</texture>
<fadetime>FanartCrossFadeTime</fadetime>
<animation effect="fade" start="100" end="80" time="300" condition="Control.HasFocus(7000) | Control.HasFocus(51) | Control.HasFocus(80) | Control.HasFocus(11111) | Control.HasFocus(6019)">Conditional</animation>
<visible condition="!String.IsEmpty(Container(7000).ListItem.Icon) | ![String.Contains(ListItem.Path,videodb://movies/sets)]">[Control.HasFocus(7000) | !Container(7000).IsUpdating | Control.HasFocus(11111)] + ![Container.OnNext | Container.OnPrevious] + !Container(7000).IsUpdating</visible>
<visible>!Integer.IsLessOrEqual(Container(7000).NumItems,1)</visible>
</control>
</itemlayout>
<focusedlayout height="95" width="65">
<control type="image">
<left>2</left>
<top>8</top>
<width>57</width>
<height>90</height>
<aligny>center</aligny>
<align>center</align>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture background="true" diffuse="thumb_poster_diffuse.png">$INFO[ListItem.Icon]</texture>
<fadetime>FanartCrossFadeTime</fadetime>
<animation effect="fade" start="100" end="80" time="300" condition="Control.HasFocus(7000) | Control.HasFocus(51) | Control.HasFocus(80) | Control.HasFocus(11111) | Control.HasFocus(6019)">Conditional</animation>
<visible condition="!String.IsEmpty(Container(7000).ListItem.Icon) | ![String.Contains(ListItem.Path,videodb://movies/sets)]">[Control.HasFocus(7000) + !Container(7000).IsUpdating] + ![Container.OnNext | Container.OnPrevious] | [Control.HasFocus(51) + !Container(7000).IsUpdating] | [Control.HasFocus(80) + !Container(7000).IsUpdating] | Control.HasFocus(9920) | [!Control.HasFocus(51) + !Container(7000).IsUpdating]</visible>
<visible>!Integer.IsLessOrEqual(Container(7000).NumItems,1)</visible>
</control>
<control type="image">
<left>2</left>
<top>8</top>
<width>57</width>
<height>90</height>
<aligny>center</aligny>
<align>center</align>
<aspectratio scalediffuse="false">scale</aspectratio>
<texture background="true" diffuse="thumb_poster_diffuse.png">$INFO[ListItem.Icon]</texture>
<bordertexture colordiffuse="$INFO[Skin.String(colortexture)]" border="-2">white.png</bordertexture>
<visible condition="!String.IsEmpty(Container(7000).ListItem.Icon) | ![String.Contains(ListItem.Path,videodb://movies/sets)]">[Control.HasFocus(7000) + !Container(7000).IsUpdating] + ![Container.OnNext | Container.OnPrevious]</visible>
<visible>!Integer.IsLessOrEqual(Container(7000).NumItems,1)</visible>
</control>
</focusedlayout>
<content>$VAR[value_widgetscastlist]</content>
<onclick condition="!String.IsEmpty(Container(7000).ListItem.Icon)">RunScript(script.extendedinfo,info=extendedactorinfo,name=$INFO[ListItem.Label])</onclick>
</control>
<!-- arrows beside actors -->
<control type="group">
<visible>![String.Contains(ListItem.Path,videodb://movies/sets)] + !Container(7000).IsUpdating</visible>
<control type="image">
<left>1070</left>
<top>740</top>
<width>20</width>
<height>60</height>
<aligny>center</aligny>
<align>center</align>
<texture flipx="true">arrow_settings.png</texture>
<colordiffuse>20FFFFF0</colordiffuse>
<include>Animation_Fade</include>
<visible>Control.HasFocus(7000)</visible>
</control>
<control type="image">
<left>1440</left>
<top>740</top>
<width>20</width>
<height>60</height>
<aligny>center</aligny>
<align>center</align>
<texture>arrow_settings.png</texture>
<colordiffuse>20FFFFF0</colordiffuse>
<include>Animation_Fade</include>
<visible>Control.HasFocus(7000)</visible>
</control>
</control>
</control>
Dim background when cast focused
Code:
<!-- Background dim when cast focused -->
<control type="image">
<left>0</left>
<top>-105</top>
<width>1920</width>
<height>2500</height>
<texture colordiffuse="B3FFFFFF">hive_back.png</texture>
<visible>Control.HasFocus(7000) + !Container(7000).IsUpdating</visible>
</control>
Actors big image when focused
Code:
<!-- Actor Big Version -->
<control type="group">
<visible>![String.Contains(ListItem.Path,videodb://movies/sets)] + !Container(7000).IsUpdating</visible>
<left>1920</left>
<top>0</top>
<animation effect="slide" start="0,0" end="-1920,0" time="400" tween="cubic" easing="inout" condition="Control.HasFocus(7000)">Conditional</animation>
<animation effect="slide" start="100" end="0" time="400" condition="!Control.HasFocus(7000)">Conditional</animation>
<control type="image">
<left>340</left>
<top>-95</top>
<width>600</width>
<height>930</height>
<align>center</align>
<texture>actor_border.png</texture>
<animation effect="rotate" start="0,0" end="-2.0.0" center="auto" delay="1000" easing="out" tween="back" time="600" condition="Control.HasFocus(7000)">Conditional</animation>
</control>
<control type="image">
<left>379</left>
<top>-48</top>
<width>524</width>
<height>840</height>
<aspectratio>scale</aspectratio>
<texture fallback="DefaultActor.png" background="true">$INFO[Container(7000).ListItem.Icon]</texture>
<fadetime>200</fadetime>
</control>
<control type="image">
<left>379</left>
<top>755</top>
<height>30</height>
<width>523</width>
<texture>darkgrey.png</texture>
<colordiffuse>75000000</colordiffuse>
</control>
<control type="label">
<left>165</left>
<top>749</top>
<width>975</width>
<align>center</align>
<aligny>center</aligny>
<font>Font_plot_small</font>
<label>$INFO[Container(7000).ListItem.Label]</label>
<textcolor>$INFO[Skin.String(colorflags)]</textcolor>
<scroll>true</scroll>
</control>
<control type="image">
<left>340</left>
<top>-95</top>
<width>600</width>
<height>930</height>
<align>center</align>
<texture>actor_border.png</texture>
</control>
</control>
includesvaraibles.xml
Code:
<!-- Manually added actor list -->
<variable name="value_widgetscastlist">
<value condition="Container.Content(movies) + !SubString(ListItem.Path,videodb://movies/sets,left)">plugin://script.skin.helper.service/?action=getcast&movie=$INFO[Container(51).ListItem.DBID]&downloadthumbs=true</value>
<value condition="Container.Content(tvshows)">plugin://script.skin.helper.service/?action=getcast&tvshow=$INFO[Container(51).ListItem.DBID]&downloadthumbs=true</value>
<value condition="SubString(ListItem.Path,videodb://movies/sets,left)">plugin://script.skin.helper.service/?action=getcast&movie=$INFO[Window(0).Property(SkinHelper.MovieSet.0.DBID)]&downloadthumbs=true</value>
</variable>