Hey guys,
Sorry for my bad english.
Man Thanks for this great script an all of our hadr work to support..
First small type issue in your redame on github
https://github.com/BigNoid/script.skinsh...widgets.md
Code:
<content target="$INFO[Container(9000).ListItem.Property(widgetTarget)]">$INFO[Contianer(9000).ListItem.Property(widgetPath)]</content>
$INFO[Cont
ianer(9000).ListItem.Property(widgetPath)]</content>
it tooks me hours to find the reason why your example didn´t work
I integrate your script in my skin, works great..
But have one of you an Example how the toggle button works?
I test it with different examples an it makes nothing with my coding skills.
Example (Skin Shortcuts" version="1.0.7"):
Code:
<propertySettings toggle="widgetInfo" buttonID="522" templateonly="False" />
the button 522 in die script dialog should toggle the property widgetinfo true/false for the Widgetinfo and write it in the mainmenue
as property for the handling of the infoline above a widget.
Testet in different variations with the optional arguments..
as normal property it works
Code:
<propertySettings property="widgetInfo" buttonID="522" title="Widget info" showNone="true"/>
<property property="widgetInfo" label="Anzeigen" condition="![StringCompare(Container(211).ListItem.Property(widgetType),favourite) | Substring(Container(211).ListItem.Property(widgetPath),library://video/movies/genres.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/movies/years.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/movies/studios.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/movies/actors.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/movies/directors.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/movies/country.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/tvshows/genres.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/tvshows/years.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/tvshows/studios.xml/,right) | Substring(Container(211).ListItem.Property(widgetPath),library://video/tvshows/actors.xml/,right) | Substring(Container(211).ListItem.Property(widget),extended) | Stringcompare(Container(211).ListItem.Property(widgetTarget),pictures) | Stringcompare(Container(211).ListItem.Property(widget),Addon-Pinboard) | Stringcompare(Container(211).ListItem.Property(widget),PVR-Pinboard) | StringCompare(Container(211).ListItem.Property(widget),weather) | StringCompare(Container(211).ListItem.Property(widget),TV-movie) | StringCompare(Container(211).ListItem.Property(widget),News) | StringCompare(Container(211).ListItem.Property(widget),NewsFeed) | StringCompare(Container(211).ListItem.Property(widget),Systeminfo)]">true</property>
<propertyfallback property="widgetInfo" attribute="false" value="false">false</propertyfallback>
but it displays the selectdialog wich true/fals as option, not ideal..
a custom click as toggle seems to work
Code:
<control type="radiobutton" id="526">
<description>Change widget 1 info on/off</description>
<radioposx>730</radioposx>
<include>HomeSettings-MainMenuSlotSettingsButtonLayout</include>
<label>Widget1 - info test</label>
<label2>$INFO[Container(211).ListItem.Property(widgetInfo2)]</label2>
<onclick>SetProperty(customProperty,widgetInfo)</onclick>
<onclick condition="!IsEmpty(Container(211).ListItem.Property(widgetInfo))">SetProperty(customValue,)</onclick>
<onclick condition="IsEmpty(Container(211).ListItem.Property(widgetInfo))">SetProperty(customValue,True)</onclick>
<onclick>SendClick(404)</onclick>
<selected>!IsEmpty(Container(211).ListItem.Property(widgetInfo))</selected>
</control>
but how works the toggleoption in the script for better understanding what I do
?
Regards