Hi,
I'm trying to make an action to switch on/off the whole interface. The problem is that some elements of the interface (only "banner", in this case) can already be either on or off and I want to keep them in an "off" state when switching everything on/off or to switch them on/off along with all the elements when they start in an "on" state.
"nadirlogo", "panobar", "controlbar" are not a problem because they all start in the same state, that is "visible,true".
Is this possible?
So I started from here but obviously it's only partially working:
Code
<plugin name="switch" keep="true" zorder="1" align="bottomleft" x="20" y="20" style="options" crop= "0|0|20|20" onovercrop= "0|20|20|20" ondowncrop= "0|40|20|20" onhover="showtext(get(Switch));" onclick="action(switchoff);" />
Code
<action name="switchon">
set(plugin[banner].visible,true);
set(plugin[nadirlogo].visible,true);
set(plugin[panobar].visible,true);
set(plugin[controlbar].visible,true);
set(plugin[switch].onclick,action(switchoff););
</action>
<action name="switchoff">
set(plugin[banner].visible,false);
set(plugin[nadirlogo].visible,false);
set(plugin[panobar].visible,false);
set(plugin[controlbar].visible,false);
set(plugin[switch].onclick,action(switchon););
</action>
Display More
Regards,
Marco