2014-04-15, 03:51
Hello all,
I was just wandering if anyone knows a way of how to add your own favourite from a button click. (Not from the context menu)
I have testing out the favourites script and it works perfectly for listing favourites, but is there any way that i could create my own button to add one myself ?
I have been doing a little bit of testing with the favourite properties and i have found out how to add 1 favourite to the Favourite.32.Path like this :
And to remove the favourite i have used this :
But the problem is that this is only for Favourite id 32 and there are 31 others.
The other thing is that XBMC will forget the favourite every time you restart.
The reason that i am asking this is because i would like to add a pin/unpin button to some of my windows on my Xbox One skin. Like the game details, or movies ect. It saves opening up the context menu and having to scroll through everything. Also the context menu can't be accessed from some sections.
Thanks in advance for any help or suggestions.
I was just wandering if anyone knows a way of how to add your own favourite from a button click. (Not from the context menu)
I have testing out the favourites script and it works perfectly for listing favourites, but is there any way that i could create my own button to add one myself ?
I have been doing a little bit of testing with the favourite properties and i have found out how to add 1 favourite to the Favourite.32.Path like this :
PHP Code:
<item id="4">
<description>Games</description>
<label>Pin</label>
<thumb></thumb>
<onclick>Dialog.Close(1223)</onclick>
<onclick>SetProperty(favourite.32.Path, ActivateWindow(8889),0)</onclick>
<onclick>SetProperty(favourite.32.Thumb, $INFO[Skin.String(GamePoster)],0)</onclick>
<onclick>SetProperty(favourite.32.Name, $INFO[Skin.String(GameName)],0)</onclick>
<onclick>Skin.ToggleSetting(32)</onclick>
<visible>!Skin.HasSetting(32)</visible>
</item>
And to remove the favourite i have used this :
PHP Code:
<item id="5">
<description>Games</description>
<label>Unpin</label>
<thumb></thumb>
<onclick>Dialog.Close(1223)</onclick>
<onclick>ClearProperty(favourite.32.Path,0)</onclick>
<onclick>ClearProperty(favourite.32.Thumb,0)</onclick>
<onclick>ClearSetProperty(favourite.32.Name,0)</onclick>
<onclick>Skin.ToggleSetting(32)</onclick>
<visible>Skin.HasSetting(32)</visible>
</item>
But the problem is that this is only for Favourite id 32 and there are 31 others.
The other thing is that XBMC will forget the favourite every time you restart.
The reason that i am asking this is because i would like to add a pin/unpin button to some of my windows on my Xbox One skin. Like the game details, or movies ect. It saves opening up the context menu and having to scroll through everything. Also the context menu can't be accessed from some sections.
Thanks in advance for any help or suggestions.