Posts: 8,283
Joined: Jul 2014
2015-10-25, 00:41
(This post was last modified: 2015-10-25, 01:19 by User 224999.)
(2015-10-14, 01:31)jurialmunkey Wrote: REQUEST: A way to use user selected image resource addons in a list/panel container.
Currently the image resource selector script writes the name and path of the user selected resource addon to a skin string. However, skin strings and window properties are not available inside list/panel containers. This means there is no possible way to have user selected image resources inside a container.
I think the only proper way to handle that would be if window properties and skin strings are available inside container itemlayout.
If you want I can make you a small workaround in the skinhelper script for the time beiing.
I created that little webservice to get the images from the script available inside panels but that approach can easily be used for $INFO var
EDIT: Turns out it was a quick fix -->
https://github.com/marcelveldt/script.sk...f01bf231f1
Do you mind testing it ?
Offcourse the proper implementation would be if it's fixed (if even possible) in Kodi code but for now this is a workaround
Posts: 445
Joined: Sep 2015
Reputation:
1
<animation type="onclick"/> for letting the user know that we registered the click. There are many times where nothing else but the click happens. And even when something obvious happens it wpuld be nice. Example: user clicks a song and all that happens is that the song begins to play. An indication on the button/song/item clicked would be nice.
Posts: 8,283
Joined: Jul 2014
(2015-10-27, 11:25)Torben Wrote: <animation type="onclick"/> for letting the user know that we registered the click. There are many times where nothing else but the click happens. And even when something obvious happens it wpuld be nice. Example: user clicks a song and all that happens is that the song begins to play. An indication on the button/song/item clicked would be nice.
Maybe just add a second onclick to the item ?
Posts: 445
Joined: Sep 2015
Reputation:
1
It is my understanding that it is kind of complicated to fire a single animation on, say a label inside a list, when that item in the list is clicked? I may be very very wrong though.
Posts: 8,283
Joined: Jul 2014
(2015-10-27, 13:48)Torben Wrote: It is my understanding that it is kind of complicated to fire a single animation on, say a label inside a list, when that item in the list is clicked? I may be very very wrong though.
You can set a window property and use that as trigger for your animation.
Posts: 445
Joined: Sep 2015
Reputation:
1
I think I like to stay with my wish for this as a skin feature request :-)
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
cant remember offhand if onclick has any control in a list? if so..
<control type="list" id="50">
onclick skin.reset(fire)
onclick skin.setstring(fire,1)
focusedlayout
button
onfocus skin.setstring(fire,1)
/button
image
animation condition="skin.string(fire,)" effect zoom 150
/image
If not then maybe other way round
<control type="list" id="50">
onup/down/left/right skin.setstring(fire,1)
focusedlayout
button
onfocus skin.setstring(fire,1)
onclick skin.reset(fire)
onclick skin.setstring(fire,1)
/button
image
animation condition="skin.string(fire,)" effect zoom 150
/image
Posts: 445
Joined: Sep 2015
Reputation:
1
2015-10-28, 09:29
(This post was last modified: 2015-10-28, 11:12 by Torben.)
Thanks again badaas. I get thw basic idea. But wont thos conditions be checked each frame whereas a true event driven animation only fires if rhe event fires? I just fear that a long list will be slowed by this. And that is not even adressing all the added buttons. A list can be a rhousand items with ease.
Id like to add that maybe it is possible today with out the added buttons using the panel oncæick event and the list item position if that can be used inside each items animation condition.
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
there are lots of hacks, one could be the code that runs sets the fire, so no buttons needed, ie. if a dialog onload sets fire, onunload resets it, or sets/unsets onload instantly. or whatever..
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
Request: Labels can have a <radius>xx</radius> tag to place text around the xx diameter.
Posts: 808
Joined: Dec 2014
Reputation:
51
badaas
Skilled Skinner
Posts: 808
SendClick(container,position) or current item if no position. Seems to only work for buttons atm. Thanks
Posts: 797
Joined: Dec 2010
Reputation:
33
Would be nice to have an extra infolabel (or property) for genre that returns only the topmost genre. E.g:
listitem.genre: Action / Adventure / Thriller
listitem.maingenre: Action