Kodi Community Forum
"Skin.SetImage(foo)" seems not to work properly - 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)
+--- Thread: "Skin.SetImage(foo)" seems not to work properly (/showthread.php?tid=207248)



"Skin.SetImage(foo)" seems not to work properly - Rantanplan-1 - 2014-10-25

Hello

Try to let the user choose a picture from a predefined folder.

Here the attempts:
Code:
Skin.SetImage(Icon20_Icon,.png,special://skin/media/Icons/)

Skin.SetImage(Icon20_Icon[,special://skin/media/Icons/])

Skin.SetFile(Icon20_Icon,.png,special://skin/media/Icons/)

The Problem:
As soom as i use "Skin.SetImage(foo)" instead of "Skin.SetFile(foo)" the Filebrowser show me the root path and ignore "special://skin/.."
did i do something wrong? No Idea.


RE: "Skin.SetImage(foo)" seems not to work properly - Hitcher - 2014-10-26

Unfortunately you can only set the type and path for SetFile and not SetImage.