krpano 1.18.5
I have roughly this code:
Code
<!-- SPLASH -->
<layer name="skin_splash_window" type="container" keep="true" align="center" width="812" height="480" x="0" y="-15%">
<layer name="splash_map" state="open" url="%SWFPATH%/skin/pansertaarn.png" visible="true" align="topleft" width="100%" height="100%" x="0" y="0">
<layer name="skin_splash_border" type="container" keep="true" align="center" width="804" height="472" x="0" y="0" bgborder="4 0x000000 0.5" />
<layer name="skin_close_window" type="container" keep="true" align="righttop" width="40" height="40" x="8" y="8" bgcolor="0x000000" bgalpha="0.25" bgroundedge="4" maskchildren="true">
<layer name="skin_btn_thumbs" style="skin_base|skin_glow" crop="0|192|64|64" align="righttop" x="4" y="4" scale="0.5" ondown2="skin_showmap(false); skin_hidesplash();" />
</layer>
<layer name="skin_splash2_window" type="container" keep="true" align="leftbottom" width="804" height="157" x="4" y="4" bgcolor="0x000000" bgalpha="0.25">
<layer name="splash1_title" url="%SWFPATH%/plugins/textfield.swf" html="Virtuel rundvisning" align="lefttop" edge="lefttop" width="95%" height="16" autoheight="true" x="5" y="13" zorder="4" enabled="false" background="false" border="false" css="text-align:left; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:30px;" textshadow="1" />
<layer name="splash2_title" url="%SWFPATH%/plugins/textfield.swf" html="Garderhøjfortet" align="lefttop" edge="lefttop" width="95%" height="32" autoheight="true" x="5" y="40" zorder="4" enabled="false" background="false" border="false" css="text-align:left; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:60px;" textshadow="1" />
<layer name="splash3_title" url="%SWFPATH%/plugins/textfield.swf" html="Gentofte - Danmark" align="lefttop" edge="lefttop" width="95%" height="16" autoheight="true" x="5" y="103" zorder="4" enabled="false" background="false" border="false" css="text-align:left; color:#FFFFFF; font-family:Arial; font-weight:bold; font-size:30px;" textshadow="1" />
</layer>
</layer>
</layer>
Display More
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