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