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 - Maniac - 2013-12-15

Hey guys, I am new to skinning so I am trying to understand bit by bit.
I am porting a skin mod to Aeon MQ5. I have found some weird properties in the original skin that I cannot find in Aeon MQ5.

Where can I find these custom properties? like this one below:
Code:
$INFO[Window(Home).Property(PVR_NextMinutes)]

Where can I find what is generating "PVR_NextMinutes", because this is no default info label in xbmc?

Thanks


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - ronie - 2013-12-15

(2013-12-15, 12:23)Maniac Wrote: Hey guys, I am new to skinning so I am trying to understand bit by bit.
I am porting a skin mod to Aeon MQ5. I have found some weird properties in the original skin that I cannot find in Aeon MQ5.

Where can I find these custom properties? like this one below:
Code:
$INFO[Window(Home).Property(PVR_NextMinutes)]

Where can I find what is generating "PVR_NextMinutes", because this is no default info label in xbmc?

Thanks

both skins and addons can set window properties.
in your case it's most likely one of the pvr addons.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Maniac - 2013-12-15

Of course, that explains why I am not getting any value there. My pvr addon does not support that property.
Is there a way to check if the property exists or has a value before I use it? So that i can replace it with something else.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - ronie - 2013-12-15

(2013-12-15, 18:14)Maniac Wrote: Of course, that explains why I am not getting any value there. My pvr addon does not support that property.
Is there a way to check if the property exists or has a value before I use it? So that i can replace it with something else.

sure, there's a few ways to do that.
the easiest would just to specify a fallback:
Code:
<label fallback="blablabla">$INFO[Window(Home).Property(PVR_NextMinutes)]</label>

or add an additional label control that's only visible when the property is empty:
Code:
<control type="label>
    .....
    <label>blablabla</label>
    <visible>IsEmpty(Window(Home).Property(PVR_NextMinutes))</visible>
</control>



RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Maniac - 2013-12-15

Thank you very much, this is great stuff Smile

Is it possible to change the time\date format on $INFO[VideoPlayer.TimeRemaining] ?
I want it only to show hh:mm and not hh:mmConfuseds (remove the seconds).


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - ronie - 2013-12-15

i'm not sure if all time labels in xbmc can be formatted,
but just give it a try:
Code:
$INFO[VideoPlayer.TimeRemaining(hh:mm)]



RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Maniac - 2013-12-15

Genious Smile it worked.
Thanks


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Maniac - 2013-12-17

Hi, I found another property tag that I am not sure where it comes from.
It is located in the controls type=group element

Code:
<visible>Substring(Window(Home).Property(PVROSDChannels),NewChannelsList)</visible>
This looks like a skin property?


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - asturnauta - 2013-12-31

Hi,

Which xml file configure the 'OSD Notification Window' that only appears when i change between audio tracks or select next subtitle on video playback?

I want to make it bigger in confluence and maybe make font bigger too.

I don't see screenshot of this window

Thanks.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - SamHill - 2014-02-27

awesome skin. Learning how to code with it myself.
Thanks.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - SamHill - 2014-03-09

I have been trying to figure out how to add the Metropolis "PosterFixed" view to the Foundation skin. I have copied the xml file over to the Foundation skin, and I've added the include in MyVideoNav.xml, but still no luck. Any ideas on what I am doing wrong?


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - BigNoid - 2014-03-09

Also add a reference to the file in includes.xml (at the top with the other references) and add the view id in MyVideoNav.xml in the views tag.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - SamHill - 2014-03-09

(2014-03-09, 09:09)BigNoid Wrote: Also add a reference to the file in includes.xml (at the top with the other references) and add the view id in MyVideoNav.xml in the views tag.

I did that as well, and it doesnt seem to still be doing it. Could it be that I am using an already used ID#? How can you tell what ID#'s are used and available.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - BigNoid - 2014-03-09

It should show in the views tag which id's are in use in myvideonav.xml. Double id's wont work.
If the file is referenced in includes.xml, the include is set in myvideonav.xml, the view id is unique (50 should be reserved for your view that works in all places, almost always default list view, count upwards from that) and the view you are adding is visible (check the visible condition for the list with the view id you are adding) it should work. If it doesnt, if you upload the includes.xml, the xml with the view in it and myvideonav.xml on pastebin I can take a look to see whats missing.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - SamHill - 2014-03-09

Here they are in Pastebin if you dont mind taking a look.

MyVideoNav
http://pastebin.com/8TkdUkwe

Includes
http://pastebin.com/9hwiX3HD

View_Poster_Fixed
http://pastebin.com/pFDqw5sG

Thanks.