插件描述
这是一个侧栏菜单,支持二级子菜单,可以对多场景的项目进行清晰的分类.
使用方法
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
<krpano version="1.16" onstart="initiate_menu(); loadscene(pano1_1,null,MERGE);"> <!-- 引入xml文件 --> <include url="sidemenu.xml" /> <!-- 定义主菜单和对应子菜单的项目 --> <group name="level_0"> <group name="object_1" value="1. GROUP" link="switch_menu(1);" /> <group name="object_2" value="2. GROUP" link="switch_menu(2);" /> </group> <group name="level_1"> <group name="object_1" value="GROUP 1 - element 1" link="loadscene(pano1_1,null,MERGE,BLEND(0.5))" /> <group name="object_2" value="GROUP 1 - element 2" link="loadscene(pano1_2,null,MERGE,BLEND(0.5))" /> <group name="object_3" value="GROUP 1 - element 3" link="loadscene(pano1_3,null,MERGE,BLEND(0.5))" /> </group> <group name="level_2"> <group name="object_1" value="GROUP 2 - element 1" link="loadscene(pano2_1,null,MERGE,BLEND(0.5))" /> <group name="object_2" value="GROUP 2 - element 2" link="loadscene(pano2_2,null,MERGE,BLEND(0.5))" /> <group name="object_3" value="GROUP 2 - element 3" link="loadscene(pano2_3,null,MERGE,BLEND(0.5))" /> <group name="object_4" value="GROUP 2 - element 4" link="loadscene(pano2_4,null,MERGE,BLEND(0.5))" /> <group name="object_5" value="GROUP 2 - element 5" link="loadscene(pano2_5,null,MERGE,BLEND(0.5))" /> </group> ... scenes ... </krpano> |
案例
会员内容