public void OnSubmit() { if (textList != null) { string text = NGUITools.StripSymbols(mInput.value); // float test = 1/32; // Debug.Log(Mathf.CeilToInt(test)); // float.TryParse(text, out test); // // Debug.Log("test " + test + " " + Mathf.CeilToInt(test)); text = ChatInfoLogic.Instance().InsertLinkSymbols(text); string textCopy = text; if (ChatInfoLogic.Instance().GetCurChannelType() == (int)CG_CHAT.CHATTYPE.CHAT_TYPE_TELL) { textCopy = textCopy.Replace("/" + ChatInfoLogic.Instance().TellChatReceiverName + " ", ""); } else if (ChatInfoLogic.Instance().GetCurChannelType() == (int)CG_CHAT.CHATTYPE.CHAT_TYPE_FRIEND) { textCopy = textCopy.Replace("/" + ChatInfoLogic.Instance().FriendChatReceiverName + " ", ""); } if (!string.IsNullOrEmpty(textCopy)) { //int line; //textList.Add(text, out line); if (text.Length > 3 && PlatformHelper.IsEnableGM() && text.Substring(0, 2) == GameDefines.GMCMD_BEGINORDER) { if (text.Length > 6 && text.Substring(2, 5) == "showg") { ChatInfoLogic.Instance().ClearCurInput(); mInput.selected = false; ChatInfoLogic.Instance().OnCloseClick(); NewplayerGuidPartnerBd.OpenUI(); return; } else { Utils.SendGMCommand(text.Substring(2, text.Length - 2)); } } else { text = Utils.StrFilter_Chat(text); ChatHistoryItem item = new ChatHistoryItem(); item.CleanUp(); Utils.SendCGChatPak(text, item); } } ChatInfoLogic.Instance().ClearCurInput(); mInput.selected = false; } }
void OnNewPlayerBreedingGuaid() { NewplayerGuidPartnerBd.OpenUI(); if (MenuBarLogic.Instance()) { MenuBarLogic.Instance().CloseWindow(); } UIManager.CloseUI(UIInfo.PartnerFrameRoot); //OnCloseClick(); NewPlayerGuidLogic.m_ChangedCloseWindowTime = 0; //UIManager.ShowUI(UIInfo.NewPlayerGuidPartnerBdWindow); }
public static void NewPlayerGuideOpt(string strUIName, int nIndex) { if (PlayerPreferenceData.NewPlayerGuideClose) { return; } if (strUIName != "EquipRemindRoot") { CloseUI(); } // InitGuide(); // // if (false == m_NewPlayerGuideUI.ContainsKey(strUIName)) // { // return; // } switch (strUIName) { case "PlayerFrame": PlayerFrameUI(nIndex); break; case "SkillBar": SkillBarUI(nIndex); break; case "FunctionButton": FunctionButtonUI(nIndex); break; case "JoyStick": JoyStickUI(nIndex); break; case "EquipRemindRoot": EquipRemindUI(nIndex); break; case "NewItemGet": NewItemGetUI(nIndex); break; case "PlayerAimBar": //PlayerAimBarUI(nIndex); break; case "NewFunction": NewFunctionUI(nIndex); break; case "FellowBreeding": { NewplayerGuidPartnerBd.OpenUI(); } break; case "MissionDialogAndLeftTabs": MissionDialogAndLeftTabsGuide(nIndex); break; default: break; } }