Author Topic: NGUI: HUD Text  (Read 164000 times)

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: NGUI: HUD Text
« Reply #135 on: October 03, 2013, 04:48:36 AM »
You need to update HUDText as well, not just NGUI.

droweed

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 16
    • View Profile
Re: NGUI: HUD Text
« Reply #136 on: October 03, 2013, 04:51:18 AM »
I'm using HUDText 1.7 the latest version, I've just re-imported it and it fixed it self, weird, thanks for the fast feedback :)

sberghici

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 26
    • View Profile
Re: NGUI: HUD Text
« Reply #137 on: October 08, 2013, 06:07:45 AM »
Is it possible to show text in different colours? For instance I need to show message like this:
Player1(in yellow) killed Player2(in red)
To make "2" looks like "1"

« Last Edit: October 08, 2013, 11:03:25 AM by sberghici »

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: NGUI: HUD Text
« Reply #138 on: October 08, 2013, 11:17:22 AM »
Yup. Just use the standard color encoding like so: "[ff0000]Red[-] and [00ff00]Green[-]".

greenland

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 8
    • View Profile
Re: NGUI: HUD Text
« Reply #139 on: October 15, 2013, 05:17:02 PM »
:(

I have an issue regarding HUDText, I just updated NGUI to 3.0.1 and hudtext suddenly borked on me.. the issue is that the font is all blown out.. heres a screenshot

Update: I've fiddled on the issue, and my current work around is settings its scale lower than usual, the defaul is 1, and set it to around .1 or so, kinda weird that it appeared normally before the update

I have(had) the exact same problem, and applied the same fix. Weird. I updated both but I guess it was using a cached compiled version or something? maybe?.. Also ran into a weird bug where the asset would not offer the option to import, just download over and over, until restarting unity... Who knows. :o

mikez69

  • Guest
Re: NGUI: HUD Text
« Reply #140 on: October 17, 2013, 09:23:42 AM »
Hi There

This is my first post so be gentle!  I searched the forum but the results came back empty.

I just installed both NGUI and HUD Text and opened the sample scenes and in both cases the text is almost undetectable small.  I am not sure what would cause that but I will attach a screenshot...unfortunately it might be hard to make sense out of that too.

Any insight on this would be greatly appreciated!

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: NGUI: HUD Text
« Reply #141 on: October 18, 2013, 01:09:08 PM »
Which versions? You need to use the latest version of both. By the looks of it you're using an old version of NGUI and a new version of HUDText.

mikez69

  • Guest
Re: NGUI: HUD Text
« Reply #142 on: October 24, 2013, 04:00:45 PM »
That is correct I was one version behind.  All upgraded and looking great!

Deepestblue

  • Guest
Re: NGUI: HUD Text
« Reply #143 on: October 28, 2013, 03:23:03 PM »
Hi there,

just wondering: are there any plans to incorporate direct TTF fonts usage in Hud Text as you did in NGUI 3.0?

Thanks.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: NGUI: HUD Text
« Reply #144 on: October 28, 2013, 11:34:05 PM »
I will do it at some point, yes. I just released 3.0.3, it will take some time. :)

quentinp

  • Guest
Re: NGUI: HUD Text
« Reply #145 on: October 31, 2013, 10:16:40 AM »
Just noticed this forum for "other", had posted my problem under NGUI forum:

I have a game with MP splitscreen so there are multiple cameras, and the viewports are different.  UIFollowTarget doesn't seem to handle this properly.

In this pic, the green tank's UI is offset from the green tank - the correct camera is set on UIFollow (verified in the inspector).  Works fine with a single camera, full screen setup:




ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: NGUI: HUD Text
« Reply #146 on: November 01, 2013, 11:21:15 AM »
UIFollowTarget was written with one camera in mind. In your case you have to take the camera's view rect into consideration.

Cizia

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 0
  • Posts: 14
    • View Profile
Re: NGUI: HUD Text
« Reply #147 on: November 07, 2013, 09:59:58 AM »
Hi there,

just wondering: are there any plans to incorporate direct TTF fonts usage in Hud Text as you did in NGUI 3.0?

Thanks.

+ 1

By the way, a BIG BIG THANKS Aren for your last update on NGUI, all my problems and boring stuff with the fonts are behind me. Now everything looks perfect.

Great work.

Cizia

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,154
  • Toronto, Canada
    • View Profile
Re: NGUI: HUD Text
« Reply #148 on: November 08, 2013, 11:08:57 AM »
Ah yes, thanks for reminding me. I'll do it, but likely not until a week from now or so. Next week is Hack Week in Unity here, so I'll be mostly unavailable.

droweed

  • Newbie
  • *
  • Thank You
  • -Given: 1
  • -Receive: 1
  • Posts: 16
    • View Profile
Re: NGUI: HUD Text
« Reply #149 on: November 13, 2013, 08:09:13 AM »
I'd like to ask the developer if its possible to implement this scenario, where I'd like all of the hudtexts to be left aligned instead of centered.

cause I'd like to implement it like Warcrafts quest log thingie on the left side.