public override void OnShow(object param) { base.OnShow(param); GameEvents.UIEvents.UI_Common_Event.OnCommonUIVisible.SafeInvoke(false); GameEvents.UIEvents.UI_Talk_Event.OnTalkChoose += EventChoose; this.m_btnNext.AddClickCallBack(BtnNextPart); this.m_bg_tex.AddClickCallBack(BtnNextPart); m_leftPartUI.Visible = false; m_rightPartUI.Visible = false; m_leftIcon.Visible = false; m_rightIcon.Visible = false; this.m_leftPngIcon.Visible = false; this.m_rightPngIcon.Visible = false; this.m_canNextPart = false; //MessageHandler.RegisterMessageHandler(MessageDefine.SCChatFinishResponse, OnRes); if (param != null) { TalkUIData ui_param = param as TalkUIData; m_talk_type = ui_param.m_talk_type; long id = ui_param.talk_id; InitData(id); //PreLoad(); } TimeModule.Instance.SetTimeout(() => { setPartData(); m_canNextPart = true; }, 0.4f); //TODO : 转移到 TalkUIHelper 里的 OnStartTalk //CSChatFinishRequest req = new CSChatFinishRequest(); //req.ChatId = m_talkdata.chatData.id; //GameEvents.NetWorkEvents.SendMsg.SafeInvoke(req); }
private static void OnStartTalkUI(long id, TalkDialogEnum talkEnum = TalkDialogEnum.SceneTalk) { TalkUIData talkUIData = new TalkUIData(); talkUIData.m_talk_type = talkEnum; talkUIData.talk_id = id; FrameMgr.OpenUIParams param = new FrameMgr.OpenUIParams(UIDefine.UI_SCENETALK); param.Param = talkUIData; EngineCoreEvents.UIEvent.ShowUIEventWithParam.SafeInvoke(param); }