private void OnGotIMEDialogResult(Messages.PluginMessage msg)
 {
     Ime.ImeDialogResult result = Ime.GetResult();
     if (result.result == Ime.EnumImeDialogResult.RESULT_OK)
     {
         string text = result.text;
         if (Utils.ChkNGWard(text) || Utils.ChkNGWard(result.text))
         {
             text = string.Empty;
             _animFeather.Play();
         }
         _strEditName       = text;
         _uiNameInput.value = _strEditName;
     }
 }
Exemple #2
0
 private void OnGotIMEDialogResult(Messages.PluginMessage msg)
 {
     Ime.ImeDialogResult result = Ime.GetResult();
     if (result.result == null)
     {
         string text = result.get_text();
         if (Utils.ChkNGWard(text) || Utils.ChkNGWard(result.get_text()))
         {
             text = string.Empty;
             this._animFeather.Play();
         }
         this._strEditName       = text;
         this._uiNameInput.value = this._strEditName;
     }
 }
Exemple #3
0
 protected void OnGotIMEDialogResult(Messages.PluginMessage msg)
 {
     Ime.OnGotIMEDialogResult -= OnGotIMEDialogResult;
     Ime.ImeDialogResult result = Ime.GetResult();
     DebugUtils.SLog("OnGotIMEDialogResult2");
     DebugUtils.SLog("OnGotIMEDialogResult3");
     if (result.result == Ime.EnumImeDialogResult.RESULT_OK)
     {
         DebugUtils.SLog("OnGotIMEDialogResult4");
         DebugUtils.SLog("★ IME から得た名前: result.text: " + result.text);
         DebugUtils.SLog("   名前の長さ:result.text.Length: " + result.text.Length);
         DebugUtils.SLog("OnGotIMEDialogResult5");
         mEditName            = result.text;
         _fleetNameLabel.text = mEditName;
         DebugUtils.SLog("OnGotIMEDialogResult6");
         OrganizeTaskManager.Instance.GetLogicManager().ChangeDeckName(GetDeckID(), result.text);
         DebugUtils.SLog("OnGotIMEDialogResult7");
     }
     DebugUtils.SLog("OnGotIMEDialogResult8");
     App.OnlyController  = null;
     KeyController.IsRun = true;
     SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(isEnable : false);
 }
 protected void OnGotIMEDialogResult(Messages.PluginMessage msg)
 {
     Ime.remove_OnGotIMEDialogResult(new Messages.EventHandler(this.OnGotIMEDialogResult));
     Ime.ImeDialogResult result = Ime.GetResult();
     DebugUtils.SLog("OnGotIMEDialogResult2");
     DebugUtils.SLog("OnGotIMEDialogResult3");
     if (result.result == null)
     {
         DebugUtils.SLog("OnGotIMEDialogResult4");
         DebugUtils.SLog("★ IME から得た名前: result.text: " + result.get_text());
         DebugUtils.SLog("   名前の長さ:result.text.Length: " + result.get_text().get_Length());
         DebugUtils.SLog("OnGotIMEDialogResult5");
         this.mEditName            = result.get_text();
         this._fleetNameLabel.text = this.mEditName;
         DebugUtils.SLog("OnGotIMEDialogResult6");
         OrganizeTaskManager.Instance.GetLogicManager().ChangeDeckName(this.GetDeckID(), result.get_text());
         DebugUtils.SLog("OnGotIMEDialogResult7");
     }
     DebugUtils.SLog("OnGotIMEDialogResult8");
     App.OnlyController = null;
     TaskOrganizeTop.KeyController.IsRun = true;
     SingletonMonoBehaviour <UIShortCutMenu> .Instance.LockTouchControl(false);
 }