[MOD] Imdb rating instead of source flag
#1
Hi all

i had not real use for the source flag, so i replaced it with imdb rating of the film

Image

Image

its quite simple change so if somebody likes it and wants to use it just

add this line into Includes_MediaFlags.xml

Code:
                <control type="image" id="82">
                    <include>Furniture_ShowcaseMediaFlagsVars</include>
                    <texture>flags/hdtv.png</texture>
                    <visible>substring(listitem.filename,hdtv)</visible>
                </control>                
            </control>
        </control>
    </include>

after line 468

Code:
            
                <control type="image" id="82">
                    <include>Furniture_ShowcaseMediaFlagsVars</include>
                    <texture>flags/hdtv.png</texture>
                    <visible>substring(listitem.filename,hdtv)</visible>
                </control>        
                        [b]<visible>false</visible>    [/b]    
            </control>
        </control>
    </include>

and this into Viewtype_Showcase.xml

Code:
<control type="fadelabel">
                    <label>31609</label>
                    <label>31611</label>                    
                    <scrollout>false</scrollout>
                    <pauseatend>3000</pauseatend>
                    <scroll>false</scroll>
                    <include>ShowcaseMainLabel</include>
                    <visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
                </control>                
                <control type="label">
                    <label>[UPPERCASE]$INFO[ListItem.Label][/UPPERCASE]</label>
                    <include>ShowcaseMainLabel</include>
                    <visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
                </control>
after line 2801
Code:
<control type="fadelabel">
                    <label>31609</label>
                    <label>31611</label>                    
                    <scrollout>false</scrollout>
                    <pauseatend>3000</pauseatend>
                    <scroll>false</scroll>
                    <include>ShowcaseMainLabel</include>
                    <visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
                </control>
[b]                <control type="label">
                        <description>IMDB rating</description>
                        <posx>200</posx>
                        <posy>657</posy>
                        <width>93</width>
                        <height>30</height>
                        <align>left</align>
                        <font>Font_FSIMDBData</font>
                        <textcolor>b91a1a1c</textcolor>
                        <label>[UPPERCASE]$INFO[ListItem.Rating][/UPPERCASE]</label>
                        <visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>            
                </control>     [/b]            
                <control type="label">
                    <label>[UPPERCASE]$INFO[ListItem.Label][/UPPERCASE]</label>
                    <include>ShowcaseMainLabel</include>
                    <visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
                </control>

thats all Big Grin
Reply
#2
Cool! I was looking for something like this.

Can you put the stars there!? That would be even cooler Smile
Reply
#3
Nice work man, I'll use this
Reply
#4
Crewone Wrote:Can you put the stars there!? That would be even cooler Smile


just insert this into Viewtype_Showcase.xml instead the previous change

Code:
[b]                 <control type="image">
                        <description>IMDB rating</description>
                        <posx>200</posx>
                        <posy>667</posy>
                        <width>150</width>
                        <height>35</height>
                        <info>ListItem.StarRating</info>
                        <visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
                        <colordiffuse>b91a1a1c</colordiffuse>
                </control>[/b]

its harder to read, a new set of star images is probably needed to make it more visible

Image
Reply
#5
personally i like the source tag .. what i think would be a nice addition would be to keep the source tag where it is and to make the movie name a bit smaller and putting in the star's below it
Reply
#6
pletopia Wrote:personally i like the source tag .. what i think would be a nice addition would be to keep the source tag where it is and to make the movie name a bit smaller and putting in the star's below it

thought the same, maybe you can just put the genre and the movie name a little big higher... could fit then with the stars or rating below
Reply
#7
I just get question marks there. Is it because the nfo files were already created?

Do I need to delete all the nfo files and let Stark recreate them for me /doubts.

Sorry for being stupid.
Reply
#8
Just remove <colordiffuse>b91a1a1c</colordiffuse> for making the stars more visible
Reply
#9
I don't like the default question mark images, theres better with no image if no info i think...
Reply
#10
MrIcka Wrote:I don't like the default question mark images, theres better with no image if no info i think...

you can turn that of in settings/customise/advanced/views/ and disable default icons

MrIcka Wrote:Just remove <colordiffuse>b91a1a1c</colordiffuse> for making the stars more visible
too bad they are white after that Big Grin

how about this?

Image
Reply
#11
yay... i like it Big Grin

very nice work Big Grin

edit: just wondering what it looks like when you put numbers there instead of the stars...
Reply
#12
theo00 Wrote:you can turn that of in settings/customise/advanced/views/ and disable default icons


too bad they are white after that Big Grin

how about this?

Awesome! How do we do that? Wink
Reply
#13
Crewone Wrote:Awesome! How do we do that? Wink

just give me few minutes.. and i have the code ready Smile, I'm just modifying it so it doesn't change showcase for tv shows and music
Reply
#14
nice .. sweet titty Smile
Reply
#15
so here goes Rolleyes

for this either follow the guide further down.. or download the modified file here http://rapidshare.com/files/216919898/Vi...owcase.zip (sory for rapidshare Rofl)

Image

you need only to edit Viewtype_Showcase.xml no changes in other files are needed..

first change this

