Help Needed: Customizing Pandora - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +--- Thread: Help Needed: Customizing Pandora (/showthread.php?tid=113166) |
Help Needed: Customizing Pandora - htpc guy - 2011-10-24 I love spbogie's Pandora addon (found here). I've all ready created a pretty good skin (see post in Pandora Thread) and would like to make more. Problem is that you can only have one default skin. I would like to give the user an option to choose which skin to use in the settings menu. I have figured out how to edit the settings menu to choose between multiple skins. Now I've run into the hard part. I've figured out that I must edit default.py and tell it which skin to load. Here is what I have so far... Settings.xml contains: Code: <setting id="skin" type="enum" label="Look + Feel" File Structure: Code: ~XBMC\addons\XBMC-pandora\resources\skins Each skin folder has a skin.xml with a line for: Code: <skinname>Gloss</skinname> Now I just need to edit default.py. Any help would be appriciated. I know 0 python. I need to write an If Statement (I thinnk) that takes the skin settings and loads the skin from the correct folder. Thanks. - divingmule - 2011-10-25 I don't know how skins are loaded but for the settings and getting the skin.xml file I would do something like this. Code: if __settings__.getSetting( "skin" ) == "0": This would need to go below where scriptPath is defined. |