2014-09-13, 07:36
Hopefully, I can ask for the assistance of BigNoid, since my understanding of skinning is very basic. I have modified a few things to my personal liking and I'm trying to learn to make the code as concise as it can be as that is the hardest part for me to grasp. I was wondering 2 things...
1. Can anyone provide any help in trying to shorten/abbreviate the code? I have duplicated lines in my DialogFullscreenInfo.xml changes, hopefully there is a way to combine them, it is difficult for me to figure that part out.
2. Can the autoscroll start after I press the "i" key? Right now it appears it has already started scrolling the cast info before I have time to see the top name or it looks like it was scrolling before I even pressed the "i" key?
Here are some pics of how it looks now.
My DialogFullscreenInfo.xml Changes + Full DialogFullScreenInfo.xml
My MyVideoNav.xml Changes + Full MyVideoNav.xml
Any help or suggestions are greatly appreciated.
Thank you.
1. Can anyone provide any help in trying to shorten/abbreviate the code? I have duplicated lines in my DialogFullscreenInfo.xml changes, hopefully there is a way to combine them, it is difficult for me to figure that part out.
2. Can the autoscroll start after I press the "i" key? Right now it appears it has already started scrolling the cast info before I have time to see the top name or it looks like it was scrolling before I even pressed the "i" key?
Here are some pics of how it looks now.
My DialogFullscreenInfo.xml Changes + Full DialogFullScreenInfo.xml
Code:
<control type="group">
<visible>VideoPlayer.Content(movies) | VideoPlayer.Content(episodes)</visible>
<include>Animation_CommonFade</include>
<control type="label">
<left>80</left>
<top>150</top>
<width>300</width>
<height>25</height>
<align>left</align>
<font>Font_Bold28</font>
<textcolor>FFFFA500</textcolor>
<label>PLOT</label>
<visible>VideoPlayer.Content(movies) + !IsEmpty(VideoPlayer.PlotOutline)</visible>
</control>
<control type="label">
<left>80</left>
<top>150</top>
<width>300</width>
<height>25</height>
<align>left</align>
<font>Font_Bold28</font>
<textcolor>FFFFA500</textcolor>
<label>PLOT</label>
<visible>VideoPlayer.Content(episodes) + !IsEmpty(VideoPlayer.Plot)</visible>
</control>
<control type="textbox">
<description>Plot</description>
<left>80</left>
<top>200</top>
<width>750</width>
<height>500</height>
<font>font15_textbox</font>
<textcolor>white2</textcolor>
<align>justify</align>
<label fallback="31203">$INFO[VideoPlayer.PlotOutline]</label>
<wrapmultiline>true</wrapmultiline>
<autoscroll time="3000" delay="10000" repeat="5000">true</autoscroll>
<visible>VideoPlayer.Content(movies) + !IsEmpty(VideoPlayer.PlotOutline)</visible>
</control>
<control type="textbox">
<description>Plot</description>
<left>80</left>
<top>200</top>
<width>750</width>
<height>500</height>
<font>font15_textbox</font>
<textcolor>white2</textcolor>
<align>justify</align>
<label fallback="31203">$INFO[VideoPlayer.Plot]</label>
<wrapmultiline>true</wrapmultiline>
<autoscroll time="3000" delay="10000" repeat="5000">true</autoscroll>
<visible>VideoPlayer.Content(episodes) + !IsEmpty(VideoPlayer.Plot)</visible>
</control>
<control type="label">
<left>80</left>
<top>700</top>
<width>350</width>
<height>25</height>
<font>Font_Bold28</font>
<textcolor>FFFFA500</textcolor>
<align>justify</align>
<label>YEAR</label>
<visible>!IsEmpty(VideoPlayer.Year)</visible>
</control>
<control type="label">
<description>Year</description>
<left>80</left>
<top>750</top>
<width>350</width>
<height>25</height>
<font>Font15_textbox</font>
<textcolor>white2</textcolor>
<align>justify</align>
<label>$INFO[VideoPlayer.Year]</label>
<visible>!IsEmpty(VideoPlayer.Year)</visible>
</control>
<control type="label">
<left>80</left>
<top>800</top>
<width>350</width>
<height>25</height>
<font>Font_Bold28</font>
<textcolor>FFFFA500</textcolor>
<align>justify</align>
<label>RATING</label>
<visible>!IsEmpty(VideoPlayer.RatingAndVotes)</visible>
</control>
<control type="label">
<description>Rating & Votes</description>
<left>80</left>
<top>850</top>
<width>350</width>
<height>25</height>
<font>Font15_textbox</font>
<textcolor>white2</textcolor>
<align>justify</align>
<label>$INFO[VideoPlayer.RatingAndVotes]</label>
<visible>!IsEmpty(VideoPlayer.RatingAndVotes)</visible>
</control>
<control type="label">
<left>1100</left>
<top>150</top>
<width>300</width>
<height>25</height>
<align>left</align>
<font>Font_Bold28</font>
<textcolor>FFFFA500</textcolor>
<label>DIRECTED BY</label>
<visible>!IsEmpty(VideoPlayer.Director)</visible>
</control>
<control type="label">
<description>Director</description>
<left>1100</left>
<top>200</top>
<width>525</width>
<height>25</height>
<font>font15_textbox</font>
<textcolor>white2</textcolor>
<align>left</align>
<label>$INFO[VideoPlayer.Director]</label>
<visible>!IsEmpty(VideoPlayer.Director)</visible>
</control>
<control type="label">
<left>1100</left>
<top>275</top>
<width>300</width>
<height>25</height>
<align>left</align>
<font>Font_Bold28</font>
<textcolor>FFFFA500</textcolor>
<label>CAST</label>
<visible>!IsEmpty(VideoPlayer.CastAndRole)</visible>
</control>
<control type="textbox">
<description>Cast & Role</description>
<left>1100</left>
<top>325</top>
<width>600</width>
<height>430</height>
<font>font15_textbox</font>
<textcolor>white2</textcolor>
<align>left</align>
<label fallback="31203">$INFO[VideoPlayer.CastAndRole]</label>
<wrapmultiline>true</wrapmultiline>
<autoscroll time="4500" delay="12000" repeat="4000">true</autoscroll>
<visible>!IsEmpty(VideoPlayer.CastAndRole)</visible>
</control>
</control>
My MyVideoNav.xml Changes + Full MyVideoNav.xml
Code:
<control type="group">
<visible>Control.IsVisible(59)</visible>
<animation effect="slide" start="0" end="40" time="720" tween="cubic" easing="inout" condition="Control.IsVisible(57)">Conditional</animation>
<animation effect="slide" start="0" end="60" time="720" tween="cubic" easing="inout" condition="Control.IsVisible(55)">Conditional</animation>
<animation effect="slide" start="0,0" end="80,15" time="720" tween="cubic" easing="inout" condition="Control.IsVisible(56)">Conditional</animation>
<animation effect="slide" tween="cubic" time="720" start="0,806" end="0,0">VisibleChange</animation>
<visible>[Container.Content(tvshows) | Container.Content(seasons) | Container.Content(movies)]</visible>
<control type="group">
<include>Window_OpenClose_Animation_Slower</include>
<include>VisibleFadeEffect</include>
<control type="image">
<posx>40</posx>
<posy>984</posy>
<height>100</height>
<aspectratio>scale</aspectratio>
<colordiffuse>grey2</colordiffuse>
<include>MediaFlagVars</include>
<texture height="400">$INFO[ListItem.Studio,flags/studios/,.png]</texture>
</control>
<control type="label">
<visible>Container.Content(movies)</visible>
<visible>![SubString(ListItem.Path,videodb://movies/sets) + !Stringcompare(ListItem.Label,..)]</visible>
<posx>180</posx>
<posy>960</posy>
<width>300</width>
<height>100</height>
<align>center</align>
<label>[B]Runtime: $INFO[ListItem.Duration] Minutes[/B]</label>
<font>font12</font>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<visible>Container.Content(movies)</visible>
<visible>![SubString(ListItem.Path,videodb://movies/sets) + !Stringcompare(ListItem.Label,..)]</visible>
<posx>180</posx>
<posy>1005</posy>
<width>300</width>
<height>100</height>
<align>center</align>
<label>[B]Release Year: $INFO[ListItem.Year][/B]</label>
<font>font12</font>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<visible>[Container.Content(tvshows) | Container.Content(seasons)] + !IsEmpty(Window(Home).Property(NextAired.NextDate))</visible>
<posx>180</posx>
<posy>960</posy>
<width>400</width>
<height>100</height>
<align>center</align>
<label>[B]Next Episode Airs: $INFO[Window(Home).Property(NextAired.NextDate)][/B]</label>
<font>font12</font>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<visible>[Container.Content(tvshows) | Container.Content(seasons)] + IsEmpty(Window(Home).Property(NextAired.NextDate))</visible>
<posx>180</posx>
<posy>960</posy>
<width>400</width>
<height>100</height>
<align>center</align>
<label>[B]Last Episode Aired: $INFO[Window(Home).Property(NextAired.LatestDate)][/B]</label>
<font>font12</font>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<visible>Container.Content(tvshows) + !IsEmpty(Window(Home).Property(NextAired.Status))</visible>
<posx>180</posx>
<posy>1005</posy>
<width>400</width>
<height>100</height>
<align>center</align>
<label>[B]Status: $INFO[Window(Home).Property(NextAired.Status)][/B]</label>
<font>font12</font>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<posx>620</posx>
<posy>980</posy>
<width>670</width>
<height>100</height>
<align>center</align>
<label>[B]$INFO[ListItem.Tagline][/B]</label>
<font>font15</font>
<scroll>true</scroll>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<visible>IntegerGreaterThan(ListItem.Property(UnWatchedEpisodes),0)+ !IsEmpty(ListItem.Property(UnWatchedEpisodes))</visible>
<posx>760</posx>
<posy>980</posy>
<width>400</width>
<height>100</height>
<align>center</align>
<label>[B]Unwatched Episodes: $INFO[ListItem.Property(UnWatchedEpisodes)][/B]</label>
<font>font15</font>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<visible>![SubString(ListItem.Path,videodb://movies/sets) + !Stringcompare(ListItem.Label,..)]</visible>
<posx>1480</posx>
<posy>960</posy>
<width>250</width>
<height>100</height>
<align>center</align>
<label>[B]IMDb Rating: $INFO[ListItem.Rating][/B]</label>
<font>font12</font>
<textcolor>grey2</textcolor>
</control>
<control type="label">
<visible>![SubString(ListItem.Path,videodb://movies/sets) + !Stringcompare(ListItem.Label,..)]</visible>
<posx>1480</posx>
<posy>1005</posy>
<width>250</width>
<height>100</height>
<align>center</align>
<label>[B]Votes: $INFO[ListItem.Votes][/B]</label>
<font>font12</font>
<textcolor>grey2</textcolor>
</control>
<control type="image">
<visible>![SubString(ListItem.Path,videodb://movies/sets) + !Stringcompare(ListItem.Label,..)]</visible>
<posx>1743</posx>
<posy>993</posy>
<height>77</height>
<aspectratio>scale</aspectratio>
<colordiffuse>grey2</colordiffuse>
<include>MediaFlagVars</include>
<texture fallback="flags/mpaa/NR.png">$VAR[RatingFlagVar]</texture>
</control>
</control>
</control>
Any help or suggestions are greatly appreciated.
Thank you.