修改接收通知的位置
This commit is contained in:
parent
d3d84d1380
commit
dc9802943b
@ -18,7 +18,6 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIBtnsData ?? new UIBtnsData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -29,6 +28,7 @@ namespace QFramework.Example
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
mData = uiData as UIBtnsData ?? new UIBtnsData();
|
||||
BtnContent.RemoveAllChildren();
|
||||
foreach (var item in mData.btns)
|
||||
|
||||
@ -22,7 +22,6 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIHintData ?? new UIHintData();
|
||||
SetItem(0);
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -32,6 +31,7 @@ namespace QFramework.Example
|
||||
}
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
mData = uiData as UIHintData ?? new UIHintData();
|
||||
if (curAction != null)
|
||||
{
|
||||
|
||||
@ -142,7 +142,6 @@ namespace QFramework.Example
|
||||
}
|
||||
protected override void OnClose()
|
||||
{
|
||||
TypeEventSystem.Global.UnRegister<StepStatusOnChange>(OnStepChanged);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -17,7 +17,6 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIPointQuestionData ?? new UIPointQuestionData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -28,6 +27,7 @@ namespace QFramework.Example
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
mData = uiData as UIPointQuestionData ?? new UIPointQuestionData();
|
||||
|
||||
Content.RemoveAllChildren();
|
||||
|
||||
@ -20,7 +20,6 @@ namespace QFramework.Example
|
||||
mData = uiData as UIResultTipData ?? new UIResultTipData();
|
||||
Right.gameObject.SetActive(false);
|
||||
Wrong.gameObject.SetActive(false);
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -30,6 +29,7 @@ namespace QFramework.Example
|
||||
}
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
Right.gameObject.SetActive(false);
|
||||
Wrong.gameObject.SetActive(false);
|
||||
mData = uiData as UIResultTipData ?? new UIResultTipData();
|
||||
|
||||
@ -34,7 +34,6 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UITextQuestionData ?? new UITextQuestionData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -44,6 +43,7 @@ namespace QFramework.Example
|
||||
}
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
mData = uiData as UITextQuestionData ?? new UITextQuestionData();
|
||||
Title.text = mData.title;
|
||||
OptionContent.transform.RemoveAllChildren();
|
||||
|
||||
@ -22,8 +22,6 @@ namespace QFramework.Example
|
||||
{
|
||||
|
||||
mData = uiData as UITextTipData ?? new UITextTipData();
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenGameObjectDestroyed(this);
|
||||
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -34,6 +32,7 @@ namespace QFramework.Example
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
mData = uiData as UITextTipData ?? new UITextTipData();
|
||||
Des.text = Regex.Replace(mData.text, @"\\n", "\n");
|
||||
BtnContent.RemoveAllChildren();
|
||||
|
||||
@ -27,7 +27,6 @@ namespace QFramework.Example
|
||||
mData = uiData as UITipWindowData ?? new UITipWindowData();
|
||||
// please add init code here
|
||||
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -39,6 +38,7 @@ namespace QFramework.Example
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
mData = uiData as UITipWindowData ?? new UITipWindowData();
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
Label.text = mData.txt;
|
||||
BtnContent.RemoveAllChildren();
|
||||
if (mData != null)
|
||||
|
||||
@ -30,7 +30,6 @@ namespace QFramework.Example
|
||||
{
|
||||
mData = uiData as UIToolsData ?? new UIToolsData();
|
||||
// please add init code here
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged);
|
||||
TypeEventSystem.Global.Register<OnModuleQuit>(OnModuleQuit).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||||
}
|
||||
|
||||
@ -41,6 +40,7 @@ namespace QFramework.Example
|
||||
|
||||
protected override void OnOpen(IUIData uiData = null)
|
||||
{
|
||||
TypeEventSystem.Global.Register<StepStatusOnChange>(OnStepChanged).UnRegisterWhenDisabled(gameObject);
|
||||
mResLoader = ResLoader.Allocate();
|
||||
mData = uiData as UIToolsData ?? new UIToolsData();
|
||||
if (string.IsNullOrEmpty(mData.answer) == false)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user