[SOLVED]Watched Icon.
#1
Hi
Been playing around creating my own views for a skin I'm working on and having some success now, I'm getting there slowly but getting there lol, its starting to look like how i want it to, learning more every day Rofl

I've got to the point where my first view is almost finished and is almost looking exactly how i want it to.

What I'm trying to figure out though is how do i get the watched icon to appear once a show / movie has been watched, I would like to use a CustomTick.png i have made to indicate a watched show and place it slightly over the bottom right hand corner of the poster or banner and far right of a list type view.

I've probably seen how to do this in the code already but just missing or not know what that part of the code does yet. Probably looking in the wrong place on the wiki also.

Thanks in advance for your time and patience.


Old newbie trying his hardest to get his head around skinning lol, expect loads of questions :-)

It may be hard but the challenge of learning something new is fun :-)
Reply
#2
Use an image control:

PHP Code:
<texture>$INFO[ListItem.Overlay]</texture

or

PHP Code:
<info>ListItem.Overlay</info


be sure you have the .png in your media folder.

PHP Code:
OverlayWatched.png 
Reply
#3
So something along the lines of should do it then?

How does the Skin know to use the OverlayWatched.png though?

Sorry for all the questions not at home at moment at work so cant test what i wrote and still learning so much Smile

Code:
<control type="image">
    <description>Watched Icon</description>
    <posx>0</posx>
    <posy>0</posy>
    <width>30</width>
    <height>30</height>
    <texture>$INFO[ListItem.Overlay]</texture>
    <visible>Container.Content(videos)</visible>
</control>

Old newbie trying his hardest to get his head around skinning lol, expect loads of questions :-)

It may be hard but the challenge of learning something new is fun :-)
Reply
#4
There is no valid parameter for <visible>Container.Content(videos)</visible>

Wiki says:

Container.Content(parameter)

Returns true if the current container you are in contains the following: files, songs, artists, albums, movies, tvshows, seasons, episodes, musicvideos, genres, years, actors, playlists, plugins, studios, directors (Note: these currently only work in the Video and Music Library or unless a Plugin has set the value) also available are Addons true when a list of add-ons is shown LiveTV true when a htsp (tvheadend) directory is shown.

and ...

2 Images Available in XBMC

ListItem.Overlay

Shows the Overlay Icon status (compressed file [OverlayRAR.png], Trainer [OverlayTrainer.png], watched [OverlayWatched.png], unwatched [OverlayUnWatched.png], locked [OverlayLocked.png]) of the currently selected item in a list or thumb control.
Reply
#5
So something like this would be better?

Code:
<control type="image">
    <description>Watched Icon</description>
    <posx>0</posx>
    <posy>0</posy>
    <width>30</width>
    <height>30</height>
    <texture>$INFO[ListItem.Overlay]</texture>
    <visible>Container.Content(movies) | Container.Content(tvshows)</visible>
</control>

Do i need to add episodes and seasons also or would it be easier to just use:
Code:
<visible>true</visible>
Old newbie trying his hardest to get his head around skinning lol, expect loads of questions :-)

It may be hard but the challenge of learning something new is fun :-)
Reply
#6
(2012-10-08, 16:43)Icerat Wrote: So something like this would be better?

Code:
<control type="image">
    <description>Watched Icon</description>
    <posx>0</posx>
    <posy>0</posy>
    <width>30</width>
    <height>30</height>
    <texture>$INFO[ListItem.Overlay]</texture>
    <visible>Container.Content(movies) | Container.Content(tvshows)</visible>
</control>

Do i need to add episodes and seasons also or would it be easier to just use:
Code:
<visible>true</visible>

Yes best is you add seasons and episodes aswell ...
Reply

Logout Mark Read Team Forum Stats Members Help
[SOLVED]Watched Icon.0