2015-10-07, 18:37
Ah, looks like the versions in the docs weren't updated when the actual version was (0.5.3 -> 0.6.0). Apologies for any confusion that's caused.
(2015-10-07, 08:55)BobCratchett Wrote: You could probably do something really hacky (and not at all secure) by overriding all actions in a menu.
Code:<override action="globaloverride" group="[menu id]">
<condition>StringCompare(Skin.String(password),[mysecretpassword])</condition>
</override>
<override action="globaloverride" group="[menu id]">
<condition>!StringCompare(Skin.String(password),[mysecretpassword])</condition>
<action>Skin.SetString(password)</action>
</override>
(remembering to replace [menu id] with the actual group name of the menu, and of course setting [mysecretpassword] to something).
Maybe even combine it with a AlarmClock to reset the skin string after a few seconds. However, it would be very easily by-passable, and would be user specific (unless your skin builds an additional menu just for non-family-friendly shortcuts).
To be done properly would need someone with skinning and python experience, and the interest in parental controls, to think through exactly what changes would be needed (and all the different scenarios, to ensure it would work well). I can't personally think of a good way this could be done.
<override action="globaloverride" group="mainmenu">
<condition>StringCompare(Skin.String(mypassword),1234)</condition>
</override>
<override action="globaloverride" group="mainmenu">
<condition>!StringCompare(Skin.String(mypassword),1234)</condition>
<action>Skin.SetString(mypassword)</action>
</override>
(2015-10-07, 19:56)tomer953 Wrote: Yeap, its working...
Still, a lot of problems with that method... I counted few of them before, and I can think of some more.. (what about the sub menu of the same item? the widget of the menu? I want to only show things that its not protected)
eyes goes to the Helper in that case.. :]
&mode=buildsingle
RunScript(script.skinshortcuts,type=buildxml&mainmenuID=9000&mode=buildsingle)
(2015-10-08, 18:23)BobCratchett Wrote: Incorrect docs it should be `&mode=single`
To be honest it's very possible that bit of the docs won't be complete - the function was added way back when for reFocus, but never documented until now. And even then, I've done it by looking at the reFocus code and already got it wrong once, so please let me know about any issues/ommissions you find with the vertical menu docs, and I'll do my best to work out what it should be
(BTW, wanted to thank you for your suggestion of restoring a shortcut - I've been playing with it and it's a really useful addition. PR is open on BigNoid's repo if you want to try it yourself)
(2015-10-08, 19:20)avia Wrote: I have to say something ..SkinShortcuts is having real breath of fresh air. Job made these days really push possibilities to another level. Many thanks to devs for that and yes, especially to Bob ...
I've been following this thread, I enjoy reading and see the Help @BobCratchett provides everyone.
Really well done.