public override void OnActivate(int pinID) { switch (pinID) { case 10: if (!string.IsNullOrEmpty(this.parentName)) { this.parent = GameObject.Find(this.parentName); if (Object.op_Equality((Object)this.parent, (Object)null)) { DebugUtility.LogWarning("can not found gameObject:" + this.parentName); } } string text = LocalizedText.Get(this.Text); if (this.richTag) { text = LocalizedText.ReplaceTag(text); } string yesText = !string.IsNullOrEmpty(this.yesText) ? this.yesText : (string)null; string noText = !string.IsNullOrEmpty(this.noText) ? this.noText : (string)null; this.winGO = !string.IsNullOrEmpty(this.Title) ? UIUtility.ConfirmBoxTitle(LocalizedText.Get(this.Title), text, new UIUtility.DialogResultEvent(this.OnClickOK), new UIUtility.DialogResultEvent(this.OnClickCancel), this.parent, this.systemModal, this.systemModalPriority, yesText, noText) : UIUtility.ConfirmBox(text, new UIUtility.DialogResultEvent(this.OnClickOK), new UIUtility.DialogResultEvent(this.OnClickCancel), this.parent, this.systemModal, this.systemModalPriority, yesText, noText); if (Object.op_Inequality((Object)this.winGO, (Object)null) && this.unscaledTime) { Animator component = (Animator)this.winGO.GetComponent <Animator>(); if (Object.op_Inequality((Object)component, (Object)null)) { component.set_updateMode((AnimatorUpdateMode)2); } } this.ActivateOutputLinks(100); break; case 11: if (Object.op_Equality((Object)this.winGO, (Object)null)) { break; } if (string.IsNullOrEmpty(this.Title)) { Win_Btn_DecideCancel_FL_C btnDecideCancelFlC = !Object.op_Equality((Object)this.winGO, (Object)null) ? (Win_Btn_DecideCancel_FL_C)this.winGO.GetComponent <Win_Btn_DecideCancel_FL_C>() : (Win_Btn_DecideCancel_FL_C)null; this.winGO = (GameObject)null; if (Object.op_Inequality((Object)btnDecideCancelFlC, (Object)null)) { btnDecideCancelFlC.BeginClose(); } } else { Win_Btn_YN_Title_Flx winBtnYnTitleFlx = !Object.op_Equality((Object)this.winGO, (Object)null) ? (Win_Btn_YN_Title_Flx)this.winGO.GetComponent <Win_Btn_YN_Title_Flx>() : (Win_Btn_YN_Title_Flx)null; this.winGO = (GameObject)null; if (Object.op_Inequality((Object)winBtnYnTitleFlx, (Object)null)) { winBtnYnTitleFlx.BeginClose(); } } this.ActivateOutputLinks(101); break; } }
public override void OnActivate(int pinID) { switch (pinID) { case 10: if (!string.IsNullOrEmpty(this.parentName)) { this.parent = GameObject.Find(this.parentName); if (Object.op_Equality((Object)this.parent, (Object)null)) { DebugUtility.LogWarning("can not found gameObject:" + this.parentName); } } string str = LocalizedText.Get(this.Text); if (this.richTag) { str = LocalizedText.ReplaceTag(str); } this.winGO = UIUtility.SystemMessage(LocalizedText.Get(this.Caption), str, (UIUtility.DialogResultEvent)(go => { if (!Object.op_Inequality((Object)this.winGO, (Object)null)) { return; } this.winGO = (GameObject)null; this.ActivateOutputLinks(1); }), this.parent, this.systemModal, this.systemModalPriority); if (Object.op_Implicit((Object)this.winGO) && this.unscaledTime) { Animator component = (Animator)this.winGO.GetComponent <Animator>(); if (Object.op_Inequality((Object)component, (Object)null)) { component.set_updateMode((AnimatorUpdateMode)2); } } this.ActivateOutputLinks(100); break; case 11: if (Object.op_Equality((Object)this.winGO, (Object)null)) { break; } Win_Btn_Decide_Title_Flx btnDecideTitleFlx = !Object.op_Equality((Object)this.winGO, (Object)null) ? (Win_Btn_Decide_Title_Flx)this.winGO.GetComponent <Win_Btn_Decide_Title_Flx>() : (Win_Btn_Decide_Title_Flx)null; this.winGO = (GameObject)null; if (Object.op_Inequality((Object)btnDecideTitleFlx, (Object)null)) { btnDecideTitleFlx.BeginClose(); } this.ActivateOutputLinks(101); break; } }
public override void OnActivate(int pinID) { switch (pinID) { case 10: if (!string.IsNullOrEmpty(this.parentName)) { this.parent = GameObject.Find(this.parentName); if (Object.op_Equality((Object)this.parent, (Object)null)) { DebugUtility.LogWarning("can not found gameObject:" + this.parentName); } } string text = LocalizedText.Get(this.Text); if (this.richTag) { text = LocalizedText.ReplaceTag(text); } GameSettings instance = GameSettings.Instance; Canvas canvas = UIUtility.PushCanvas(this.systemModal, this.systemModalPriority); if (Object.op_Inequality((Object)this.parent, (Object)null)) { ((Component)canvas).get_transform().SetParent(this.parent.get_transform()); } this.m_Window = (Win_SysMessage_Flx)Object.Instantiate <Win_SysMessage_Flx>((M0)instance.Dialogs.SysMsgDialog); ((Component)this.m_Window).get_transform().SetParent(((Component)canvas).get_transform(), false); this.m_Window.Text_Message.set_text(text); this.m_Window.Initialize(this.input, this.bgAlpha); if (this.anim) { this.m_Window.StartAnim(); } if ((double)this.autoClose > 0.0) { this.m_Window.AutoClose(this.autoClose); } if (Object.op_Implicit((Object)this.m_Window) && this.unscaledTime) { Animator component = (Animator)((Component)this.m_Window).GetComponent <Animator>(); if (Object.op_Inequality((Object)component, (Object)null)) { component.set_updateMode((AnimatorUpdateMode)2); } } this.ActivateOutputLinks(100); break; case 11: if (Object.op_Equality((Object)this.m_Window, (Object)null)) { break; } if (Object.op_Inequality((Object)this.m_Window, (Object)null)) { this.m_Window.BeginClose(); this.m_Window = (Win_SysMessage_Flx)null; } this.ActivateOutputLinks(101); break; } }