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

Pages: [1]
1
So I was thinking, an iPhone5 has a resolution of 640 in the dimension I'm using for height, and my sliced sprite is using 58px square corners. So it should be taking up about 8.5% of the screen height. It looks more like it's taking up 20%, and in the editor it looks more like 4% so I'm not sure if there is actually a problem with the way the sprite is created.

2
I apologize if this was asked already, I did a search and couldn't find a similar question.

I have a sliced sprite that looks like this (I don't know how to embed in this editor, image "SlicedSprite.png")

and in the editor it looks exactly how I want using anchors relative to the UIRoot ("inEditor.png")

but on iPhone5 the sliced sprite is scaled up and looks like the picture "iPhone5.png"

I have tried a number of different settings, but nothing seems to fix it, so anything else I can try would be helpful. Unfortunately I have to deploy every time to see if it worked, and iOS is such a pain in the ass that I have to upload it to testflight or else it can't deploy to this phone. But that is a rant for a different day.




3
NGUI 3 Support / Example 5 - Invalid Font error
« on: March 14, 2013, 05:27:58 PM »
I couldn't find another post about this issue, and I haven't looked too closely to see why I'm getting this error.

It's saying the font is Invalid in this example, so no text shows up on the screen.  Maybe something is wrong with my Refractive Font, it looks 'ok' from what I can tell.

4
NGUI 3 Support / Re: Problem with UIAnchor to Top Left
« on: May 29, 2012, 06:22:02 PM »
And then set the relative offset back to 0.

Thanks that worked perfectly.

5
NGUI 3 Support / Problem with UIAnchor to Top Left
« on: May 29, 2012, 05:45:16 PM »
I only started using NGUI yesterday and I tried to add a SlicedSprite and a Label to a panel and anchor that panel to the top left of the screen.  I can get it to look fine in a specific window size, but if I resize the window the panel does not stay the right distance from the edge, and can easily go off the screen.

I've tried this a few different ways, but settled on having the Anchor set to TopLeft, the RelativeOffset set to x=0.14 and y=-0.05; The panel, SlicedSprite, and Label have 0,0,0 position/rotation with only scale set.  I've tried with the UIRoot set Automatic on and off, with different results but the same bug.

Is there something I'm doing wrong?

What I want is to always have the UI a set distance from the edge, regardless of the size of device it is used on.

I took some screen shots to explain myself a bit better

Pages: [1]