Skip to content
This repository has been archived by the owner on Feb 4, 2018. It is now read-only.

Commit

Permalink
added: fully dynamic Info flags / ratings
Browse files Browse the repository at this point in the history
Star ratings now displayed alongside media flags. Furthermore, whenever flag/s are missing (i.e. when the nfo file lacks the required info) the surrounding flags will reposition themselves to fit. Dividing lines are also displayed and moved dynamically.
  • Loading branch information
deadendthrills committed Apr 10, 2009
1 parent 1daaef9 commit dd3e208
Show file tree
Hide file tree
Showing 12 changed files with 108 additions and 44 deletions.
19 changes: 13 additions & 6 deletions 720p/Customisation.xml
Original file line number Diff line number Diff line change
Expand Up @@ -135,43 +135,50 @@
<onclick>Skin.ToggleSetting(nodefaultflags)</onclick>
<selected>!Skin.HasSetting(nodefaultflags)</selected>
</control>

<control type="radiobutton" id="604">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31258</label>
<onclick>Skin.ToggleSetting(inforatings)</onclick>
<selected>Skin.HasSetting(inforatings)</selected>
</control>

<control type="radiobutton" id="605">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31285</label>
<onclick>Skin.ToggleSetting(movieratingtext)</onclick>
<selected>Skin.HasSetting(movieratingtext)</selected>
</control>

<control type="radiobutton" id="605">
<control type="radiobutton" id="606">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31286</label>
<onclick>Skin.ToggleSetting(albumratingtext)</onclick>
<selected>Skin.HasSetting(albumratingtext)</selected>
</control>

<control type="radiobutton" id="606">
<control type="radiobutton" id="607">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31297</label>
<onclick>Skin.ToggleSetting(singlemusiclisticon)</onclick>
<selected>Skin.HasSetting(singlemusiclisticon)</selected>
</control>

<control type="radiobutton" id="607">
<control type="radiobutton" id="608">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31298</label>
<onclick>Skin.ToggleSetting(singlemovielisticon)</onclick>
<selected>Skin.HasSetting(singlemovielisticon)</selected>
</control>

<control type="radiobutton" id="608">
<control type="radiobutton" id="609">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31299</label>
<onclick>Skin.ToggleSetting(showcaserss)</onclick>
<selected>Skin.HasSetting(showcaserss)</selected>
</control>

<control type="radiobutton" id="609">
<control type="radiobutton" id="610">
<include>Objects_SettingsDefaultRadioButton</include>
<label>31268</label>
<onclick>Skin.ToggleSetting(wallrss)</onclick>
Expand Down
36 changes: 19 additions & 17 deletions 720p/DialogVideoInfo.xml
Original file line number Diff line number Diff line change
Expand Up @@ -148,18 +148,7 @@
<width>695</width>
<height>569</height>
<texture>info/info_panellines_movie.png</texture>
<visible>substring(listitem.studio,sub)</visible>
</control>

<control type="image">
<description>background image</description>
<posx>0</posx>
<posy>60</posy>
<width>695</width>
<height>569</height>
<texture>info/info_panellines_movienosubs.png</texture>
<visible>!substring(listitem.studio,sub)</visible>
</control>

<control type="image">
<include>Objects_FSInfoCertificate</include>
Expand Down Expand Up @@ -351,14 +340,27 @@

<control type="image">
<description>IMDB rating</description>
<posx>370</posx>
<posy>573</posy>
<width>201</width>
<height>43</height>
<posx>411</posx>
<posy>589</posy>
<width>151</width>
<height>30</height>
<info>ListItem.StarRating</info>
<visible>Skin.HasSetting(movieratingtext)</visible>
<visible>Skin.HasSetting(inforatings)</visible>
<colordiffuse>FF7c7c7c</colordiffuse>
<visible>false</visible>
<animation effect="slide" start="-58,0" end="-58,0" time="0" condition="Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93) + Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-323,0" end="-323,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92) + !Control.IsVisible(93) + Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-302,0" end="-302,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92) + !Control.IsVisible(93) + !Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-150,0" end="-150,0" time="0" condition="Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93) + !Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-260,0" end="-260,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93) + !Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-88,0" end="-88,0" time="0" condition="Control.IsVisible(91) + Control.IsVisible(92) + Control.IsVisible(93) + !Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-108,0" end="-108,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + Control.IsVisible(93) + Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-200,0" end="-200,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + Control.IsVisible(93) + !Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-407,0" end="-407,0" time="0" condition="![Control.IsVisible(91) | Control.IsVisible(92) | Control.IsVisible(93) | Control.IsVisible(94)]">Conditional</animation>
<animation effect="slide" start="-261,0" end="-261,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92) + Control.IsVisible(93) + Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-148,0" end="-148,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92) + Control.IsVisible(93) + Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-350,0" end="-350,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92) + Control.IsVisible(93) + !Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-238,0" end="-238,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92) + Control.IsVisible(93) + !Control.IsVisible(94)">Conditional</animation>
<animation effect="slide" start="-177,0" end="-177,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93) + Control.IsVisible(94)">Conditional</animation>
</control>

