(2014-10-20, 13:50)marcelveldt Wrote: Hi Unfledged,
First of all, I really like your work with this addon.
I've spent the last few weeks on adopting your addon in my skin, it works beautifully for both home menu's, submenu's, widgets, backgrounds.
Glad you like it, and nice to see it used with MediaBrowser. TBH, I didn't expect to see it used with that backend.
(2014-10-20, 13:50)marcelveldt Wrote: I do have one question however...
I noticed that the default for the script is to share the homemenu items across different skins.
Is it also possible to make this user-selectable ?
OR: skin selectable, so the skinner can provide it's default shortcuts ?
For example I support multiple libraries in my skins so I provide a good set of default shortcuts, submenu's and widgets with my skin.
As I released the beta yesterday from my skin with the skinshortcuts-integration I noticed that users don't get my defaults unless they reset to shortcut defaults in settings (if they used the script before for antother skin).
Basically I want to ask them if they like to receive the skin default shortcuts or just use the existing menu and if yes do the reset, is that even possible ?
If not I will just use the normal command for reset and the user gets 2 confirmation prompts..
As you've already spotted, the ability to bypass the scripts own prompt has already been added. I honestly can't remember if that's on the repo version yet but, if not, it really shouldn't be long before it is.
It may well be possible to do something about this in the future but, largely after the posts in the early part of this thread, the script is based on the idea of the users menu carrying over between skins. I can actually see where this idea could fit into the code, so it's something I'll at least consider for a future version.
(2014-10-20, 13:50)marcelveldt Wrote: Besides my question I have one small problem...
I have a few shortcut items that have visibility conditions based on a Home-window property...
Also the title gets read from a window property.
I suspect that the skinshortcuts-script doesn't actually parse those window-properties as it outputs $INFO[propertydescription...] as labels for those items instead of the actual title.
Also I'm not sure if the visibility conditions will be checked correctly with those window-properties. This behaviour is only in the settings dialog. In the actual home menu the shortcuts offcourse displays and works fine.
I also tried to use skin strings for this but noticed that also doesn't work :-)
Do you see any possibility to add a check in the code to replace the window-property with the actual value in the settings dialog ?
For now I temporary "fixed a hack" for it in DialogSelect to show "custom title" as the listitem's title instead of the nasty $INFO[blabla] string...
I provide a list with custom library entries (for mediabrowser addon) from where they can choose from but now they have to trial and error to get the right entry :-)
Offcourse I'd be happy to make the modification myself and provide you the merge request.
Behaviour of default shortcuts (assuming you're referring to the default shortcuts?) with visibility properties should be much improved on the git version of the script - that's actually the feedback I'm waiting on that I reference a couple of posts back. If there's something there that isn't working, though, please let me know
As regards parsing the labels - no it doesn't. It's another of those cases - which seem to come up with every skinner who tries the script, and that I love! - where you're doing something I hadn't anticipated anyone trying to do
I've added some quick code to git to actually retrieve the infolabel of any label beginning with a $ - so it should work for $INFO's (including skin strings) and $VAR's. If you could try it and let me know if that works for you.
If you did want to look at the specific code involved - the available shortcuts are all generated in the _create() function of library.py - starting line 371