Author Topic: Emoticons Don't Work With UIInput  (Read 2596 times)

knguyen

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Emoticons Don't Work With UIInput
« on: July 31, 2014, 01:39:54 AM »
Hey all,

I've implemented some custom "emoticons" (in my case they are just arrow icons pointing in the four directions). These correspond to the keys "<", ">", "{", "}" (I mapped the up and down arrows to the brackets). Everything shows up fine when I modify the label of the UIInput before hitting play.

I read another post that had said that emoticons were disabled on purpose for UIInput. However, I need/want this to work, so can I work around this? I want the users to be able to type in "<", ">" and have the correct arrow emoticon appear, and also have the ability to delete them just like regular characters.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Emoticons Don't Work With UIInput
« Reply #1 on: July 31, 2014, 11:09:21 AM »
You can comment out line 442 of UIInput.cs that forces label.supportEncoding to be 'false', but beware that unless your symbols are always 1 character and happen to match the width of the character, some things will be "off".