SkinShortcuts visible condition?
#1
Hi,

is there a way to set a visible condition (so that the item only appears in main menu, if the condition is true) to the follwoing shortcut in overrides.xml:

xml:
<shortcut label="341" type="427" icon="special://skin/extras/icons/vcd.png">PlayDisc</shortcut>

like in mainmenu.DATA.xml:

xml:
<shortcut>
    <label>341</label>
    <label2>Common Shortcut</label2>
    <defaultID>dvd</defaultID>
    <icon>special://skin/extras/icons/vcd.png</icon>
    <action>PlayDisc</action>
    <visible>System.HasMediaDVD</visible>
</shortcut>

?

Thanks Smile
Reply
#2
(2021-06-17, 09:00)beatmasterrs Wrote: Hi,

is there a way to set a visible condition (so that the item only appears in main menu, if the condition is true) to the follwoing shortcut in overrides.xml:

xml:
<shortcut label="341" type="427" icon="special://skin/extras/icons/vcd.png">PlayDisc</shortcut>

like in mainmenu.DATA.xml:

xml:
<shortcut>
    <label>341</label>
    <label2>Common Shortcut</label2>
    <defaultID>dvd</defaultID>
    <icon>special://skin/extras/icons/vcd.png</icon>
    <action>PlayDisc</action>
    <visible>System.HasMediaDVD</visible>
</shortcut>

?

Thanks Smile

its a while back i used it, but.

does add the condition"" tag
xml:
<shortcut label="341" condition="System.HasMediaDVD" type="427" icon="special://skin/extras/icons/vcd.png">PlayDisc</shortcut>

work??
Skins |  Titan M O D   •   S W A N (WIP)
Reply
#3
The docs say you can use condition in a <shortcut></shortcut>

https://github.com/BigNoid/script.skinsh...ortcuts.md

However it's unclear if that condition is for selecting the item from the management dialog or for it's display once selected. I guess try it and see.
Reply
#4
Sadly the condition is only for selecting items from the management dialog, thats why i asked for a condition for the item itself. Smile

Thanks anyway Smile
Reply

Logout Mark Read Team Forum Stats Members Help
SkinShortcuts visible condition?0