Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Whelandrew

Pages: [1]
1
NGUI 3 Support / Dynamic line-drawing between objects
« on: June 16, 2014, 10:52:25 AM »
In my UI, there is an indicator circle that directs the users attention to a new feature in the scene. I am attempting to draw a line from the textbox of instructions to the circle highlighting the new feature. I have been trying to do this by drawing a 1x1 pixel line from one point to the other. I need the line to scale and rotate. Manually, I can make this work fine, but in code I cannot wrap my head around the process to get this working correctly. I could use any kind of direction, thanks!

2
NGUI 3 Support / Tweening a button stack in order
« on: June 12, 2014, 05:14:55 PM »
My UI is a vertical list of long buttons. When the user activates the one of the buttons, the buttons will tween so that there is a space for dialogue between the selected button and the button immediately below it. What I am trying to figure out is how to organize my tweens so that the buttons will slide up and down the stack with respect to which one the user selected.

ie. If the user selects number 4, then all buttons above it scroll up and the dialogue appears below. Then, if the user selects 2, the buttons need to tween so that 3&4 scroll back down but 2 remains where it is.

I've attached a tween and playTween to each of my button objects. I'm looking for a solution that will help decide which direction the buttons should go when one is selected.

Thanks!
I've attached a screen cap demonstrating the button layout

3
NGUI 3 Support / Upgrading bmp fonts to dynamic in Flash
« on: September 27, 2013, 07:04:33 PM »
My company has a Facebook game running that uses nGUI 2.5. I have upgraded to 2.7 and set all of the fonts to dynamic types.

Originally, there was no change to our Flash version of the game, but the fonts worked in our Web Player build.

Looking inside UIFont.cs I found this piece:
  1. #if !UNITY_3_5 && !UNITY_FLASH
  2. #define DYNAMIC_FONT
  3. #endif
  4.  

I removed && !UNITY_FLASH and the dynamic fonts have begun to load. However, I have run into these two issues:
1. The fonts are all suffering from a vertical displacement that draws the words slightly higher than center point.
2. At certain update cycles, the fonts u/v get changed and the fonts look garbled.

I know that Unity is pulling support from Flash. Does nGUI not support dynamic fonts in Flash?

Pages: [1]