Author Topic: HUDText question (wanting to purchase finding out more)  (Read 4887 times)

codejoy

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 10
    • View Profile
HUDText question (wanting to purchase finding out more)
« on: April 15, 2015, 04:56:57 PM »
I have NGUI and I saw this HUDText and I am thinking bout springing the 20$.  what I really need is a good way to give characters dialog and I see it can do that.    It looks relatively easy to set up...I couldnt' tell but I think it can use different kinds of fonts? ttf?  can it do the 2d toolkit kinds of fonts?  What I really would be looking for is to use this in conjuction with some way of doing text bubbles for a 8bit res kind of a game where the text bubbles pop up near a character complete with low res text bubble graphic and a nice ttf font that fits the theme I found.  if it can do this I am getting this( even if I have to somehow finagle the 2d text bubble graphic to match the hudtext, no clue yet how id do that.)

I guess real fast too, if the camera zooms in and out does the text scale accordingly?
(probably what I am asking is it it real world coordinates?)

Thanks for any info to help deciding if this will work for me in my project.

Shane

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: HUDText question (wanting to purchase finding out more)
« Reply #1 on: April 16, 2015, 08:16:34 AM »
HUDText is an NGUI extension, so it will work with an NGUI label. NGUI labels can use dynamic fonts or bitmap fonts, and you can make them look pixelated if desired by using an appropriate font.

That said, HUDText displays text, not speech bubbles. While you can certainly add a bubble around the text by using NGUI's existing functionality such as the EnvelopContent script or simply using anchoring, you would need to modify HUDText to attach background widgets to each label if you were to go that route.

The text will scale if you use a 3D UI or adjust the ortho camera's size -- but keep in mind you will lose crispness when doing so. It's best used with a flexible style 2D UI.