Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: jeldrez on May 30, 2013, 11:57:58 AM

Title: Game Store versions for iPhone and iPad
Post by: jeldrez on May 30, 2013, 11:57:58 AM
Hey, I was looking Clash of Clans and they've 2 versions of store depending if you're in iPhone or iPad
This should be done with a UIGrid, changing the lenght of the grid depending on the device you're using?



  1. if(IPhone.generation == iPhoneGeneration.iPhone)
  2. {
  3.         // Change UIGrid > maxPerLine = 0
  4. }


(http://www.pocketgamer.biz/FCKEditorFiles//ipad-supercell-clash-of-clans_iap(1).jpg)
(http://3.bp.blogspot.com/-ZdOPbyoNDVU/UOSIl1lOFCI/AAAAAAAAAMw/saPIz3H3GiI/s1600/clash+of+clans+gems.png)
Title: Re: Game Store versions for iPhone and iPad
Post by: Nicki on May 30, 2013, 03:36:34 PM
If the width is the same, you could still just have the same UIGrid, just use a container that can have either 1 big button or two half-height buttons. Then you don't need to set the maxPerLine and pray that it works.. ;)
Title: Re: Game Store versions for iPhone and iPad
Post by: jeldrez on May 31, 2013, 02:03:53 PM
jajajaja, thanks Nicki, I would try that!  ;)