I've created 2 buttons - 1 to turn the floor plan map On and another to turn if Off. Would anyone be able to modify my code below so that it is just one button that toggles On and Off?? Thanks! Using 2 buttons shows how much I really dont know.
(code in vtourskin.xml <style name="plan" url="plan_open.png" /> )...
Buttons:
<layer name="skin_btn_plan_open" style="plan|skin_glow" align="leftbottom" x="130" y="4" scale="1.0" onhover="showtext('Floor Plan', SKIN_TOOLTIPS);" ondown2="set(plugin[plan].visible, true);" />
<layer name="skin_btn_plan_close" style="plan|skin_glow" align="leftbottom" x="185" y="4" scale="1.0" onhover="showtext('Close Plan', SKIN_TOOLTIPS);" ondown2="set(plugin[plan].visible, false);" />