Solved Few skinning questions - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +--- Thread: Solved Few skinning questions (/showthread.php?tid=191469) |
Few skinning questions - bambi73 - 2014-04-06 Hello all, I'm currently in process of modding of existing skin and I hit few deadends. My skinning knowledge is quite low so I want to ask others:
RE: Few skinning questions - jurialmunkey - 2014-04-06 1. Not possible afaik. If you know that one string is definitely going to be longer than the rest then you could put that into a horizontal grouplist and set the label control's width to auto, then have the 2nd column in a group and use <usecontrolcoords>true</usecontrolcoords> in the grouplist to the position it with a negative posy e.g. if first aired was always going to be the longest Code: <control type="label" description="genre"> But that's incredibly hacky really and will only work if one label is definitely always going to be longer than the rest. 2. Have you tried $INFO[ListItem.Label] ?? That shows "Season X" - don't know about just getting the number, but you could use a variable substring PHP Code: <variable name="SeasonInfoNumber"> RE: Few skinning questions - `Black - 2014-04-06 1. Not possible 2. We have no season information so tv show information is shown instead (thus Container.Content is set to tvshows). However it's possible with a workaround. 3. There is ListItem.IsSpecial so your view needs to set a property based on that in the focusedlayout. Workaround for #2 and #3: PHP Code: #MyVideoNav.xml You can then check for season and special with !IsEmpty(Window.Property(IsSeason)) !IsEmpty(Window.Property(IsSpecial)) in the movieinformation dialog. RE: Few skinning questions - bambi73 - 2014-04-06 Thanks both for help. 1. I combined jurialmunkey's trick with some conditions controlled by variable based on System.Language and it works fine. Of course it is limited to languages for which I have translation but it is much better than static width. PHP Code: <variable name="VideoInfo_OtherInfo_WidestLabel"> 2. Property works fine but I stopped liking idea when I saw it on screen 3. I noticed ListItem.Property(IsSpecial) before but somehow assumed it will work only on episodes not on directories. Now I tried it and it isn't much better. It returns true only on special episodes and specials directory in sessions view. It's empty for TV Show which has specials. So for my use-case it's useless because with "Flatten TV show seasons" set to "If only one season" I have specials directly in TV Show folder, there is no seasons view. Anyway to solve my problem it is enough to use your IsSeason property as marker that I got to episodes over seasons view. When TV Show has only one season XBMC goes directly to episodes and show TV Show thumb, when it has more seasons then it goes over season, set IsSeason and then show Season thumb. |