PDA

View Full Version : Script to swap splash.png from skin settings


Asteron
2007-02-21, 23:00
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

<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!

stanley87
2007-02-22, 01:19
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, 01:47
real nice idea this one :) I like it