</control>
Expand Down
94 changes: 74 additions & 20 deletions 720p/Includes_MediaFlags.xml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@
<width>131</width>
<height>30</height>
<colordiffuse>FF7c7c7c</colordiffuse>
<animation effect="slide" start="-148,0" end="-148,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92)">Conditional</animation>
<animation effect="slide" start="-111,0" end="-111,0" time="0" condition="!Control.IsVisible(91)">Conditional</animation>
</include>

<include name="Furniture_MovieInfoFlagSubs">
Expand All @@ -51,6 +53,9 @@
<width>39</width>
<height>30</height>
<colordiffuse>FF7c7c7c</colordiffuse>
<animation effect="slide" start="-111,0" end="-111,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92)">Conditional</animation>
<animation effect="slide" start="-259,0" end="-259,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92)">Conditional</animation>
<animation effect="slide" start="-148,0" end="-148,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92)">Conditional</animation>
</include>

<include name="Furniture_MovieInfoFlagRes">
Expand All @@ -59,125 +64,174 @@
<width>67</width>
<height>30</height>
<colordiffuse>FF7c7c7c</colordiffuse>
<animation effect="slide" start="-62,0" end="-62,0" time="0" condition="!substring(listitem.studio,sub)">Conditional</animation>
<animation effect="slide" start="-210,0" end="-210,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92) + !Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-147,0" end="-147,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92) + Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-260,0" end="-260,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92) + Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-110,0" end="-110,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-173,0" end="-173,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-59,0" end="-59,0" time="0" condition="Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-321,0" end="-321,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92) + !Control.IsVisible(93) + Control.IsVisible(94)">Conditional</animation>
</include>

<include name="Furniture_FlagUpright">
<posy>581</posy>
<width>1</width>
<height>47</height>
<texture>info/info_flagupright.png</texture>
</include>

<include name="Furniture_MovieInfoMediaFlags">

<control type="image">
<posx>104</posx>
<include>Furniture_FlagUpright</include>
<visible>Control.IsVisible(91) + [Control.IsVisible(92) | Control.IsVisible(93) | Control.IsVisible(94) | Skin.HasSetting(inforatings)]</visible>
</control>

<control type="image">
<posx>253</posx>
<include>Furniture_FlagUpright</include>
<visible>Control.IsVisible(92) + [Control.IsVisible(93) | Control.IsVisible(94) | Skin.HasSetting(inforatings)]</visible>
<animation effect="slide" start="-111,0" end="-111,0" time="0" condition="!Control.IsVisible(91)">Conditional</animation>
</control>

<control type="image">
<posx>313</posx>
<include>Furniture_FlagUpright</include>
<visible>Control.IsVisible(93) + [Control.IsVisible(94) | Skin.HasSetting(inforatings)]</visible>
<animation effect="slide" start="-110,0" end="-110,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-259,0" end="-259,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92)">Conditional</animation>
<animation effect="slide" start="-148,0" end="-148,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92)">Conditional</animation>
</control>

<control type="image">
<posx>403</posx>
<include>Furniture_FlagUpright</include>
<visible>Control.IsVisible(94) + Skin.HasSetting(inforatings)</visible>
<animation effect="slide" start="-110,0" end="-110,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-259,0" end="-259,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92)">Conditional</animation>
<animation effect="slide" start="-148,0" end="-148,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92) + Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-58,0" end="-58,0" time="0" condition="Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-64,0" end="-64,0" time="0" condition="!Control.IsVisible(91) + !Control.IsVisible(92) + !Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-212,0" end="-212,0" time="0" condition="Control.IsVisible(91) + !Control.IsVisible(92) + !Control.IsVisible(93)">Conditional</animation>
<animation effect="slide" start="-175,0" end="-175,0" time="0" condition="!Control.IsVisible(91) + Control.IsVisible(92) + !Control.IsVisible(93)">Conditional</animation>
</control>

