2009-03-17, 20:25
First, seek in PM3 HD the function. So you have an example.
How to:
Go in xbmc to the location were the start playlist button is.
do look in your(debug/log) which skin file _.xml was loaded.
18:47:02 T:236 M:930066432 INFO: Loading skin file: custom_SkinSetting_1111.xml
Go to that .xml file: XBMC/skin/PM3 HD/720P/custom_SkinSetting_1111.xml
Find the button.
So now you know how it's done in PMIII HD.
What you need to do is look for a location were you want to create a button in MARK III, copie/paste an existing button in the .xml file and make the changes.
And use <onclick>Playmedia(media)</onclick>
How to:
Go in xbmc to the location were the start playlist button is.
do look in your(debug/log) which skin file _.xml was loaded.
18:47:02 T:236 M:930066432 INFO: Loading skin file: custom_SkinSetting_1111.xml
Go to that .xml file: XBMC/skin/PM3 HD/720P/custom_SkinSetting_1111.xml
Find the button.
PHP Code:
<control type="radiobutton" id="107">
<width>950</width>
<height>35</height>
<font>font12</font>
<label>21398</label>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<texturefocus border="7">list-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<textureradiofocus>radiobutton-focus-2.png</textureradiofocus>
<onclick>Skin.ToggleSetting(Use_Startup_Playlist)</onclick>
<selected>Skin.HasSetting(Use_Startup_Playlist)</selected>
</control>
<control type="button" id="108">
<description>Startup Playlist Path</description>
<width>950</width>
<textcolor>grey2</textcolor>
<focusedcolor>white</focusedcolor>
<label>15311</label>
<label2>$INFO[Skin.String(Startup_Playlist_Path)]</label2>
<onclick>Skin.SetFile(Startup_Playlist_Path,.m3u,t:\playlists\music\)</onclick>
<texturefocus border="7">list-focus.png</texturefocus>
<texturenofocus>-</texturenofocus>
<enable>Skin.HasSetting(Use_Startup_Playlist)</enable>
</control>
So now you know how it's done in PMIII HD.
What you need to do is look for a location were you want to create a button in MARK III, copie/paste an existing button in the .xml file and make the changes.
And use <onclick>Playmedia(media)</onclick>