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 - jacksmash

Pages: [1]
1
NGUI 3 Support / Re: Move UITexture around screen with mouse
« on: December 08, 2014, 07:48:32 PM »
Apologies. Missed that. All good now.

2
NGUI 3 Support / Re: Move UITexture around screen with mouse
« on: December 04, 2014, 07:06:54 PM »
Is there a way to have the drag script maintain the aspect ratio of the widget being resized?

3
NGUI 3 Support / Re: Move UITexture around screen with mouse
« on: December 01, 2014, 07:36:31 PM »
Thanks! Dragging works great! I'm missing the resize script so I must need to update my NGUI package :)

4
NGUI 3 Support / Move UITexture around screen with mouse
« on: November 24, 2014, 07:59:26 PM »
I have a UITexture using the DownloadTexture script to get the image. This works fine, but I'd like to allow the user to resize the texture with the mouse and also drag it around the screen. What is the best approach to this?

5
NGUI 3 Support / strategies for designing UI in portrait mode
« on: March 13, 2013, 07:22:38 AM »
Just wondering if anyone has any lessons learned or tips about this?

I'm creating an app in landscape mode, but one of the scenes is in portrait.

The "Game" view's mode is "iPhone 4 Wide" (or similar) to be consistent with the other scenes and since the app is really in landscape mode anyhow. But this makes things a bit confusing since I need to rotate the UI elements by 270. The other thing I find confusing is that the Panel (purple outline) looks like it is in landscape as well, and so that throws me off (I must be missing something here EDIT: the purple outline changes based on what game mode I'm in... just discovered that!).

Is it better to just design in portrait mode, and then when I'm done, rotate the entire thing by 270?

Anyhow, I can make things work. No troubles there. I'm just looking for an approach that will cause the fewest headaches and look forward to any insights anyone may have to share.

Thanks!

6
NGUI 3 Support / Re: button collisions not working
« on: March 12, 2013, 09:25:29 AM »
I found that I had the event receiver mask set incorrectly on the UICamera. All good now.

7
NGUI 3 Support / button collisions not working
« on: March 12, 2013, 09:21:10 AM »
I have to admit that I don't know what I've done here, but none of the buttons in my scene are registering click events.

I have a simple bar at the top of the scene with a back button on it. The button has a collider on it. It's on the NGUI layer and is being drawn properly. It has the UIButton script attached to it. The size of the collider is a bit larger than the button.

Anyways, I'm sure I'm just missing something simple... but appreciate any suggestions.

8
NGUI 3 Support / Re: Two scenes: one in landscape and one in portrait
« on: March 11, 2013, 01:52:23 PM »
Ignore this. I'm just rotating the UI elements and using anchors, and it seems to work fine.

9
NGUI 3 Support / Two scenes: one in landscape and one in portrait
« on: March 11, 2013, 01:11:53 PM »
I have an unusual situation where my main menu scene is in landscape mode, but it launches a scene that is in portrait. In other words, I will be forcing the user to rotate the phone when he launches the 2nd scene (this is out of my control, sorry).

Designing the (landscape) main menu was pretty straightforward.

It seems to me that I will need to design the (portrait) UI as I would any scene, and then rotate the entire (portrait) UI by 90 degrees. I'm not sure if that is really a good approach... or if there is something simple that I'm missing.

Thanks for any suggestions.

Pages: [1]