2017-07-08, 21:23
(2017-07-02, 10:00)jurialmunkey Wrote: @BobCratchett - if I'm using multiple widgets per menu item, how can I define the <widgetdefault> for the additional widgets?
I'm using the following method to set the additional widgets:
Code:<onclick>SetProperty(widgetID,myWidgetIdentifier)</onclick>
<onclick>SendClick(312)</onclick>
And for the base widget I'm setting the default widget for that menu item with:
Code:<widgetdefaultnode labelID="3" label="Video Addons" type="addons" path="addons://sources/video" target="videos">VideoAddons</widgetdefaultnode>
But how do I define the default for each additional widget the menu item has?
Sorry, for some reason I didn't get a notification for this message. You need to use the long form, and define each of the widget properties individually for each additional widget - see https://github.com/BigNoid/script.skinsh...t-defaults
(2017-07-08, 21:08)andersfisker Wrote: Hi all,
I'm pretty new to using this script, so please bear with me - Is it possible to dynamically change the height of a container, given the number of shortcuts / items it contains. An example could be if a menu has under 11 items, it would have a height of 200 - while if having between 11-21, it would have a height of 400. Is this possible?
Thanks in advance
When using templates it may be possible to set a height property based on the number of items (I honestly can't remember if this value is available when the templates are built…), but the easiest method - and the method for non-template usage - I suspect would be to use a conditional animation based on Integer.IsGreater(Container([id]).NumItems)…