Merge remote-tracking branch 'origin/master' into LouDi_Pig
This commit is contained in:
commit
a719783429
@ -141,11 +141,15 @@ namespace XMLTool
|
|||||||
|
|
||||||
// 解析预加载动作
|
// 解析预加载动作
|
||||||
var preLoadElement = appDataElement.Element("PreLoad");
|
var preLoadElement = appDataElement.Element("PreLoad");
|
||||||
|
if (preLoadElement!=null)
|
||||||
|
{
|
||||||
foreach (XElement actionElement in preLoadElement.Elements("Action"))
|
foreach (XElement actionElement in preLoadElement.Elements("Action"))
|
||||||
{
|
{
|
||||||
var action = ParseAction(actionElement);
|
var action = ParseAction(actionElement);
|
||||||
appData.preLoad.action = action;
|
appData.preLoad.action = action;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// 加载模块数据
|
// 加载模块数据
|
||||||
LoadModules(appDataElement, appData);
|
LoadModules(appDataElement, appData);
|
||||||
|
|||||||
@ -74,6 +74,17 @@
|
|||||||
<Condition type="Var" name="变量名" value="1"></Condition>
|
<Condition type="Var" name="变量名" value="1"></Condition>
|
||||||
<!--字符串类型的事件监听 UI中的事件监听都 也可以自定义事件监听-->
|
<!--字符串类型的事件监听 UI中的事件监听都 也可以自定义事件监听-->
|
||||||
<Condition type="StrEvent" value="器械选择通过"></Condition>
|
<Condition type="StrEvent" value="器械选择通过"></Condition>
|
||||||
|
|
||||||
|
|
||||||
|
<!--预加载模块 要在app.xml的Data标签内-->
|
||||||
|
<PreLoad>
|
||||||
|
<Action type="Parallel">
|
||||||
|
<Action type="LoadRes" value="Pig.xml" resType="xml"></Action>
|
||||||
|
</Action>
|
||||||
|
</PreLoad>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<Module>
|
<Module>
|
||||||
<!--场景名字-->
|
<!--场景名字-->
|
||||||
<Scene>Scene</Scene>
|
<Scene>Scene</Scene>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user