切换步骤关闭UI
This commit is contained in:
parent
148a02ee99
commit
2f336701c5
@ -3,6 +3,8 @@ using UnityEngine.UI;
|
||||
using QFramework;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using static OperationController;
|
||||
using System;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -16,6 +18,12 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIBtnsData ?? new UIBtnsData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
|
||||
private void OnStepChanged(StepStatusOnChange change)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
|
||||
@ -3,6 +3,7 @@ using UnityEngine.UI;
|
||||
using QFramework;
|
||||
using DG.Tweening;
|
||||
using System.Runtime.CompilerServices;
|
||||
using static OperationController;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -20,8 +21,13 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIHintData ?? new UIHintData();
|
||||
SetItem(0);
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
|
||||
private void OnStepChanged(StepStatusOnChange change)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
mData = uiData as UIHintData ?? new UIHintData();
|
||||
|
||||
@ -2,6 +2,7 @@ using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using QFramework;
|
||||
using System.Collections.Generic;
|
||||
using static OperationController;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -16,6 +17,12 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIPointQuestionData ?? new UIPointQuestionData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
|
||||
private void OnStepChanged(StepStatusOnChange change)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
|
||||
@ -3,6 +3,7 @@ using UnityEngine.UI;
|
||||
using QFramework;
|
||||
using TMPro;
|
||||
using System;
|
||||
using static OperationController;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -19,8 +20,13 @@ namespace QFramework.Example
|
||||
mData = uiData as UIResultTipData ?? new UIResultTipData();
|
||||
Right.gameObject.SetActive(false);
|
||||
Wrong.gameObject.SetActive(false);
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
|
||||
private void OnStepChanged(StepStatusOnChange change)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
Right.gameObject.SetActive(false);
|
||||
|
||||
@ -6,6 +6,7 @@ using TMPro;
|
||||
using System;
|
||||
using Microsoft.SqlServer.Server;
|
||||
using XMLTool;
|
||||
using static OperationController;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -32,8 +33,13 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UITextQuestionData ?? new UITextQuestionData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
|
||||
private void OnStepChanged(StepStatusOnChange change)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
mData = uiData as UITextQuestionData ?? new UITextQuestionData();
|
||||
|
||||
@ -4,6 +4,7 @@ using QFramework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using static OperationController;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -24,6 +25,12 @@ namespace QFramework.Example
|
||||
mData = uiData as UITipWindowData ?? new UITipWindowData();
|
||||
// please add init code here
|
||||
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
|
||||
private void OnStepChanged(StepStatusOnChange change)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
|
||||
@ -5,6 +5,7 @@ using System.Collections.Generic;
|
||||
using TMPro;
|
||||
using System.Linq;
|
||||
using DG.Tweening;
|
||||
using static OperationController;
|
||||
|
||||
namespace QFramework.Example
|
||||
{
|
||||
@ -29,6 +30,12 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIToolsData ?? new UIToolsData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
|
||||
private void OnStepChanged(StepStatusOnChange change)
|
||||
{
|
||||
Hide();
|
||||
}
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user