Why doesn't the hotspot polygon update after I use removearrayitem to delete a point?

  • <action name="delete_hotspot_point">

    if(polyspot_point==1,

    hotspot[get(realhotspot)].point.removearrayitem(calc(polyspot_point));

    hotspot["fakehotspot"].point.removearrayitem(calc(polyspot_point));

    hotspot["fakehotspot"].point.removearrayitem(calc(polyspot_point-1));

    removehotspot(polyspot_point_0);

    removehotspot("finshed");

    removehotspot("deletePoint");

    set(polyspot_point,0);

    updatescreen();

    ,

    removehotspot(calc('polyspot_point_' + calc(polyspot_point)));

    hotspot[get(realhotspot)].point.removearrayitem(calc(polyspot_point));

    hotspot["fakehotspot"].point.removearrayitem(calc(polyspot_point));

    set(hotspot[finshed].ath,calc(get(hotspot["fakehotspot"].point[calc(polyspot_point-2)].ath)+3));

    set(hotspot[finshed].atv,calc(get(hotspot["fakehotspot"].point[calc(polyspot_point-2)].atv)-2));

    set(hotspot[deletePoint].ath,calc(get(hotspot["fakehotspot"].point[calc(polyspot_point-2)].ath)-3));

    set(hotspot[deletePoint].atv,calc(get(hotspot["fakehotspot"].point[calc(polyspot_point-2)].atv)-2));

    set(hotspot[calc('polyspot_point_' + (get(polyspot_point)-1))].url,"../redianIcon/polygon_point_selected.png");

    updatescreen();

    dec(polyspot_point);

    )

        </action>  

  • klaus.krpano January 22, 2024 at 3:31 PM

    Added the Label Bug
  • klaus.krpano January 23, 2024 at 10:34 AM

    Added the Label Fixed

Participate now!

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