Kodi Community Forum
Skinning for beginners - Foundation skin, skinning tools, and tips - 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)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: Skinning for beginners - Foundation skin, skinning tools, and tips (/showthread.php?tid=94438)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - relyter - 2013-05-30

Right, but those are for sort by title/year/etc, not sort direction Huh Seem like there's no infolabel for ascending/descending...


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Hitcher - 2013-05-30

Misread, sorry.

Toggle the sort direction-
Code:
Container.SortDirection

And to display the current sort method -
Code:
$INFO[Control.GetLabel(4)]



RE: Skinning for beginners - Foundation skin, skinning tools, and tips - relyter - 2013-05-31

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.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - nessus - 2013-05-31

https://github.com/xbmc/xbmc/blob/master/xbmc/video/windows/GUIWindowVideoNav.cpp


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - relyter - 2013-05-31

:/ Probably i need to grow up a little for my ideas..


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - EmilyLeslie - 2013-06-15

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.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - thedeadman - 2013-08-24

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>



RE: Skinning for beginners - Foundation skin, skinning tools, and tips - jerimiah797 - 2013-10-10

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


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - jkuch77 - 2013-11-15

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


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - BigNoid - 2013-11-15

Try
Code:
StringCompare(ListItem.Label,PVR.NowRecordingTitle)



RE: Skinning for beginners - Foundation skin, skinning tools, and tips - jkuch77 - 2013-11-15

Nope, that doesn't work either Sad


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - BigNoid - 2013-11-15

Okay I dont know about that specific infolabel, but stringcompare doesnt use $INFO[foo] as input, only foo.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - jkuch77 - 2013-11-15

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


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - NitrousXBMC - 2013-12-04

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.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - kristle - 2013-12-05

(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.