Author Topic: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1  (Read 16415 times)

chiuan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 6
  • Posts: 11
    • View Profile
【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« on: May 14, 2013, 05:07:27 AM »
 :)hey guys,i have make emoticon supported for dynamic font.
here is pic,please take a look.



and here are packages,install those with NGUI2.6.1.
for more details,I will update later.... ;)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #1 on: May 14, 2013, 06:46:54 AM »
Nice, thanks for sharing!

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #2 on: May 14, 2013, 12:31:00 PM »
Awesome. Great work.

dlewis

  • Guest
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #3 on: May 14, 2013, 09:15:56 PM »
Awesome, this is EXACTLY what I need right now.

Thanks!
« Last Edit: May 14, 2013, 09:51:52 PM by dlewis »

PabloAM

  • Jr. Member
  • **
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 58
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #4 on: May 15, 2013, 04:47:16 AM »
Thank you very much Chiuan :)

dlewis

  • Guest
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #5 on: May 15, 2013, 09:05:15 PM »
Uh oh, the package breaks clipping D:

If anyone has a solution to get clipping working please post, desperately need it (Investigating myself as well).

Edit: I seem to have fixed it with no problems (from what I can see). All I did was modify one line in UIFont

Line 163 (Previously pointed to a different shader)
  1. mDynamicFont.material.shader = Shader.Find("Unlit/Dynamic Font");
« Last Edit: May 15, 2013, 11:02:35 PM by dlewis »

chiuan

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 6
  • Posts: 11
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #6 on: May 16, 2013, 01:43:05 AM »
Uh oh, the package breaks clipping D:

If anyone has a solution to get clipping working please post, desperately need it (Investigating myself as well).

Edit: I seem to have fixed it with no problems (from what I can see). All I did was modify one line in UIFont

Line 163 (Previously pointed to a different shader)
  1. mDynamicFont.material.shader = Shader.Find("Unlit/Dynamic Font");

 :) i have changed this dynamic Font shader.

PS:i have fixed bug,when the label pivot == TopRight,the emoji sprite will not position right..please use those two new SCRIPTS.

dlewis

  • Guest
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #7 on: May 16, 2013, 02:00:52 AM »
:) i have changed this dynamic Font shader.

I can see that, but using your shader results in the clipping breaking. When it draws it attempts to find the new shader based off the clipping type and if it can't find it then it turns off the clipping. To get the clipping working with your shader you need to comment out the stuff where it attempts to find a new shader (I only just tried that and it also made the clipping work)

Would you be able to give me a quick run down of how to do this? I can't seem to get it working correctly (new sprites)
« Last Edit: May 16, 2013, 05:26:23 AM by dlewis »

Ferazel

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 2
  • Posts: 150
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #8 on: June 24, 2013, 01:16:42 PM »
Are there any plans on integrating this into NGUI proper?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #9 on: June 25, 2013, 01:24:49 PM »
I pretty much never add community contributions as-is. I prefer to write them myself so that they fit into the whole better. I will add built-in support for emoticons in the dynamic font in the future.

broken

  • Full Member
  • ***
  • Thank You
  • -Given: 1
  • -Receive: 4
  • Posts: 140
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #10 on: July 31, 2013, 07:39:45 AM »
I pretty much never add community contributions as-is. I prefer to write them myself so that they fit into the whole better. I will add built-in support for emoticons in the dynamic font in the future.

It would be great, Aren, if you added a similar function in 2.6.4.
Thanks.

jjchoio

  • Guest
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #11 on: October 14, 2013, 04:10:23 PM »
im new to NGUI, and I would love to know how to use this!! sorry for newbie question..

kakapro

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 1
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #12 on: October 26, 2013, 05:40:43 AM »
Thanks a lot! It's work well on NGUI 2.6.1.
But when I upgraded to NGUI 3.0.1 it went wrong. I tried to fix those errors but no luck. Pls upgrade this plugin to NGUI 3.0.1.
Thanks in advance :)

AGB

  • Jr. Member
  • **
  • Thank You
  • -Given: 0
  • -Receive: 1
  • Posts: 74
    • View Profile
    • Steam Defense
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #13 on: December 30, 2013, 02:42:48 AM »
No news for DynamicFont Emoticons for Ngui 3?  :'(
I'm a busy man... I have places to go,monsters to kill...

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: 【Emoji】DynamicFont - Emoticons for NGUI >= 2.6.1
« Reply #14 on: December 30, 2013, 01:08:00 PM »
To create emoticons in dynamic fonts, I need to make it possible for widgets to support multiple materials instead of just one. This is a major change that requires a significant rewrite of how NGUI works, and is not something to be taken lightly. Earliest realistic ETA is 3.1.0.