Simple skin question
#1
I have a png inside my skin directory. (it is also in a subdirectory in my skin folder)
I want to display it.

Code:
<control type="image">
    <description>Test</description>
    <posx>5</posx>
    <posy>5</posy>
    <width>50</width>
    <height>50</height>
        <texture background="true" fallback="test.png">images/test.png</texture>
</control>

This doesn't display anything.
How do I do this? or how do I generate the full path to my file? I cannot find any documentation on the $INFO variable, and have searched the forum for over 30 minutes.[/code]
Reply
#2
you have to place your image at SKINFOLDER/media/images/test.png with this image control. Remove the background and fallback attributes, they aren´t needed.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#3
Eventually got it, the path is relative to the xml file.

For completeness :

Code:
../images/test.png

worked.
Reply
#4
(2012-03-31, 18:26)gazhay Wrote: Eventually got it, the path is relative to the xml file.

For completeness :

Code:
../images/test.png

worked.

no, not relative to xml file (place). it´s relative to media folder.
Donate: https://kodi.tv/contribute/donate (foundation), 146Gr48FqHM7TPB9q33HHv6uWpgQqdz1yk (BTC personal)
Estuary: Kodis new default skin - ExtendedInfo Script - KodiDevKit
Reply
#5
You could also use the special:// protocol for absolute paths. E.g.:

Code:
special://skin/media/images/test.png
Reply

Logout Mark Read Team Forum Stats Members Help
Simple skin question0