Skinning for beginners - Foundation skin, skinning tools, and tips

  Thread Rating:
  • 10 Votes - 4.4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
relyter Offline
Senior Member
Posts: 240
Joined: Dec 2010
Reputation: 8
Post: #151
Right, but those are for sort by title/year/etc, not sort direction Confused Seem like there's no infolabel for ascending/descending...
find quote
Hitcher Offline
Skilled Skinner
Posts: 10,822
Joined: Aug 2007
Reputation: 101
Location: Eastleigh, UK
Post: #152
Misread, sorry.

Toggle the sort direction-
Code:
Container.SortDirection

And to display the current sort method -
Code:
$INFO[Control.GetLabel(4)]
(This post was last modified: 2013-05-30 23:37 by Hitcher.)
find quote
relyter Offline
Senior Member
Posts: 240
Joined: Dec 2010
Reputation: 8
Post: #153
Thank you. AFAIU, infolabel for "show all/unwatched" would be GetLabel(10) (or 14), but what are the function? I read "List of built-in functions" including xbmc/interfaces/Builtins.cpp, but didn't find anything that fits. I'm really sorry for my stupidity.
find quote
nessus Offline
Skilled Skinner
Posts: 813
Joined: Apr 2009
Reputation: 23
Post: #154
https://github.com/xbmc/xbmc/blob/master...deoNav.cpp
find quote
relyter Offline
Senior Member
Posts: 240
Joined: Dec 2010
Reputation: 8
Post: #155
:/ Probably i need to grow up a little for my ideas..
find quote
EmilyLeslie Offline
Junior Member
Posts: 8
Joined: Jun 2013
Reputation: 0
Post: #156
These appearances are very nice, I have never found anything like this before and thanks for the shortcut keys, it becomes very easy with this.
find quote
thedeadman Offline
Skilled Skinner
Posts: 335
Joined: Dec 2010
Reputation: 5
Location: U.K
Post: #157
Greetings,

