I am aware that there is a built-in option for this, but it applies to all videos, and the skin I'm working on only considers this for movies. So I want Enter to open a TV episode right away, but for Enter to show info on movies. From this thread, I disabled the option to show info and then added this to the movie view:
It doesn't work though. I'm not sure where to place it, nor understand the id="" stuff so it might be that. What I do know is that my DialogVideoInfo.xml has a hidden button that opens the movie with:
This is the entire view:
<control type="grouplist">
<control type="button" id="9999">
<onclick>Action(info)</onclick>
</control>
</control>
It doesn't work though. I'm not sure where to place it, nor understand the id="" stuff so it might be that. What I do know is that my DialogVideoInfo.xml has a hidden button that opens the movie with:
<control type="grouplist">
<control type="button" id="97">
<onclick>SendClick(8)</onclick>
<onup>Back</onup>
<ondown>Back</ondown>
<onleft>Back</onleft>
<onright>Back</onright>
</control>
</control>
This is the entire view:
<?xml version="1.0" encoding="UTF-8"?>
<includes>
<include name="Viewtype_50_List">
<control type="group">
<visible>Control.IsVisible(50)</visible>
<control type="multiimage">
<fadetime>320</fadetime>
<imagepath>general/background.png</imagepath>
<aspectratio>stretch</aspectratio>
</control>
<control type="grouplist">
<control type="button" id="99">
<onclick>Action(info)</onclick>
</control>
</control>
<control type="fixedlist" id="50">
<width>1920</width>
<height>1080</height>
<onup>50</onup>
<ondown>50</ondown>
<focusposition>3</focusposition>
<orientation>vertical</orientation>
<itemlayout height="160" width="1920">
<control type="image">
<aligny>center</aligny>
<left>100</left>
<width>80</width>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[ListItem.Icon]</texture>
<colordiffuse>80EEEEEE</colordiffuse>
</control>
<control type="label">
<aligny>center</aligny>
<left>225</left>
<width>600</width>
<height>150</height>
<font>Reg30</font>
<textcolor>80CFCFCF</textcolor>
<label>$INFO[ListItem.OriginalTitle]</label>
</control>
<control type="image">
<top>75</top>
<align>center</align>
<height>25</height>
<aspectratio>keep</aspectratio>
<texture background="true">rating/none.png</texture>
</control>
<control type="image">
<top>75</top>
<align>center</align>
<height>25</height>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[ListItem.UserRating,rating/,.png]</texture>
<colordiffuse>80EEEEEE</colordiffuse>
</control>
<control type="label">
<aligny>center</aligny>
<left>1100</left>
<width>600</width>
<height>150</height>
<font>Light30</font>
<textcolor>80CFCFCF</textcolor>
<label>$INFO[ListItem.Director]</label>
</control>
<control type="label">
<top>60</top>
<left>1650</left>
<width>250</width>
<height>150</height>
<font>Light30</font>
<textcolor>80CFCFCF</textcolor>
<label>$INFO[ListItem.Year]</label>
</control>
<control type="image">
<bottom>0</bottom>
<left>100</left>
<width>88%</width>
<height>2</height>
<aspectratio>stretch</aspectratio>
<texture background="true">general/separator.png</texture>
</control>
</itemlayout>
<focusedlayout height="180" width="1920">
<control type="group">
<animation effect="zoom" time="120" start="100" end="105" center="auto" tween="Back" easing="Out">Focus</animation>
<control type="image">
<top>-100</top>
<width>1950</width>
<height>380</height>
<aspectratio>scale</aspectratio>
<texture background="true">general/focus_item.png</texture>
</control>
<control type="image">
<aligny>center</aligny>
<left>100</left>
<width>100</width>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[ListItem.Icon]</texture>
</control>
<control type="fadelabel">
<aligny>center</aligny>
<left>250</left>
<width>580</width>
<font>Bold42</font>
<textcolor>FFFFFFFF</textcolor>
<label>$INFO[ListItem.OriginalTitle]</label>
<textwidth>580</textwidth>
<scroll>false</scroll>
</control>
<control type="image">
<top>75</top>
<align>center</align>
<height>30</height>
<aspectratio>keep</aspectratio>
<texture background="true">rating/none.png</texture>
</control>
<control type="image">
<top>75</top>
<align>center</align>
<height>30</height>
<aspectratio>keep</aspectratio>
<texture background="true">$INFO[ListItem.UserRating,rating/,.png]</texture>
</control>
<control type="label">
<aligny>center</aligny>
<left>1100</left>
<width>600</width>
<font>Light42</font>
<textcolor>FFFFFFFF</textcolor>
<label>$INFO[ListItem.Director]</label>
<textwidth>480</textwidth>
</control>
<control type="label">
<aligny>center</aligny>
<left>1600</left>
<font>Light42</font>
<textcolor>FFFFFFFF</textcolor>
<label>$INFO[ListItem.Year]</label>
</control>
</control>
</focusedlayout>
</control>
</control>
</include>
</includes>