2015-05-21, 19:34
second one.
(2015-03-16, 11:50)sualfred Wrote: Phil65:
For some use cases, it could be useful to have an script to select an node of an treeview for dynamic lists to set the <content>...</content> value.
The skinshortcuts script does it perfectly for adding a new menu item with its dialog to select an category, an addon, and an subdir of the addon for example.
A lite version of this with just fetching the correct path of a node and storing them somewhere (skin setting value, property) would be awesome and we could offer dynamic customs widgets with nearly no limitations.
Maybe... u want to include something like that to your toolbox. It would fit perfectly there.
(2015-03-16, 12:29)sualfred Wrote: Example use case:
## Dynamic custom widget container
PHP Code:<control type="list" id="50">
.....
<itemlayout width="250" height="29">
......
<focusedlayout height="29" width="250">
......
</focusedlayout>
<content>%TOOLBOX CONTENT SOURCE%</content>
</control>
The user wants to fill the content of the widget with an subdir of an addon.
Example -> Advanced Launcher -> Category "Emulators" (plugin://plugin.program.advanced.launcher/?0df67ef8b67741f86ad5962f58f5bdc5)
A common user doesn't know the correct path and this is where toolbox kicks in and opens an dialog to select the path he wants to have as content for the widget list.
In skinshortcuts the dialog looks like this:
Example skin implementation:
SkinSettings -> <onclick>RunScript(script.toolbox,type=nodeselector&skinstring=CustomDynamicList1)</onclick>
Content List -> <content>$INFO[Skin.String(CustomDynamicList1)]</content>