Author Topic: UIInput not support Encoding smilies  (Read 3043 times)

alexeyshevchenko

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 12
    • View Profile
UIInput not support Encoding smilies
« on: April 28, 2014, 11:37:01 AM »
Hi I create a chat.
I need support Encoding smilies.  :(
Is there such a possibility in NGUI UIInput? :-\ :-\


   protected void Init ()
   {
      if (mDoInit && label != null)
      {
         mDoInit = false;
         mDefaultText = label.text;
         mDefaultColor = label.color;
         label.supportEncoding = false;

         if (label.alignment == NGUIText.Alignment.Justified)
         {
            label.alignment = NGUIText.Alignment.Left;
            Debug.LogWarning("Input fields using labels with justified alignment are not supported at this time", this);
         }

         mPivot = label.pivot;
         mPosition = label.cachedTransform.localPosition.x;
         UpdateLabel();
            //label.text.Length
      }
   }

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: UIInput not support Encoding smilies
« Reply #1 on: April 29, 2014, 12:42:06 PM »
No, emoticons are intentionally disabled in the input fields. I will likely add support for this in the near future, but not right now.