Skip to content

Commit

Permalink
added song-to-musicvideo script support
Browse files Browse the repository at this point in the history
  • Loading branch information
phil65 committed Mar 25, 2012
1 parent 3d3ec47 commit df3aa05
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
9 changes: 8 additions & 1 deletion 1080i/Includes_MediaMenu.xml
Expand Up @@ -500,12 +500,19 @@
<include condition="Window.IsActive(musicplaylisteditor)">PlaylistEditorButtons</include>
<include condition="!Skin.HasSetting(hideoptions)">ViewtypeSettingsButton</include>
<control type="button" id="1801">
<description>View As button</description>
<description>Trailer button</description>
<include>Objects_MediaMenuButtonAlt</include>
<label>Play Trailer</label>
<onclick>PlayMedia($ESCINFO[ListItem.Trailer])</onclick>
<visible>!IsEmpty(ListItem.Trailer)</visible>
</control>
<control type="button" id="1800">
<description>Music Video button</description>
<include>Objects_MediaMenuButtonAlt</include>
<label>Play Music Video</label>
<onclick>PlayMedia($ESCINFO[Window.Property(SongToMusicVideo.Path)])</onclick>
<visible>!IsEmpty(Window.Property(SongToMusicVideo.Path)) + Window.IsActive(musiclibrary)</visible>
</control>
</control>
<include>Media_Menu_NowPlaying</include>
</control>
Expand Down
1 change: 1 addition & 0 deletions 1080i/MyMusicNav.xml
Expand Up @@ -4,6 +4,7 @@
<allowoverlay>yes</allowoverlay>
<views>50,53,57,500,509,506,512,513,505</views>
<onload>Skin.SetString(diffuse_bar,$INFO[Skin.String(diffuse_musiclibrary)])</onload>
<onload condition="System.HasAddon(script.song-to-musicvideo)">RunScript(script.song-to-musicvideo)</onload>
<controls>
<control type="group">
<control type="multiimage" id="8862">
Expand Down

0 comments on commit df3aa05

Please sign in to comment.