<control type="image" id="91">
<include>Furniture_MovieInfoFlagSource</include>
<texture>flags/info/bluray.png</texture>
<visible>substring(listitem.filename,bluray)</visible>
</control>

<control type="image">
<control type="image" id="91">
<include>Furniture_MovieInfoFlagSource</include>
<texture>flags/info/dvd.png</texture>
<visible>substring(listitem.filename,sddvd)</visible>
</control>

<control type="image">
<control type="image" id="91">
<include>Furniture_MovieInfoFlagSource</include>
<texture>flags/info/hdtv.png</texture>
<visible>substring(listitem.filename,hdtv)</visible>
</control>

<control type="image">
<control type="image" id="91">
<include>Furniture_MovieInfoFlagSource</include>
<texture>flags/info/hddvd.png</texture>
<visible>substring(listitem.filename,hddvd)</visible>
</control>

<control type="image">
<control type="image" id="92">
<include>Furniture_MovieInfoFlagSound</include>
<texture>flags/info/dd51.png</texture>
<visible>substring(listitem.studio,6ch) + substring(listitem.studio,ac-3)</visible>
</control>

<control type="image">
<control type="image" id="92">
<include>Furniture_MovieInfoFlagSound</include>
<texture>flags/info/dd71.png</texture>
<visible>substring(listitem.studio,8ch) + substring(listitem.studio,ac-3)</visible>
</control>

<control type="image">
<control type="image" id="92">
<include>Furniture_MovieInfoFlagSound</include>
<texture>flags/info/dts51.png</texture>
<visible>substring(listitem.studio,6ch) + substring(listitem.studio,dts)</visible>
</control>

<control type="image">
<control type="image" id="92">
<include>Furniture_MovieInfoFlagSound</include>
<texture>flags/info/dts71.png</texture>
<visible>substring(listitem.studio,8ch) + substring(listitem.studio,dts)</visible>
</control>

<control type="image">
<control type="image" id="92">
<include>Furniture_MovieInfoFlagSound</include>
<texture>flags/info/dolby20.png</texture>
<visible>substring(listitem.studio,2ch)</visible>
</control>

<control type="image">
<control type="image" id="92">
<include>Furniture_MovieInfoFlagSound</include>
<texture>flags/info/mono.png</texture>
<visible>substring(listitem.studio,mono)</visible>
</control>

<control type="image">
<control type="image" id="93">
<include>Furniture_MovieInfoFlagSubs</include>
<texture>flags/info/cc.png</texture>
<visible>substring(listitem.studio,sub)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/sd.png</texture>
<visible>substring(listitem.studio,sd)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/480i.png</texture>
<visible>substring(listitem.studio,480i)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/576i.png</texture>
<visible>substring(listitem.studio,576i)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/720i.png</texture>
<visible>substring(listitem.studio,720i)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/1080i.png</texture>
<visible>substring(listitem.studio,1080i)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/480p.png</texture>
<visible>substring(listitem.studio,480p)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/576p.png</texture>
<visible>substring(listitem.studio,576p)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/720p.png</texture>
<visible>substring(listitem.studio,720p)</visible>
</control>

<control type="image">
<control type="image" id="94">
<include>Furniture_MovieInfoFlagRes</include>
<texture>flags/info/1080p.png</texture>
<visible>substring(listitem.studio,1080p)</visible>
Expand Down
3 changes: 2 additions & 1 deletion language/English/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,8 @@
<string id="31245">BROWSING LAYOUT</string>

<!-- Aeon Advanced options -->


<string id="31258">SHOW RATINGS (IMDB, ETC.) IN MOVIE INFO PAGE</string>
<string id="31259">DEFAULT ICONS FOR MEDIA FLAGS (OFF FOR BLANK SPACES)</string>
<string id="31260">SHOW TIME PANEL</string>
<string id="31261">HOME PAGE WEATHER POP-UP</string>
Expand Down
Binary file added media/info/info_flagupright.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/info/info_panellines_movie.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/rating0.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/rating1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/rating2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/rating3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/rating4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified media/rating5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd3e208

Please sign in to comment.