2016-01-15, 16:41
@Mr. V - Highly unlikely to be done in a separate file. Skin Shortcuts got special dispensation to write an additional file to the skins directory (something plugins really shouldn't do). I don't know we'd get approval to write a second one. It would also add a lot of complexity to the script in terms of where to open/write the second file, working with different profiles in the second file, and so on (things that are already managed in the current file).. I'm hopeful I'll now have time to look into this over the weekend, but before I do I have to ask if you've tried with templates as-is. Whilst it probably won't work, something like...
(And when that doesn't work, if you can tell me why that gives me a good area to start looking at when I begin work on this )
@jayz - Potentially possible with templates. Certainly they were coded so that if two menu items generated the same template, the template would only be generated once but with visibility conditions so that both menu items would use it. So...
... should create a single multi-age control for all menu items with the same background property (though obviously you'd have to handle other backgrounds - playlist backgrounds for example - separately).
Code:
<other include="variables">
<controls>
<variable name="variableOneWith$SKINSHORTCUTS[property]">
<value condition="...">...</value>
</variable>
<variable ...>
</controls>
</other>
(And when that doesn't work, if you can tell me why that gives me a good area to start looking at when I begin work on this )
@jayz - Potentially possible with templates. Certainly they were coded so that if two menu items generated the same template, the template would only be generated once but with visibility conditions so that both menu items would use it. So...
Code:
<other include="background">
<property="background" tag="property" attribute="name|background" />
<controls>
<control type="multiimage">
<skinshortcuts>visibility</skinshortcuts>
<include>multiimagelayout</include>
<texturepath>$SKINSHORTCUTS[background]</texturepath>
</control>
</controls>
</other>
... should create a single multi-age control for all menu items with the same background property (though obviously you'd have to handle other backgrounds - playlist backgrounds for example - separately).