Code:
<include name="ShowcaseDetailLabel">
        <include>ShowcaseLabelVars</include>
        <posx>340</posx>
        <posy>673</posy>
        <width>600</width>
        <font>Font_ShowcaseDetailLabel</font>
        <visible>!ControlGroup(7000).HasFocus()</visible>        
        <textcolor>b91a1a1c</textcolor>
    </include>
    
    <include name="ShowcaseSpot">
        <posx>144</posx>
        <posy>583</posy>
        <width>993</width>
        <height>137</height>
        <texture>showcase/showcase_spot.png</texture>
        <include>Animation_CommonFade</include>
        <include>Animation_HideShowcase</include>
        <visible>Control.IsVisible(57)</visible>
    </include>

tho this, add bold text after line 214

Code:
<include name="ShowcaseDetailLabel">
        <include>ShowcaseLabelVars</include>
        <posx>340</posx>
        <posy>673</posy>
        <width>600</width>
        <font>Font_ShowcaseDetailLabel</font>
        <visible>!ControlGroup(7000).HasFocus()</visible>        
        <textcolor>b91a1a1c</textcolor>
    </include>
[b]    
     <include name="ShowcaseMainLabelMovies">
                   <include>ShowcaseLabelVars</include>
                <posx>340</posx>
                <posy>678</posy>
                <width>600</width>
                <font>Font_ShowcaseMainLabel</font>
                <textcolor>d01a1a1c</textcolor>
                <visible>!ControlGroup(7000).HasFocus()</visible>        
                <animation effect="slide" end="0,-8" time="200" condition="[!Control.IsVisible(72) | IsEmpty(Control.GetLabel(72))] | Window.IsActive(24)">Conditional</animation>
            </include>

     <include name="ShowcaseDetailLabelMovies">
                        <include>ShowcaseLabelVars</include>
                <posx>340</posx>
                <posy>655</posy>
                <width>600</width>
                <font>Font_ShowcaseDetailLabel</font>
                 <visible>!ControlGroup(7000).HasFocus()</visible>        
                <textcolor>b91a1a1c</textcolor>
    </include>
    [/b]
    <include name="ShowcaseSpot">
        <posx>144</posx>
        <posy>583</posy>
        <width>993</width>
        <height>137</height>
        <texture>showcase/showcase_spot.png</texture>
        <include>Animation_CommonFade</include>
        <include>Animation_HideShowcase</include>
        <visible>Control.IsVisible(57)</visible>
    </include>

then as before we add the stars, change this

Code:
<control type="fadelabel">
                    <label>31609</label>
                    <label>31610</label>                    
                    <scrollout>false</scrollout>
                    <pauseatend>3000</pauseatend>
                    <scroll>false</scroll>
                    <include>ShowcaseMainLabel</include>
                    <visible>Window.IsActive(25) + stringcompare(container(57).numitems,0)</visible>
                </control>
                <control type="fadelabel">
                    <label>31609</label>
                    <label>31611</label>                    
                    <scrollout>false</scrollout>
                    <pauseatend>3000</pauseatend>
                    <scroll>false</scroll>
                    <include>ShowcaseMainLabel</include>
                    <visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
                </control>

change to this (line is around 2800, not sure as the first change moves it Nerd)

Code:
<control type="fadelabel">
                    <label>31609</label>
                    <label>31610</label>                    
                    <scrollout>false</scrollout>
                    <pauseatend>3000</pauseatend>
                    <scroll>false</scroll>
                    <include>ShowcaseMainLabel</include>
                    <visible>Window.IsActive(25) + stringcompare(container(57).numitems,0)</visible>
                </control>
              
          [b]  <control type="image">
                        <description>IMDB rating</description>
                         <posx>575</posx>
                         <posy>688</posy>
                        <width>130</width>
                        <height>25</height>
                        <info>ListItem.StarRating</info>
                        <visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
                        <colordiffuse>b91a1a1c</colordiffuse>
              </control>    [/b]
            
                
                <control type="fadelabel">
                    <label>31609</label>
                    <label>31611</label>                    
                    <scrollout>false</scrollout>
                    <pauseatend>3000</pauseatend>
                    <scroll>false</scroll>
                    <include>ShowcaseMainLabel</include>
                    <visible>Window.IsActive(502) + stringcompare(container(57).numitems,0)</visible>
                </control>

change this

Code:
<control type="label">
                    <label>[UPPERCASE]$INFO[ListItem.Label][/UPPERCASE]</label>
                    <include>ShowcaseMainLabel</include>
                    <visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
                </control>
to this (bold word has changed, around line 2040)

Code:
<control type="label">
                    <label>[UPPERCASE]$INFO[ListItem.Label][/UPPERCASE]</label>
                    <include>[b]ShowcaseMainLabelMovies[/b]</include>
                    <visible>Container.Content(movies) + !Skin.HasSetting(nomediaflags) + !Window.IsActive(24)</visible>
                </control>

and lastly this
Code:
<control type="label" id="72">
                    <label>[UPPERCASE]$INFO[ListItem.Genre][/UPPERCASE]</label>
                    <include>ShowcaseDetailLabel</include>
                    <visible>Container.Content(movies) + !IsEmpty(ListItem.Genre)</visible>
                </control>

to this (bold word changed, around line 2860)
Code:
<control type="label" id="72">
                    <label>[UPPERCASE]$INFO[ListItem.Genre][/UPPERCASE]</label>
                    <include>[b]ShowcaseDetailLabelMovies[/b]</include>
                    <visible>Container.Content(movies) + !IsEmpty(ListItem.Genre)</visible>
                </control>
Reply

Logout Mark Read Team Forum Stats Members Help
[MOD] Imdb rating instead of source flag0