• It would be great if I can make a group of hotspots or plugins and then I'll call functions for that group.

    eg.

    Code
    <plugin name="name1" group="my_group" />
    <plugin name="name2" group="my_group" />
    
    
    ...
    
    
    <action name="name3">
    set(group[my_group].visible,false);
    </action>


    *cool*

    *smile* Have a good day!

  • I had the same problem, and found a solution using the "parent" feature, because I noticed that when I make the parent invisible, then all children are invisible as well.

    I'm posting it here, hoping it might help someone.

    I have a floorplan image defined as a plugin called "map", and I need to be able to show and hide the hotspots on it. So, I made an extra "plugin" layer between the map and the hotspots, called "group". Group's parent is "map". The hotspots' parents are "group". The url for "group" is a transparent gif, and its set to 100% width and height, so that it invisibly covers "map".

    In this way, by changing the "visible" state of " group", I can hide all hotspots at once, without hiding the floorplan itself.

    So, calling action(showhotspots, true|false) will affect all defined hotspots at once, while the map remains unaffected.

    - Ronny D'Hoore

  • Note: there is a speed penalty involved with my above method. Everything that is drawn on top of the screen slows down the autorotation, even things that are "invisible". So, don't use this for very large screen areas...

    A recursive iteration as Michel has kindly explained here performs much better (but is not as quick to implement perhaps).

    - Ronny D'Hoore

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!