GUI Issues in UT3B5

Hi Again,

I’m hoping someone can help because this little problem is driving me to distraction.

I’ve got a iPhone game which was designed for the iPhone 3. I wanted to make it a universal app and thought it a perfect time to try UT3 out as well, what with the resolution settings and profiles for the iPhone 4 and iPad. Everything has gone well a part from getting the GUI objects to look right. I made them resolution independent, which works fine as a PC project, and it looks right on the iPhone 3, however when I change the resolution in the editor the GUI is squashed. When I set it right for the iPhone 4 the iPhone 3 version looks stretched.

Is this an editor fault or do you have to do something else to get it right in both?

The GUI objects are circle buttons.

P.S. I don’t yet have an iPhone 4 or iPad to test on the actual devices.

the resolution of the preview window is large enough to actually hold an iphone4 game view in complete? otherwise that will cause the sqash.

also ensure to not switch the mode after starting the game unless your code updates the rects in update (bad idea cause in reality you won’t need it)

Yes the screen can hold it no problem, so don’t think it is to do with that. Desktop resolution set well above the iPhone one and using the maximize at play option.

I switch the view’s before playing the game, to make sure it looks right first. Tried using the remote and setting iPhone 4 on the 3GS I have but that just makes it to small to see anything.

Can you post the code you are using to get the resolution independence? (I’m thinking the part where you set up the GUI matrix, or an example of where you calculate screen-relative coordinates, etc.)