You are not logged in.

Ukrajinec

Beginner

  • "Ukrajinec" started this thread

Posts: 33

Location: Ukraine, Lviv

  • Send private message

1

Wednesday, December 12th 2012, 3:30pm

How to change the hotspot atributes?

Quoted



...
<plugin name="info2on" align="bottom" blendmode="normal" crop="0|0|65|65" customColor="true" height="prop" keep="true"
onclick="infospotsON" onout="" onover="" onovercrop="0|65|65|65" url="builddata/graphics/menu/info2.png" visible="" width="40" x="220" y="10" />
...
<hotspot name="infspot" keep="true" url="builddata/graphics/spots/info.png" ath="-31.6583" atv="-7.85235" width="50" height="50"/>
...
<action name="infospotsON">
keep="true";


set(hotspot[infspot].alpha, 1);
set(hotspot[infspot].enabled, 1);
</action>

<action name="infospotsOFF">
keep="true";

set(hotspot[infspot].alpha, 0);
set(hotspot[infspot].enabled, 0);
</action>...

Why attributes of hotspot not changed, when button was pressed? *confused* </plugin>
With regards, Igor.

2

Thursday, December 13th 2012, 2:12am

try :
onclick="infospotsON()"

FYI, you don't need keep="true" in <action>s.

Ukrajinec

Beginner

  • "Ukrajinec" started this thread

Posts: 33

Location: Ukraine, Lviv

  • Send private message

3

Friday, December 14th 2012, 8:21am

try :
onclick="infospotsON()"
Thanks, I already did it the other way, but, on occasion, I will try this method.

Quoted

FYI, you don't need keep="true" in <action>s.
This code is in another file of the tour and attached to the main tour separately. Since I did not change the attributes of hotspots, I wrote everything I could think of *rolleyes*
With regards, Igor.