Skip to content

Commit

Permalink
[Feature] support for artistslideshow add-on
Browse files Browse the repository at this point in the history
  • Loading branch information
da-anda committed Jan 22, 2017
1 parent 823afdb commit ac07c86
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
4 changes: 4 additions & 0 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -699,3 +699,7 @@ msgctxt "#31163"
msgid "Show Fanart background"
msgstr ""

#: /xml/SkinSettings.xml
msgctxt "#31164"
msgid "Animate background slideshows"
msgstr ""
22 changes: 17 additions & 5 deletions xml/MusicVisualisation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,37 @@
<window>
<defaultcontrol></defaultcontrol>
<backgroundcolor>background</backgroundcolor>
<onload condition="System.HasAddon(script.artistslideshow)">RunScript(script.artistslideshow)</onload>
<controls>
<control type="visualisation">
<include>FullScreenDimensions</include>
<visible>Player.HasAudio</visible>
</control>
<control type="image">
<left>0</left>
<top>0</top>
<width>100%</width>
<height>100%</height>
<depth>DepthBackground</depth>
<include>FullScreenDimensions</include>
<aspectratio>scale</aspectratio>
<fadetime>400</fadetime>
<animation effect="fade" start="0" end="100" time="400">WindowOpen</animation>
<animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
<texture background="true" colordiffuse="88FFFFFF">$INFO[Player.Art(fanart)]</texture>
<visible>!Skin.HasSetting(hide_background_fanart)</visible>
</control>
<control type="multiimage">
<depth>DepthBackground</depth>
<include>FullScreenDimensions</include>
<aspectratio>scale</aspectratio>
<timeperimage>10000</timeperimage>
<randomize>true</randomize>
<fadetime>600</fadetime>
<loop>yes</loop>
<imagepath background="true">$INFO[Window(Visualisation).Property(ArtistSlideshow)]</imagepath>
<visible>System.HasAddon(script.artistslideshow)</visible>
<animation effect="zoom" start="110" end="130" center="auto" time="10000" tween="sine" easing="inout" pulse="true" condition="Skin.HasSetting(AnimateSlideshow)">Conditional</animation>
<animation effect="slide" start="-30,-30" end="30,30" time="6000" tween="sine" easing="inout" pulse="true" condition="Skin.HasSetting(AnimateSlideshow)">Conditional</animation>
</control>
<control type="group">
<animation effect="fade" start="100" end="30" time="0" condition="!String.IsEmpty(Player.Art(fanart)) | Visualisation.Enabled">Conditional</animation>
<animation effect="fade" start="100" end="30" time="0" condition="!String.IsEmpty(Player.Art(fanart)) | Visualisation.Enabled | System.HasAddon(script.artistslideshow)">Conditional</animation>
<include>ColoredBackgroundImages</include>
</control>
<control type="group">
Expand Down
6 changes: 6 additions & 0 deletions xml/SkinSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,12 @@
<onclick>Skin.ToggleSetting(no_fanart)</onclick>
<selected>!Skin.HasSetting(no_fanart)</selected>
</control>
<control type="radiobutton" id="606">
<label>$LOCALIZE[31164]</label>
<include>DefaultSettingButton</include>
<onclick>Skin.ToggleSetting(AnimateSlideshow)</onclick>
<selected>Skin.HasSetting(AnimateSlideshow)</selected>
</control>
<control type="button" id="607">
<label>$LOCALIZE[31156]</label>
<label2>$VAR[BackgroundOverlayTypeVar]</label2>
Expand Down

0 comments on commit ac07c86

Please sign in to comment.