新增配置说明文档
This commit is contained in:
parent
1e322942c5
commit
72f4b85f75
159
Doc/Xml配置文档.xml
Normal file
159
Doc/Xml配置文档.xml
Normal file
@ -0,0 +1,159 @@
|
||||
<示例>
|
||||
<!--顺序执行完毕-->
|
||||
<Action type="Sequence"></Action>
|
||||
<!--同时执行完毕-->
|
||||
<Action type="Parallel"></Action>
|
||||
<!--只要任意满足就结束这个动作组-->
|
||||
<Action type="Any"></Action>
|
||||
<!--打印日志-->
|
||||
<Action type="Log" value="进入初始状态"></Action>
|
||||
<!--显示UI-->
|
||||
<Action type="UIShow" value="UIOperationList"></Action>
|
||||
<!--移动物体-->
|
||||
<Action type="Move" value="Main Camera" to="18.162,2.113,3.22" time="0"></Action>
|
||||
<!--旋转物体-->
|
||||
<Action type="Rotate" value="Main Camera" to="0,180,0" time="0"></Action>
|
||||
<!--执行下一步左侧步骤列表-->
|
||||
<Action type="NextOperation"></Action>
|
||||
<!--播放动画-->
|
||||
<Action type="Anim" value="物体路径" animName="动画名字"></Action>
|
||||
<!--右下角生成按钮 可生成多个 用逗号分开-->
|
||||
<Action type="Btns" value="按钮1,按钮2,按钮3"></Action>
|
||||
<!--用于右侧道具栏选择正确的道具 event用于配合StrEventCondition 做检测 -->
|
||||
<Action type="UITools" devices="道具名字" answers="正确道具"
|
||||
setActive="true"
|
||||
rightLabel="提示:器械选择正确。"
|
||||
wrongLabel="提示:器械选择错误,\r\n当前模块中,不需要该物品。"
|
||||
rightEvent=""
|
||||
wrongEvent=""/>
|
||||
<!--物体点位选择-->
|
||||
<Action type="PointQuestion" value="路径1,路径2"></Action>
|
||||
<!--文字选择题-->
|
||||
<Action type="TextQuestion" title="这里是标题" options="A.111|B.222|C.333|D.4444" answers="2" btns="确定,取消" wait="1" showAnswer="true"></Action>
|
||||
<!--提示 time为显示的时间 -1则一直显示 icon是前面的绿色图标是否显示 audio是音频 位于data文件夹下的Audio-->
|
||||
<Action type="Hint" value="这里是文字描述" time="5" icon="false" audio="音频.mp3"></Action>
|
||||
<!--设置变量 value只能是数字可以是小数-->
|
||||
<Action type="Var" name="变量名" value="1"></Action>
|
||||
<!--设置分数 与Score配合使用 步骤名字一定要是step+name-->
|
||||
<Action type="SetScore" name="步骤名字" value="1"></Action>
|
||||
<!--镜头切换 近距离和默认-->
|
||||
<Action type="CameraSwitch" nearPos="-3.942,3.24,-4.319" nearRot="16.42331,180,0" nearTime="1" normalPos="-3.942,3.24,-3.946" normalRot="16.42331,180,-5.305351E-14" farTime="1" isNear="false"></Action>
|
||||
|
||||
<!--判断UI点击-->
|
||||
<Condition type="UIClick" value="UI路径 可以使用快捷键Ctrl+Q获取"></Condition>
|
||||
<!--判断物体点击-->
|
||||
<Condition type="ObjClick" value="物体路径 可以使用快捷键Ctrl+Q获取"></Condition>
|
||||
<!--判断键盘输入-->
|
||||
<Condition type="Input" value="A"></Condition>
|
||||
<!--判断变量名i是否等于1-->
|
||||
<Condition type="Var" name="变量名" value="1"></Condition>
|
||||
<!--文字弹窗 按钮可以多个 点击事件使用UIClick-->
|
||||
<Action type="TextTip" value="这里是文字描述" audio="q001.mp3" btns="确定,取消"/>
|
||||
<Module>
|
||||
<!--场景名字-->
|
||||
<Scene>Scene</Scene>
|
||||
<!--Study学习模式 Exam实训模式 All都有-->
|
||||
<Type>Study</Type>
|
||||
<!--模块名字-->
|
||||
<Name>模块1</Name>
|
||||
|
||||
|
||||
<Score>
|
||||
<Item step="术前准备" name="器械准备" sum="6.5" bind=""/>
|
||||
<Item step="术前准备" name="药品准备" sum="5.5" bind=""/>
|
||||
<Item step="术前准备" name="耗材准备" sum="15.5" bind=""/>
|
||||
<Item step="术前准备" name="主刀人员准备" sum="10" bind=""/>
|
||||
<Item step="术前准备" name="手术动物准备" sum="10" bind=""/>
|
||||
<Item step="术前准备" name="术部剃毛准备" sum="10" bind=""/>
|
||||
<Item step="术前准备" name="术部消毒准备" sum="10" bind=""/>
|
||||
<Item step="手术过程" name="测试麻醉程度" sum="10" bind=""/>
|
||||
<Item step="手术过程" name="术部开刀" sum="10" bind=""/>
|
||||
<Item step="手术过程" name="找出病变小肠" sum="10" bind=""/>
|
||||
<Item step="手术过程" name="去除病变小肠" sum="10" bind=""/>
|
||||
<Item step="手术过程" name="肠端吻合" sum="10" bind=""/>
|
||||
<Item step="手术过程" name="缝合切口" sum="10" bind=""/>
|
||||
<Item step="手术过程" name="缝合后处理" sum="10" bind=""/>
|
||||
</Score>
|
||||
|
||||
|
||||
<!--步骤操作 相同的moduleType 仅支持一个-->
|
||||
<Operation moduleType="Exam">
|
||||
<Step name="术前准备">
|
||||
<Step name="器械准备">
|
||||
<Reset>
|
||||
<Action type="Log" value="1-1步重置"></Action>
|
||||
</Reset>
|
||||
<Start>
|
||||
<Action type="Sequence">
|
||||
<Action type="Log" value="1111"></Action>
|
||||
<Action type="Move" value="Main Camera" to="-3.206,3.24,-1.425" time="0"></Action>
|
||||
<Action type="Rotate" value="Main Camera" to="27.9597,270,2.899792E-06" time="0"></Action>
|
||||
<Action type="Btns" value="下一步"></Action>
|
||||
<Condition type="UIClick" value="UIRoot/Common/UIBtns/BtnContent/下一步"></Condition>
|
||||
<Action type="NextOperation"></Action>
|
||||
</Action>
|
||||
</Start>
|
||||
</Step>
|
||||
</Step>
|
||||
</Operation>
|
||||
|
||||
|
||||
<!--动作组-->
|
||||
<Action name="初始化" type="Sequence">
|
||||
<Action type="Log" value="开始"></Action>
|
||||
<Action type="UIShow" value="UIRightTop"></Action>
|
||||
<Action type="Delay" value="2"></Action>
|
||||
<Condition type="UIClick" value="UIRoot/Common/UIModeSelect/Exam"></Condition>
|
||||
<Action type="Log" value="0000"></Action>
|
||||
<Action type="Parallel">
|
||||
<Action type="Log" value="11111"></Action>
|
||||
<Action type="Delay" value="2"></Action>
|
||||
<Action type="Log" value="22222"></Action>
|
||||
</Action>
|
||||
<Condition type="And">
|
||||
<Condition type="ObjClick" value="Cube"></Condition>
|
||||
</Condition>
|
||||
<Action type="Log" value="并行结束"></Action>
|
||||
<Action type="Delay" value="5"></Action>
|
||||
<Action type="Sequence">
|
||||
<Condition type="Or">
|
||||
<Condition type="ObjClick" value="Cube"></Condition>
|
||||
<Condition type="ObjClick" value="Cube (1)"></Condition>
|
||||
</Condition>
|
||||
<Action type="Log" value="aaaaa"></Action>
|
||||
<Action type="Delay" value="5"></Action>
|
||||
<Action type="Log" value="bbbbb"></Action>
|
||||
</Action>
|
||||
<Action type="Log" value="结束"></Action>
|
||||
</Action>
|
||||
|
||||
|
||||
<!--状态机-->
|
||||
<FSM>
|
||||
<State name="状态2">
|
||||
<Enter>
|
||||
<Action type="Sequence">
|
||||
<Action type="Log" value="aaa"></Action>
|
||||
<Action type="Delay" value="2"></Action>
|
||||
<Action type="Log" value="bbb"></Action>
|
||||
</Action>
|
||||
</Enter>
|
||||
<Exit>
|
||||
<Action type="Parallel">
|
||||
<Action type="Log" value="ccc"></Action>
|
||||
<Action type="Delay" value="2"></Action>
|
||||
<Action type="Log" value="ddd"></Action>
|
||||
</Action>
|
||||
</Exit>
|
||||
</State>-->
|
||||
<Transision from="any" to="状态1">
|
||||
<Condition type="ObjClick" value="Cube"></Condition>
|
||||
</Transision>
|
||||
<Transision from="初始状态" to="状态2">
|
||||
<Condition type="ObjClick" value="Cube (1)"></Condition>
|
||||
</Transision>
|
||||
</FSM>
|
||||
|
||||
</Module>
|
||||
|
||||
</示例>
|
||||
Loading…
x
Reference in New Issue
Block a user