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 - hannahjo - 2012-10-15

No, manually added via nfo. file


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Hitcher - 2012-10-15

Then if XBMC doesn't have it in the database you can't display it.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - hannahjo - 2012-10-16

Daft question but can it be put in xbmc's database?


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Martijn - 2012-10-16

(2012-10-16, 12:05)hannahjo Wrote: Daft question but can it be put in xbmc's database?

no there is no db field for that


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - hannahjo - 2012-10-16

Found a solution which is not exactly what I want but will do. Put info into <instruments></instruments>. At least this way I can see who played on the album.
Thanks for your info all who helped, it was much appreciated.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Baswazz - 2012-11-08

Thanks for this foundation skin Hitcher.

I have a question, i don't really understand.
When i enable the debug grid and add some text like this:

Code:
<control type="label">
            <label>Home</label>
            <posx>120</posx>
            <posy>100</posy>
            <height>30</height>
            <width>250</width>
            <font>fontname</font>
            <align>left</align>
        </control>

Then i see the start of the first letter appear nicely on 120 when i check with the grid. But with the y it does not position the top or the bottom of the text on 100. Is this the font itself or is there a other explanation for this?






RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Hitcher - 2012-11-08

Default value <aligny>center</aligny>.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Baswazz - 2012-11-09

Ahh ok thanks that make sense Big Grin


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Baswazz - 2012-11-09

I try to understand how things work, i got 2 more questions:

Image

Code:
<control type="label">
            <label>Start</label>
            <posx>100</posx>
            <posy>100</posy>
            <height>100</height>
            <width>250</width>
            <align>left</align>
            <aligny>top</aligny>
            <font>Large</font>
            <textcolor>White</textcolor>
        </control>

        <control type="label">
            <label>Start</label>
            <posx>300</posx>
            <posy>100</posy>
            <height>100</height>
            <width>250</width>
            <align>left</align>
            <aligny>top</aligny>
            <font>Large</font>
            <textcolor>White</textcolor>
        </control>

I gave it a height of 100, when you see the picture grid it is on 120 is this font related?

Now i changed the fontsize of the second label to Small why does the posy change as it is still unchanged?

Image

Code:
<control type="label">
            <label>Start</label>
            <posx>100</posx>
            <posy>100</posy>
            <height>100</height>
            <width>250</width>
            <align>left</align>
            <aligny>top</aligny>
            <font>Large</font>
            <textcolor>White</textcolor>
        </control>

        <control type="label">
            <label>Start</label>
            <posx>300</posx>
            <posy>100</posy>
            <height>100</height>
            <width>250</width>
            <align>left</align>
            <aligny>top</aligny>
            <font>Small</font>
            <textcolor>White</textcolor>
        </control>



RE: Skinning for beginners - Foundation skin, skinning tools, and tips - butchabay - 2012-11-09

Assuming you have a font height of 40 in your example, and posy 100, alligny top.

Yes it's font related, the font size 40:2=20. Your allignment is top...
so posy 100 + 40 - 20 = 120 ...

If i'm wrong feel free to correct me Smile






RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Baswazz - 2012-11-09

I forgot to add the font.xml info:

Code:
    <font>
            <name>Large</name>
            <filename>Arial.ttf</filename>
            <size>48</size>
        </font>

For the second question i use also:

Code:
    <font>
            <name>Small</name>
            <filename>Arial.ttf</filename>
            <size>30</size>
        </font>

Edit:
If i change the font, leave everything else untouched it is about 109



RE: Skinning for beginners - Foundation skin, skinning tools, and tips - Baswazz - 2012-11-11

Anyone who can explain the above?


Skinning for beginners - Foundation skin, skinning tools, and tips - pecinko - 2012-11-11

(2012-11-11, 20:05)Baswazz Wrote: Anyone who can explain the above?

Bas, open up a new thread in skin developement. This is not related to Foundation so you have much better chance in getting your answer in dev thread.

That said try to use different fonts to see if it is font related or not. If it is happening with other fonts as well it will probably get fixed as bug. Devs are reading skin developement thread.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - jmarshall - 2012-11-11

If you were using a version where I'd screwed up the alignment that would be part of it. Try tonights nightly.


RE: Skinning for beginners - Foundation skin, skinning tools, and tips - echo - 2012-11-16

Hi Hitcher,
first of all, thank you for the Foundation skin - it has made it easier for me to get into skin development.

I have been in the process of creating a skin for a while now, but now that Frodo is coming out, I am worried as to how to make it fully compatible... I have seen the sticky "changes to the skinning engine" obviously, but am still unsure as to how to proceed....the new InfoLabels and the rest is fine, its the removal and addition of new default pages and controls that worry me..

Do you have any suggestions on the best way to change everything?
Are you planning on updating Foundation for Frodo?