krpano文字热点内容不弹出

发布时间:2022-07-06 16:57:34 点击数:293

有的时候我们只需要显示标注但不弹出内容  这个时间只需要在内容中填写一个 空 字即可 

 <action name="toggle_word_show">
        if(%1 == true, 
        set(layer[wordtitlestr].html,%2); 
        set(layer[wordcontentstr].html,%3);
            
            if(%3 == '空',
            set(layer[wordcontainer].visible, false);,
            set(layer[wordcontainer].visible, true);
            
            );
    
            tween(layer[wordcontainer].alpha, 1.0, 0.5,easeOutQuad);,
            tween(layer[wordcontainer].alpha, 0.0, 0.5,easeOutQuad,
                set(layer[wordcontainer].visible, false);
            ); 
        );
    </action>