2011-02-28, 23:46
I am creating my menu bar at the moment and I want to have the two buttons within the addon browser that toggles automatic updates and the other that turns notifications on/off. I have been coding my buttons like so for when there is an on/off action to show the different labels and icons created.
<include name="Menu_Watched">
<item>
<icon>icons\new-icon-off.png</icon>
<label>$LOCALIZE[50057]</label>
<onclick>SendClick(14)</onclick>
<visible>!System.Setting(HideWatched)</visible>
</item>
<item>
<icon>icons\new-icon-on.png</icon>
<label>$LOCALIZE[50058]</label>
<onclick>SendClick(14)</onclick>
<visible>System.Setting(HideWatched)</visible>
</item>
</include>
My question is what would be the proper coding for my two visibles for the auto update button and the notification on/off button. My send click works fine, but I can't get the icons and labels to switch which means I don't have my visibles correct. I didn't see anything in the wiki for these functions or I may have missed them. Any help that can be given would be most appreciated. Thanks!
<include name="Menu_Watched">
<item>
<icon>icons\new-icon-off.png</icon>
<label>$LOCALIZE[50057]</label>
<onclick>SendClick(14)</onclick>
<visible>!System.Setting(HideWatched)</visible>
</item>
<item>
<icon>icons\new-icon-on.png</icon>
<label>$LOCALIZE[50058]</label>
<onclick>SendClick(14)</onclick>
<visible>System.Setting(HideWatched)</visible>
</item>
</include>
My question is what would be the proper coding for my two visibles for the auto update button and the notification on/off button. My send click works fine, but I can't get the icons and labels to switch which means I don't have my visibles correct. I didn't see anything in the wiki for these functions or I may have missed them. Any help that can be given would be most appreciated. Thanks!