VirtualFramework/Doc/Xml配置文档.xml
2024-12-18 11:17:08 +08:00

183 lines
7.9 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<示例>
<!--顺序执行完毕-->
<Action type="Sequence"></Action>
<!--同时执行完毕-->
<Action type="Parallel"></Action>
<!--只要任意满足就结束这个动作组-->
<Action type="Any"></Action>
<!--打印日志-->
<Action type="Log" value="进入初始状态"></Action>
<!--显示UI value是UI的名字 isShow 是显示还是隐藏-->
<Action type="UIShow" value="UIOperationList" isShow="false"></Action>
<!--移动物体 time是多长时间移动到目标位置 0是瞬间完成-->
<Action type="Move" value="Main Camera" to="18.162,2.113,3.22" time="0"></Action>
<!--旋转物体 time是多长时间旋转到目标位置 0是瞬间完成-->
<Action type="Rotate" value="Main Camera" to="0,180,0" time="0"></Action>
<!--执行下一步左侧步骤列表 默认开始的时候为-1步 要主动调用一次才到第1步-->
<Action type="NextOperation"></Action>
<!--播放动画 reset=true则动画停在第一帧-->
<Action type="Anim" value="物体路径" animName="动画名字" reset="false"></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>
<!--文字弹窗 按钮可以多个 点击事件使用UIClick-->
<Action type="TextTip" value="这里是文字描述" audio="q001.mp3" btns="确定,取消"/>
<!--锁定镜头 value为是否锁定-->
<Action type="LockCamera" value="true" />
<!--播放视频 size为视频窗口大小 offset为窗口中心点偏移 播放完成事件和关闭事件 通常使用关闭事件即可
宽度不要小于500 否则进度条看不太清楚-->
<Action type="Video" value="test.mp4" size="500,500" offset="10,10" finishedEvent="finished" closeEvent="close"/>
<!--物体显隐 用于3D物体 isShow=true为显示 false为隐藏 UI的显隐使用UIShow-->
<Action type="Show" value="SM_QvanChangJing/sence/pPlane1" isShow="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>
<!--字符串类型的事件监听 UI中的事件监听都 也可以自定义事件监听-->
<Condition type="StrEvent" value="器械选择通过"></Condition>
<Module>
<!--场景名字-->
<Scene>Scene</Scene>
<!--Study学习模式 Exam实训模式 All都有-->
<Type>Study</Type>
<!--模块名字-->
<Name>模块1</Name>
<Device>
<Name>组织钳</Name>
<HighLight color="255,255,255"/>
<Path>SM_QvanChangJing/SM_JianZiLei/zuzhiqian</Path>
<Tip>组织钳</Tip>
<BoxCollider size="0.15,0.05,0.06" center="-0.03,0,0"/>
<!--MeshCollider和Box只需要一个-->
<MeshCollider/>
<Icon>工具/骨刀.png</Icon>
</Device>
<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>
</示例>