2016-03-09, 15:24
I've searched others skin with this option and added a button in DialogContextMenu.xml like this:
It seems to work when you have a trailer in the scrapped movie info. If it doesn't exists the button is supposed to launch a youtube search which is not working actually.
Code:
<control type="button" id="3002"
<description>Button Trailer</description>
<left>-</left>
<top>-</top>
<width>300</width>
<height>38</height>
<font>fontContextMenu</font>
<align>center</align>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<texturefocus border="5" colordiffuse="$VAR[MainColorOne]">button-focus.png</texturefocus>
<label>$LOCALIZE[20410]</label>
<onclick condition="!IsEmpty(ListItem.Trailer)">PlayMedia("$INFO[ListItem.Trailer]")</onclick>
<onclick condition="IsEmpty(ListItem.Trailer)">ActivateWindow(videos,$ESCINFO[ListItem.Label,plugin://plugin.video.youtube/?path=/root/search&feed=search&search=, Trailer],return)</onclick>
<visible>!Skin.HasSetting(HideTrailerBtn) + [Container.Content(Episodes) | Container.Content(Movies)]</visible>
</control>
It seems to work when you have a trailer in the scrapped movie info. If it doesn't exists the button is supposed to launch a youtube search which is not working actually.