Kodi Community Forum
Script to swap splash.png from skin settings - 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: Script to swap splash.png from skin settings (/showthread.php?tid=24955)



Script to swap splash.png from skin settings - Asteron - 2007-02-21

Hi all,
I wrote a small script that skinners should find useful.
This toggles XBMC's Q:\media\splash.png with a custom one in
Q:\skin\<yourskin>\extras\splash.png

Here is the link
http://asteron.projects.googlepages.com/switchsplash.py

You can just place this script in Q:\skin\<yourskin>\extras\ next to your custom splash.png

And here is how you would integrate it into a skin settings menu

Code:
<control type="radiobutton" id="34">
  <description>Use Custom Splash</description>
  <posx>211</posx>
  <posy>268</posy>
  <width>445</width>
  <label>Use Custom Splash Image</label>
  <onclick>XBMC.RunScript(Q:\skin\Project Mayhem III\extras\switchsplash.py)</onclick>
  <selected>Skin.HasSetting(customSplash)</selected>
  <onleft>9001</onleft>
  <onright>9001</onright>
  <onup>33</onup>
  <ondown>35</ondown>
  <textoffsetx>7</textoffsetx>
  <texturefocus>list-focus.png</texturefocus>
  <texturenofocus>-</texturenofocus>
  </control>
enjoy!


- matthuisman - 2007-02-22

Cool :-D
Im thinking about writing a script to edit some skin.xml's. So, for example, a function in the script to enable/disable skin integration (eg. for Xbmc Lyrics - it could add in the lyrics button to Pm3 etc)
Or is there something similiar to this allready?


- Jezz_X - 2007-02-22

real nice idea this one Smile I like it