2014-07-14, 17:00
To be save, how about to add a thumb/icon setting value to the overrides.xml?
(2014-07-14, 14:20)sualfred Wrote: Hey mate,Doesn't ListIem.ActualIcon work or you?
I'm providing an icon override for the YouTube plugin and it's correctly set to menu item, but it the overrride will be ignored because the plugin thumbnail will be written as a <thumb> value to the item.
PHP Code:<item id="17">
<onclick>ActivateWindow(10025,"plugin://plugin.video.youtube",return)</onclick>
<label>YouTube</label>
<label2>Video Add-On</label2>
<icon>backgrounds/bg/yt.jpg</icon>
<thumb>image://C%3a%5cUsers%5csebastian%5cAppData%5cRoaming%5cXBMC%5caddons%5cplugin.video.youtube%5cicon.png/</thumb>
<property name="labelID">youtube</property>
<property name="group">mainmenu</property>
<property name="submenuVisibility">youtube</property>
<visible>StringCompare(System.ProfileName,Master user)</visible>
</item>
(2014-07-14, 18:13)Hitcher Wrote: Doesn't ListIem.ActualIcon work or you?
<control type="radiobutton" id="351">
<width>550</width>
<label>$LOCALIZE[31819]</label>
<onclick>Skin.ToggleSetting(hub.episodes.enabled)</onclick>
<selected>Skin.HasSetting(hub.episodes.enabled)</selected>
<include>dialog_Radio-alt</include>
<visible>StringCompare(Container(211).ListItem.Property(labelID),tvshows)</visible>
</control>
(2014-07-15, 12:46)sualfred Wrote: Take your time. In the meantime, I will do some less important stuff like cleaning, changing the bad car battery, shaving or what ever ;P
But, I think an additional property (eg: <property name="defaultLabel">movies</property>) could be useful if a skinner wants to identify a item by its default label. Should be easy to be implemented and we can add various setting buttons to one specific shortcut without using the overrides.xml (example: Weather -> Enable conditional weather backgrounds + set path to the background folder).
(2014-07-15, 12:56)Unfledged Wrote: I'm not quite as convinced it'll be easily implemented, but I'll certainly look into it. I can see a couple of issues with it, though - first off, its default label in what language? Or do you just mean a labelID that doesn't change with the label? Presumable, then, it has no link to the action - I replaced my Weather option with a custom action to run a custom cleanup script, which would now always have the weather options...?
Second, just how many conditions are you going to program for, and how are you going to differentiate between an original label of "Title" (or "369" quite possibly) for movies, for tv shows, for music videos - or will these only work with the menu items from the "Common" group?
Perhaps linking your hubs to the action/displayAction would be more suitable for your use case?