ListItem.IsResumable problem. ???
#46
I can't reproduce problem that starting already watched item and stoping it in half doesn't update resume info ... It does work in my test xmls. Could You share xmls You use and see that problem?



As for Overlay: honestly I would rather get rid of Overlay infolabel - just check available types of overlays:
Code:
enum GUIIconOverlay { ICON_OVERLAY_NONE = 0,
                        ICON_OVERLAY_RAR,
                        ICON_OVERLAY_ZIP,
                        ICON_OVERLAY_LOCKED,
                        ICON_OVERLAY_HAS_TRAINER,
                        ICON_OVERLAY_TRAINED,
                        ICON_OVERLAY_UNWATCHED,
                        ICON_OVERLAY_WATCHED,
                        ICON_OVERLAY_HD};
ICON_OVERLAY_HAS_TRAINER, ICON_OVERLAY_TRAINED, ICON_OVERLAY_HD isn't even set anywhere in xbmc (can be set by plugins, but I doubt anyone is using it). I don't really like fact that this infolabel can say that item is .rar file just aswell that item is watched.

Personally I would rather change overlay with something like ListItem.IsWatched. When I will finally have more time to finally merge Skin Variables (it's ready, I just don't have time now to deal with potential bugs it could add) you could have single image control:

Code:
<variable name="OverlayIcon">
  <value condition="ListItem.IsWatched">OverlayWatched.png</value>
  <value condition="ListItem.IsResumable">OverlayResumable.png</value>
</variable>

[...]

<control type="image">
  <texture>$VAR[OverlayIcon]</texture>
</control>
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first

My previous forum/trac nickname: grajen3
Reply
#47
Here's the code:

PHP Code:
<control type="image">
                            <
visible>ListItem.IsResumable</visible>
                            <
posx>592</posx>
                            <
posy>0</posy>
                            <
height>49</height>
                            <
width>19</width>
                            <
texture>partial/$INFO[ListItem.Overlay]</texture>
                            <
aspectratio>keep</aspectratio>
                        </
control>
                        <
control type="image">
                            <
visible>!ListItem.IsResumable</visible>
                            <
visible>!Skin.HasSetting(InvertWatchedMarks)</visible>
                            <
posx>592</posx>
                            <
posy>0</posy>
                            <
height>49</height>
                            <
width>19</width>
                            <
texture>$INFO[ListItem.Overlay]</texture>
                            <
aspectratio>keep</aspectratio>
                        </
control>
                        <
control type="image">
                            <
visible>!ListItem.IsResumable</visible>
                            <
visible>Skin.HasSetting(InvertWatchedMarks)</visible>
                            <
posx>592</posx>
                            <
posy>0</posy>
                            <
height>49</height>
                            <
width>19</width>
                            <
texture>inverted/$INFO[ListItem.Overlay]</texture>
                            <
aspectratio>keep</aspectratio>
                        </
control
My skins:

Amber
Quartz

Reply
 
Thread Rating:
  • 0 Vote(s) - 0 Average



Logout Mark Read Team Forum Stats Members Help
ListItem.IsResumable problem. ???00