Thanks to some detective work from user Miappa (http://forum.xbmc.org/showthread.php?tid=170839&page=5), It seems pointer.xml on Foundation is causing some random problems - particularly with Gotham builds on Pi.

Code to replace:

Code:
<window id="105">
    <allowoverlay>yes</allowoverlay>

    <controls>

With:

Code:
<window id="105">
    <defaultcontrol>-</defaultcontrol>
    <coordinates>
        <system>1</system>
        <posx>0</posx>
        <posy>0</posy>
    </coordinates>
    
    <controls>
find quote
jerimiah797 Offline
Member
Posts: 68
Joined: Mar 2011
Reputation: 2
Post: #158
Hi, I posted this in the python dev subforum, but it is primarily a skinning tool to help with xml file development. You may want to add it to the first post under the 'tools' section. It's an xml schema file to help autocomplete xml tags in the right places. Helps a lot with eliminating misspellings, too!

http://forum.xbmc.org/showthread.php?tid=175099

-Jerimiah
find quote
jkuch77 Offline
Junior Member
Posts: 3
Joined: Nov 2013
Reputation: 0
Post: #159
Hi,

I'm a former Mediaportal user and just recently switched to XBMC. Mediaportal was lacking the plugins that XBMC has, but the one thing I really liked was the Titan skin that Mediaportal had. I'm currently working on designing Titan skin for my XBMC boxes and noticed that it's not much different from mediaportal as far as the xml code. It's working out pretty nice, but I ran into a snag. I'm trying to display a image next to a program that is currently recording in the List of TV Recordings. I'm using the following code:

PHP Code:
<control type="list" id="13">
      <
description>TV Recordings List</description>
      <
posx>918</posx>
      <
posy>219</posy>
      <
width>910</width>
      <
height>728</height>
      <
onleft>13</onleft>
      <
onright>13</onright>
      <
onup>13</onup>
      <
ondown>13</ondown>
      <
viewtype>list</viewtype>
      <
scrolltime>0</scrolltime>
      <
itemlayout height="56" width="910">
        <
control type="image">
          <
posx>20</posx>
          <
posy>15</posy>
          <
width>40</width>
          <
height>30</height>
          <
aspectratio>keep</aspectratio>
          <
texture fallback="defaultFolder.png">$INFO[ListItem.ChannelName].png</texture>
        </
control>
        <
control type="image">
          <
posx>65</posx>
          <
posy>15</posy>
          <
width>30</width>
          <
height>30</height>
          <
aspectratio>keep</aspectratio>
          <
texture>recording.png</texture>
          <
visible>StringCompare(ListItem.Label,$INFO[PVR.NowRecordingTitle])</visible>
        </
control>
        <
control type="label">
          <
posx>100</posx>
          <
posy>0</posy>
          <
width>500</width>
          <
height>54</height>
          <
font>TitanLight12</font>
          <
textcolor>FFFFFFFF</textcolor>
          <
selectedcolor>FFFFFFFF</selectedcolor>
          <
align>left</align>
          <
aligny>center</aligny>
          <
label>$INFO[ListItem.Label]</label>
        </
control>
        <
control type="label">
          <
posx>910</posx>
          <
posy>0</posy>
          <
width>500</width>
          <
height>54</height>
          <
font>TitanLight12</font>
          <
textcolor>FFFFFFFF</textcolor>
          <
selectedcolor>FFFFFFFF</selectedcolor>
          <
align>right</align>
          <
aligny>center</aligny>
          <
label>$INFO[ListItem.Date]</label>
        </
control>
      </
itemlayout>
      <
focusedlayout height="56" width="910">
        <
control type="image">
          <
posx>0</posx>
          <
posy>0</posy>
          <
width>910</width>
          <
height>54</height>
          <
texture>item_selected_tv.png</texture>
          <
visible>Control.HasFocus(13)</visible>
        </
control>
        <
control type="image">
          <
posx>20</posx>
          <
posy>15</posy>
          <
width>40</width>
          <
height>30</height>
          <
aspectratio>keep</aspectratio>
          <
texture fallback="defaultFolder.png">$INFO[ListItem.ChannelName].png</texture>
        </
control>
        <
control type="image">
          <
posx>65</posx>
          <
posy>15</posy>
          <
width>30</width>
          <
height>30</height>
          <
aspectratio>keep</aspectratio>
          <
texture>recording.png</texture>
          <
visible>StringCompare(ListItem.Label,$INFO[PVR.NowRecordingTitle])</visible>
        </
control>
        <
control type="label">
          <
posx>100</posx>
          <
posy>0</posy>
          <
width>500</width>
          <
height>54</height>
          <
font>TitanLight12</font>
          <
textcolor>FFFFFFFF</textcolor>
          <
selectedcolor>FFFFFFFF</selectedcolor>
          <
align>left</align>
          <
aligny>center</aligny>
          <
label>$INFO[ListItem.Label]</label>
        </
control>
        <
control type="label">
          <
posx>910</posx>
          <
posy>0</posy>
          <
width>500</width>
          <
height>54</height>
          <
font>TitanLight12</font>
          <
textcolor>FFFFFFFF</textcolor>
          <
selectedcolor>FFFFFFFF</selectedcolor>
          <
align>right</align>
          <
aligny>center</aligny>
          <
label>$INFO[ListItem.Date]</label>
        </
control>
      </
focusedlayout>
    </
control
PHP Code:
<visible>StringCompare(ListItem.Label,$INFO[PVR.NowRecordingTitle])</visible

This condition is always returning false. If I do this it works fine:

PHP Code:
<visible>StringCompare(ListItem.Label,Covert Affairs)</visible

It seems stringcompare is not working when the string is an info label.

Is there some other way to acheive what I'm trying to do here?

Thanks
find quote
BigNoid Offline
Team-Kodi Member
Posts: 3,149
Joined: Jul 2010
Reputation: 102
Location: Below sea level
Post: #160
Try
Code:
StringCompare(ListItem.Label,PVR.NowRecordingTitle)

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jkuch77 Offline
Junior Member
Posts: 3
Joined: Nov 2013
Reputation: 0
Post: #161
Nope, that doesn't work either Sad
find quote
BigNoid Offline
Team-Kodi Member
Posts: 3,149
Joined: Jul 2010
Reputation: 102
Location: Below sea level
Post: #162
Okay I dont know about that specific infolabel, but stringcompare doesnt use $INFO[foo] as input, only foo.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
jkuch77 Offline
Junior Member
Posts: 3
Joined: Nov 2013
Reputation: 0
Post: #163
Do you have any idea on another way I can make an image visible next to a list item only if it is currently recording? I also tried this too:

PHP Code:
<visible>ListItem.IsRecording</visible

Which exists and works in the other PVR list controls in confluence(control 11, 16, etc.), but will not work in the TVRecordings list control (13).

Maybe it is just a Bug in control 13

Or maybe the ArgusTV add-on doesn't tell XBMC if the list item is currently recording
(This post was last modified: 2013-11-15 21:31 by jkuch77.)
find quote
NitrousXBMC Offline
Member
Posts: 55
Joined: Aug 2008
Reputation: 0
Location: California
Post: #164
Is there a version of foundation floating around that works for Frodo/Gotham? I know Hitcher has retired, just unable to install this to start tinkering and was hoping someone had an update.
(This post was last modified: 2013-12-05 03:28 by NitrousXBMC.)
find quote
kristle Online
Member
Posts: 58
Joined: Jan 2013
Reputation: 1
Post: #165
(2013-12-04 03:07)NitrousXBMC Wrote:  Is there a version of foundation floating around that works for Frodo/Gotham? I know Hitcher has retired, just unable to install this to start tinkering and was hoping someone had an update.

Works for me on both. As I recall, I usually just copy and paste/unzip the skin.foundation folder into addons rather than trying to install from zip.
find quote
Post Reply