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 24, 2017
1 parent 823afdb commit 2000283
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 11 deletions.
6 changes: 6 additions & 0 deletions language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -694,8 +694,14 @@ msgctxt "#31162"
msgid "Play your personal games or download one of the many game add-ons from the official repository."
msgstr ""

#. Label of a setting
#: /xml/Custom_1105_MusicOSDSettings.xml
msgctxt "#31163"
msgid "Show Fanart background"
msgstr ""

#. Label of a setting
#: /xml/SkinSettings.xml
msgctxt "#31164"
msgid "Animate background"
msgstr ""
6 changes: 6 additions & 0 deletions xml/Custom_1105_MusicOSDSettings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,12 @@
<onclick>Skin.ToggleSetting(hide_background_fanart)</onclick>
<selected>!Skin.HasSetting(hide_background_fanart)</selected>
</control>
<control type="radiobutton" id="606">
<label>$LOCALIZE[31164]</label>
<include>DialogSettingButton</include>
<onclick>Skin.ToggleSetting(animate_background_fanart)</onclick>
<selected>Skin.HasSetting(animate_background_fanart)</selected>
</control>
<control type="button" id="5002">
<width>600</width>
<include>DialogSettingButton</include>
Expand Down
34 changes: 23 additions & 11 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) + !Skin.HasSetting(hide_background_fanart)">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>
<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>
<control type="group">
<depth>DepthBackground</depth>
<include>FullScreenDimensions</include>
<visible>!Skin.HasSetting(hide_background_fanart)</visible>
<animation effect="zoom" start="105" end="130" center="auto" time="10000" tween="sine" easing="inout" pulse="true" condition="Skin.HasSetting(animate_background_fanart)">Conditional</animation>
<animation effect="slide" start="-30,-30" end="30,30" time="6000" tween="sine" easing="inout" pulse="true" condition="Skin.HasSetting(animate_background_fanart)">Conditional</animation>
<control type="image">
<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>
</control>
<control type="multiimage">
<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>
</control>
</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="!Skin.HasSetting(hide_background_fanart) + [!String.IsEmpty(Player.Art(fanart)) | Visualisation.Enabled | System.HasAddon(script.artistslideshow)]">Conditional</animation>
<include>ColoredBackgroundImages</include>
</control>
<control type="group">
Expand Down

0 comments on commit 2000283

Please sign in to comment.