Game Development Community

GUI resources / tutorials? My GUI doesn't scale right. :(

by Joe O · in iTorque 2D · 04/22/2011 (6:53 pm) · 3 replies

I must be doing something wrong. When I load my gui via setContent or pushDialog my button consumes the entire screen. Can anyone point me in the right direction?

#1
04/22/2011 (8:20 pm)
So... nothing to see here.

I was doing Canvas.pushDialog( startGame );

Turns out startGame was the name of my button. Ooops. One thing that I've figured out after a bit of using the gui builder is you have to be explicit about what you click on before you start typing things in the attribute editor!

I did not realize this early on and must have never gone back to fix that bit - hehe ;)
#3
04/22/2011 (8:24 pm)
Two minutes too late! haha ^_^'