<?xml version="1.0" encoding="utf-8"?>
<CodeChip>
	<Dir Caption="动作语句">
		<Type Caption="自编动作">
		</Type>
		<Type Caption="变量操作">
			<Item Caption="赋值语句" Syntax="set({变量名,vtString,变量体},{值,vtString,变量值});"/>
			<Item Caption="获取语句" Syntax="get({变量或属性,vtString,变量});"/>
			<Item Caption="交替真假" Syntax="switch({true/false,vtTrueFalse,true});"/>
			<Item Caption="交替语句" Syntax="switch({属性变量,vtString,请输入属性名或变量名},{值1,vtString,请输入值1},{值2,vtString,请输入值2});"/>
			<Item Caption="补间语句" Syntax="tween({属性变量,vtString,},{目标值,vtString,},{*时间,vtString,},{*补间类型,vtString,},{*完成动作,vtString,});"/>
			<Item Caption="延时调用" Syntax="delayedcall({时间,vtString,},{完成动作,vtString,});"/>
		</Type>
		<Type Caption="判断操作">
			<Item Caption="判断语句" Syntax="if( {判断条件,vtString,条件判断语句} , {动作1,vtString,条件为真时的动作}  , {动作2,vtString,条件为否时的动作} );"/>
		</Type>
		<Type Caption="显示文字">
			<Item Caption="showtext" Syntax="showtext({文字内容,vtString,请输入内容},{*字体样式,vtString,样式});"/>
		</Type>
		<Type Caption="网页脚本">
			<Item Caption="打开网页" Syntax="url( {网页地址,vtString,} );"/>
			<Item Caption="调用JavaScript命令" Syntax="js( {JS命令,vtString,} );"/>
			<Item Caption="调用软窗口" Syntax="js(openWindow({页面地址,vtString,请输入页面地址},{宽度,vtString,请输入},{高度,vtString,请输入},{窗口标题,vtString,请输入窗口标题},{yes/no,vtString,是否带滚动条}));"/>
		</Type>
	</Dir>
	<Dir Caption="场景管理">
		<Type Caption="系统自带">
			<Item Caption="调用场景" Syntax="loadpano(%FIRSTXML%/{场景名称,vtScene,点击弹出场景选择对话框}/scene.xml, null, MERGE, BLEND(1.5),null);"/>
		</Type>
		<Type Caption="扩展">
			<Item Caption="前一场景" Syntax="VRM_LoadAutoScene(get(This.Prev));"/>
			<Item Caption="后一场景" Syntax="VRM_LoadAutoScene(get(This.Next));"/>
		</Type>
	</Dir>
	<Dir Caption="自动旋转">
		<Type Caption="属性">
			<Item Caption="是否允许自动旋转" Syntax="autorotate.enabled"/>
			<Item Caption="停留时间" Syntax="autorotate.waittime"/>
			<Item Caption="加速度" Syntax="autorotate.accel"/>
			<Item Caption="速度" Syntax="autorotate.speed"/>
			<Item Caption="倾斜角度" Syntax="autorotate.horizon"/>
			<Item Caption="目标视角" Syntax="autorotate.tofov"/>
		</Type>
		<Type Caption="动作">
			<Item Caption="开始旋转" Syntax="set(autorotate.enabled,true);"/>
			<Item Caption="停止旋转" Syntax="set(autorotate.enabled,false);"/>
			<Item Caption="交替旋转" Syntax="switch(autorotate.enabled);"/>
		</Type>
	</Dir>
	<Dir Caption="全屏切换">
		<Type Caption="属性">
			<Item Caption="是否全屏" Syntax="fullscreen"/>
		</Type>
		<Type Caption="动作">
			<Item Caption="进入全屏" Syntax="set(fullscreen,true);"/>
			<Item Caption="退出全屏" Syntax="set(fullscreen,false);"/>
			<Item Caption="交替全屏" Syntax="switch(fullscreen);"/>
		</Type>
	</Dir>
	<Dir Caption="控制设置">
		<Type Caption="属性">
			<Item Caption="鼠标控制类型" Syntax="control.mousetype"/>
		</Type>
		<Type Caption="动作">
			<Item Caption="鼠标类型">
				<Item Caption="移动到" Syntax="set(control.mousetype,moveto);"/>
				<Item Caption="2D拖拽" Syntax="set(control.mousetype,drag2d);"/>
				<Item Caption="3D拖拽" Syntax="set(control.mousetype,drag3d);"/>
			</Item>
			<Item Caption="旋转缩放">
				<Item Caption="放大" Syntax="set(movevectorz,-1);"/>
				<Item Caption="缩小" Syntax="set(movevectorz,+1);"/>
				<Item Caption="停止缩放" Syntax="set(movevectorz,0);"/>
				<Item Caption="向左" Syntax="set(movevectorx,-1);"/>
				<Item Caption="向右" Syntax="set(movevectorx,+1);"/>
				<Item Caption="停止左右" Syntax="set(movevectorx,0);"/>
				<Item Caption="向上" Syntax="set(movevectory,-1);"/>
				<Item Caption="向下" Syntax="set(movevectory,+1);"/>
				<Item Caption="停止上下" Syntax="set(movevectory,0);"/>
			</Item>
		</Type>
    </Dir>
	<Dir Caption="插件">
		<Type Caption="属性">
			<Item Caption="url" Syntax="plugin[].url"/>
			<Item Caption="visible" Syntax="plugin[].visible"/>
			<Item Caption="alpha" Syntax="plugin[].alpha"/>
			<Item Caption="align" Syntax="plugin[].align"/>
			<Item Caption="edge" Syntax="plugin[].edge"/>
			<Item Caption="x" Syntax="plugin[].x"/>
			<Item Caption="y" Syntax="plugin[].y"/>
			<Item Caption="ox" Syntax="plugin[].ox"/>
			<Item Caption="oy" Syntax="plugin[].oy"/>
			<Item Caption="rotate" Syntax="plugin[].rotate"/>
			<Item Caption="width" Syntax="plugin[].width"/>
			<Item Caption="height" Syntax="plugin[].height"/>
			<Item Caption="scale" Syntax="plugin[].scale"/>
			<Item Caption="effect" Syntax="plugin[].effect"/>
		</Type>
	</Dir>
	<Dir Caption="热点">
		<Type Caption="属性">
			<Item Caption="url" Syntax="hotspot[].url"/>
			<Item Caption="visible" Syntax="hotspot[].visible"/>
			<Item Caption="alpha" Syntax="hotspot[].alpha"/>
			<Item Caption="align" Syntax="hotspot[].align"/>
			<Item Caption="edge" Syntax="hotspot[].edge"/>
			<Item Caption="x" Syntax="hotspot[].x"/>
			<Item Caption="y" Syntax="hotspot[].y"/>
			<Item Caption="ox" Syntax="hotspot[].ox"/>
			<Item Caption="oy" Syntax="hotspot[].oy"/>
			<Item Caption="rotate" Syntax="hotspot[].rotate"/>
			<Item Caption="width" Syntax="hotspot[].width"/>
			<Item Caption="height" Syntax="hotspot[].height"/>
			<Item Caption="scale" Syntax="hotspot[].scale"/>
			<Item Caption="effect" Syntax="hotspot[].effect"/>
		</Type>
	</Dir>
	<Dir Caption="声音控制">
		<Type Caption="动作">
			<Item Caption="预加载MP3文件" Syntax="preloadsound({mp3文件,vtString,});"/>
			<Item Caption="playsound" Syntax="playsound({声音ID,vtString,},{mp3文件,vtString,},{*循环次数,vtString,},{*完成动作,vtString,});"/>
			<Item Caption="playsound2D" Syntax="playsound2D({声音ID,vtString,},{mp3文件,vtString,},{*音量大小,vtString,},{*左右声道,vtString,},{*循环次数,vtString,},{*完成动作,vtString,});"/>
			<Item Caption="playsound3D" Syntax="playsound3D({声音ID,vtString,}, {mp3文件,vtString,},{ath,vtString,},{atv,vtString,},{*范围,vtString,},{*音量大小,vtString,},{*循环次数,vtString,},{*完成动作,vtString,});"/>
			<Item Caption="playsound3DHS" Syntax="playsound3DHS({声音ID,vtString,},{mp3文件,vtString,},,{*范围,vtString,},{*音量大小,vtString,},{*循环次数,vtString,},{*完成动作,vtString,});"/>
			<Item Caption="暂停声音" Syntax="pausesound({mp3文件,vtString,});"/>
			<Item Caption="恢复声音" Syntax="resumesound({声音ID,vtString,});"/>
			<Item Caption="暂停/恢复声音" Syntax="pausesoundtoggle({声音ID,vtString,});"/>
			<Item Caption="停止声音" Syntax="stopsound({声音ID,vtString,});"/>
			<Item Caption="停止所有声音" Syntax="stopallsounds();"/>
		</Type>
	</Dir>
	<Dir Caption="视频控制">
		<Type Caption="视频热点内">
			<Item Caption="播放一个视频" Syntax="playvideo({视频文件,vtString,});"/>
			<Item Caption="关闭视频" Syntax="closevideo();"/>
			<Item Caption="停止" Syntax="stop();"/>
			<Item Caption="暂停" Syntax="pause();"/>
			<Item Caption="播放" Syntax="play();"/>
			<Item Caption="播放/暂停" Syntax="togglepause();"/>
		</Type>
		<Type Caption="外部控制">
			<Item Caption="播放一个视频" Syntax="hotspot[].playvideo({视频文件,vtString,});"/>
			<Item Caption="关闭视频" Syntax="hotspot[].closevideo();"/>
			<Item Caption="停止" Syntax="hotspot[].stop();"/>
			<Item Caption="暂停" Syntax="hotspot[].pause();"/>
			<Item Caption="播放" Syntax="hotspot[].play();"/>
			<Item Caption="播放/暂停" Syntax="hotspot[].togglepause();"/>
		</Type>
	</Dir>
</CodeChip>
