UI Questions

What would be the recommended way to set up a multi screen UI?

What I settled on for right now, is a single group, with all the necessary assets loaded into the group, and offset into position. I then use transition.to calls to slide the single multi-page group around.

Is this an acceptable method? Or should I be using multiple groups?

The reason I settled on the above method is because using the transition.to calls to slide between multiple groups caused gaps in the background images. I want the backgrounds to slide as well as the rest of the controls, not slide the controls over a single background.

I also noticed when I built to the device, that all images in the folder were added and built into the app, rather than just the ones used by the app. Not a problem if that is expected behavior, I will remove un-necessary images before a final build.

mike hovland [import]uid: 5317 topic_id: 583 reply_id: 300583[/import]

Any clues on this from anyone?

I also need to switch between pages, but have used the following as a workaround (and I quite like it as it happens)

Create the page elements & group them. Add a button that moves to the next page. When clicking the button, create the elements of the new page & group them, then transition.dissolve between the 2 groups.

Looks quite good actually, and although it’s fine in this application, it will not always be so. You also end up with a lot of stuff on the page and I’m not sure if they hang around. I am creating each new page as a function with local variables, so hope they are destroyed when the function ends.

Cheers

Gary [import]uid: 4523 topic_id: 583 reply_id: 1181[/import]

Hi Shredder,

Don’t take my word as expert advice, it is probably far from, but I utilized a single group for my ‘pages’ in my gallery app, and I had a UI panel which scrolls in and out on tap in another nested group.

It worked well for me, particularly for the reason you mention, it was quick and easy to transition between pages.

regards,
Dave [import]uid: 3948 topic_id: 583 reply_id: 1195[/import]

I’m trying to wrap my head around this as I think some multiple pages scheme must be better than what I’m doing now, which is turning dialogs and buttons, etc. on/off, simulating multiple pages/tasks.

Are there any sampling available or some code that you can share, or simply some pseudo steps would help a great deal.

TIA - Heinz [import]uid: 6547 topic_id: 583 reply_id: 2859[/import]

I’m new to this too and from what I’ve seen in some of the code is the pages are created as separate groups which are moved (transitioned) on and off the viewable screen. I’m working on an app that simulates the way existing iPhone apps work (non-gaming apps) and that how I plan to implement multiple pages.

Does anyone have a better idea?

Tom [import]uid: 6119 topic_id: 583 reply_id: 2860[/import]

No better idea, just more questions :slight_smile:

Seems a button ‘inserted’ into a group shows and disappears when making a group visible/invisible but a native.newTextField does not. Is that the correct behaviour or am I missing something?

I.e. do all native.newTextField(s) have to be made visible inVisible individually?

Heinz [import]uid: 6547 topic_id: 583 reply_id: 2861[/import]

Hi Heinz,

yes… to my knowledge, all native elements have to be handled individually.

Michael Hartlef

http://www.whiteskygames.com
http://www.twitter.com/mhartlef [import]uid: 5712 topic_id: 583 reply_id: 2865[/import]