Layer enabled not working as expected

  • krpano 1.18.5

    I have roughly this code:

    Now when I press a button I want to disable the outermost layer using .enabled="false" then fade it out:

    Code
    <action name="skin_hidesplash">
    	set(layer[skin_splash_window].enabled, false);
    	tween(layer[skin_splash_window].alpha, 0);
    	set(contextmenu.item[ss].visible,true);
    </action>




    After running the action, the layer is gone but still receiving mouse clicks and I though that was what .enabled="false" would prevent.


    Then I changed the code to:

    Code
    <action name="skin_hidesplash">
    	set(layer[skin_splash_window].enabled, false);
    	set(layer[splash_map].enabled, false);
    	tween(layer[skin_splash_window].alpha, 0);
    	set(contextmenu.item[ss].visible,true);
    </action>


    Now, it works as desired, but disabling a child layer after the parent has been disabled should be redundant.

    What am I missing?

    Kind regards

    /Obel

    Einmal editiert, zuletzt von Obel (30. Dezember 2015 um 16:18)

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!