2019-08-11, 17:23
(2019-08-11, 01:39)latts9923 Wrote: @chrissix@latts9923
Yeah, I'll add a button to toggle between the three in the next update.
Have briefly thought about it and do not know if this is possible...
But we always have to assume that not all users have all supported addons installed. Same with Actress Addon.
Maybe it would be possible:
If Actress installed toggle between 3 states -> Characterart, Actress, Off
If Actress not installed toggle between 2 states -> Characterart, Off
Cause if Actress not installed and they do it toggle it's doing nothing.
____
Maybe we should also think about it how Characterart working atm to new system. The folder system is really legacy and was also my first implementation attempt.
ArtworkBeef has implemented Characterart for Movies with @rschiks KyraDB API. But now they are called directly as a own artwork type and got directly read into the Kodi DB.
In my Skin Mod for testing purpose and i also started with the folder system when the Characterart for Movies Project started, it's supporting both and i can toggle old and new system:
OLD (Skin internal only):
Code:
<control type="multiimage">
<left>1100</left>
<top>313</top>
<height>512</height>
<width>512</width>
<timeperimage>6000</timeperimage>
<randomize>true</randomize>
<fadetime>FanartCrossFadeTime</fadetime>
<aspectratio aligny="bottom">keep</aspectratio>
<imagepath background="true">$INFO[ListItem.Path,,extracharacterart/]</imagepath>
<animation type="Conditional" reversible="true" condition="Control.HasFocus(9915)">
<effect type="slide" start="0,0" end="-150,0" time="300" tween="cubic" easing="out" />
<effect type="fade" start="100" end="0" time="200" />
</animation>
<visible>Container.Content(movies) + String.IsEqual(Skin.String(characterart_toggle),Folder) + !String.IsEqual(Skin.string(characterart_toggle),Off)</visible>
</control>
NEW (with the help of Artwork Helper):
Code:
<control type="multiimage">
<left>1100</left>
<top>313</top>
<height>512</height>
<width>512</width>
<timeperimage>6000</timeperimage>
<randomize>true</randomize>
<fadetime>FanartCrossFadeTime</fadetime>
<aspectratio aligny="bottom">keep</aspectratio>
<imagepath background="true">plugin://script.artwork.helper/multiimage/listitem/?refresh=$INFO[ListItem.DBID]&&arttype=characterart</imagepath>
<animation type="Conditional" reversible="true" condition="Control.HasFocus(9915)">
<effect type="slide" start="0,0" end="-150,0" time="300" tween="cubic" easing="out" />
<effect type="fade" start="100" end="0" time="200" />
</animation>
<visible>Container.Content(movies) + String.IsEqual(Skin.String(characterart_toggle),Artworkbeef) + !String.IsEqual(Skin.string(characterart_toggle),Off)</visible>
</control>
And in IncludesTopMenu.xml a toggle button: Characterart ArtworkBeef System, Characterart Folder System, Off
____
Of course on the newest implementation i've implemented an additional toggle state with Actress.