增加选择题等待事件
This commit is contained in:
parent
cc1f9e7498
commit
47aa1e8269
@ -22,6 +22,7 @@ namespace QFramework.Example
|
|||||||
public float errorScore = 0;
|
public float errorScore = 0;
|
||||||
public string scoreName = string.Empty;
|
public string scoreName = string.Empty;
|
||||||
public string format;
|
public string format;
|
||||||
|
public string finishedEvent;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绝对的 不计算分项得分 对就得分 错就不得分
|
/// 绝对的 不计算分项得分 对就得分 错就不得分
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -105,17 +106,26 @@ namespace QFramework.Example
|
|||||||
if (mData.waitCloseTime != -1)
|
if (mData.waitCloseTime != -1)
|
||||||
{
|
{
|
||||||
|
|
||||||
ActionKit.Delay(mData.waitCloseTime, () => Hide()).Start(this);
|
ActionKit.Delay(mData.waitCloseTime, () => HideSelf()).Start(this);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Hide();
|
HideSelf();
|
||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public void HideSelf()
|
||||||
|
{
|
||||||
|
if (string.IsNullOrEmpty(mData.finishedEvent) == false)
|
||||||
|
{
|
||||||
|
StringEventSystem.Global.Send(mData.finishedEvent);
|
||||||
|
}
|
||||||
|
Hide();
|
||||||
|
}
|
||||||
|
|
||||||
public void Check(bool isRight, Action<int> callback)
|
public void Check(bool isRight, Action<int> callback)
|
||||||
{
|
{
|
||||||
int count = 0;
|
int count = 0;
|
||||||
|
|||||||
@ -522,6 +522,11 @@ namespace XMLTool
|
|||||||
{
|
{
|
||||||
act.args.Add("format", format.Value);
|
act.args.Add("format", format.Value);
|
||||||
}
|
}
|
||||||
|
XAttribute finishedEvent = action.Attribute("finishedEvent");
|
||||||
|
if (finishedEvent != null)
|
||||||
|
{
|
||||||
|
act.args.Add("finishedEvent", finishedEvent.Value);
|
||||||
|
}
|
||||||
newAction = act;
|
newAction = act;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user