2016-04-23, 22:57
(2016-04-23, 20:32)BobCratchett Wrote:(2016-04-23, 12:19)willcmuk Wrote: Hi I'm currently trying to modify a skin, Arctic Zephyr, so that as well as displaying widgets in the main Home menu, it also displays them for sub menu items.
Is there a way to do this with script.skinshortcuts, I've seen this reference to it here which I think is what I'm after - https://github.com/BigNoid/script.skinsh.../issues/56 but not sure how to implement.
Can anyone give me a headstart?
There are two elements to doing this, only one of which we're really going to be able to assist you with here.
Firstly, you need to allow widgets to be set for submenu items. This should be relatively easy - just edit the script-skinshortcuts.xml file to remove any visibility condition on the button which sets widgets (normally 312). See here for controls used in the management dialog.
Secondly, you need to edit Artic Zephyr's code so it displays the widgets - you need to follow through the existing code and extend it to work with submenu items. It will work one of two ways - either as described here, where a list is filled with the properties of the selected menu items widgetPath, or via templates - to do it the template way for submenu's is only possible with version 1.0.8 of the script, and with the new submenuOther templates. Either way, you'll need to understand and modify the existing Artic Zephyr code to do this, and I'm not aware that anyone overly familiar with that skins code follows this thread closely...
(The issue you linked to is something else - using a submenu as a widget)
Thanks Bob, I've implemented the first fix, I'll see if anyone on the artic zephyr board can help me with the template - thanks again!