private void OnClickEmoticon(IUIObject obj) { base.SetChildForm(G_ID.EMOTICON_DLG); EmoticonDlg emoticonDlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.EMOTICON_DLG) as EmoticonDlg; if (emoticonDlg != null) { emoticonDlg.SetLocation(base.GetSizeX() + 1f, GUICamera.height - emoticonDlg.GetSizeY()); emoticonDlg.SetCharType(CHAT_TYPE.NORMAL); } }
private void OnClickEmoticon(IUIObject obj) { EmoticonDlg emoticonDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.EMOTICON_DLG) as EmoticonDlg; if (emoticonDlg != null) { emoticonDlg.DonotDepthChange(base.GetLocation().z - 8f); emoticonDlg.SetLocation(base.GetLocationX() + base.GetSizeX() - emoticonDlg.GetSizeX() - 1f, base.GetLocationY() + base.GetSizeY() - emoticonDlg.GetSizeY() - 65f); emoticonDlg.SetCharType(CHAT_TYPE.NORMAL); } }
private void OnClickEmoticon(IUIObject obj) { if (NrTSingleton <FormsManager> .Instance.IsShow(G_ID.EMOTICON_DLG)) { NrTSingleton <FormsManager> .Instance.CloseForm(G_ID.EMOTICON_DLG); base.InteractivePanel.twinFormID = G_ID.NONE; } else { EmoticonDlg emoticonDlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.EMOTICON_DLG) as EmoticonDlg; if (emoticonDlg != null) { emoticonDlg.SetLocation(base.GetLocation().x + base.GetSizeX() - emoticonDlg.GetSizeX() - 1f, base.GetLocationY() + base.GetSizeY() - emoticonDlg.GetSizeY() - 65f); emoticonDlg.SetCharType(CHAT_TYPE.NUM); base.InteractivePanel.twinFormID = G_ID.EMOTICON_DLG; } } }