Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 24    Views: 138

chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
01/01/14 09:48 PM (11 years ago)

new plugin: Paged Menu

Just got home from family vacation. Was able to work on this fun plugin while on riding in the car. The Paged Menu plugin displays images in a grid fashion. You set the number of rows and columns. If more images are set than will fit on a single page given your rows & columns, additional "pages" will be added. Users can swipe left or right to switch between pages. A page indicator shows which page they are on. In addition, when the menu is shown on the screen, the images on the first page will randomly fade in. When an image is clicked, that image will flip over and grow, revealing the new screen. See demo video at: http://youtu.be/quyygzDtKGM
 
KozmoWeb
Aspiring developer
Profile
Posts: 342
Reg: Dec 08, 2012
Sarasota, FL
8,520
like
01/01/14 10:14 PM (11 years ago)
> Was able to work on this fun plugin while on riding in the car. Whaaaat?!!! OMG, I need to step up my game. You guys are awesome! Thanks for all you do here! -William
 
bigPaul
Lost but trying
Profile
Posts: 103
Reg: Mar 08, 2013
Darwin
4,530
like
01/01/14 11:09 PM (11 years ago)
Looks good, hope someone else was driving!!!
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/02/14 12:38 AM (11 years ago)
Very Cool. Keep up the awesome work! Jake
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/02/14 01:11 AM (11 years ago)
Chris -- in looking at the JSON section on the Plugin's home page, it does not show options for setting: - qty of rows - qty of columns - row height - column width Am I just having wishful thinking for a feature update? Time for another road trip! :-) -- Niraj
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/02/14 06:17 AM (11 years ago)
You can set number of rows and number of columns. Width and height are automatically calculated
 
KennedyE
Android Fan
Profile
Posts: 373
Reg: Dec 07, 2013
PH, Nigeria
3,730
like
01/02/14 07:26 AM (11 years ago)
Hmmm... what shall I say now?
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/02/14 08:43 AM (11 years ago)
Ah ok, then the "JSON Data" section of the readme file needs to be updated with the info on: - rows - columns Also, put in a note on the auto-calculation of the height and width of the cells. You know how I am about documentation! :-) -- Niraj
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/02/14 08:49 AM (11 years ago)
haha, yes I know. I'll be sure to add it in. Also thinking of adding a double-flip of the image when it's clicked.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/02/14 09:35 AM (11 years ago)
Updated documentation, and added in support for a double-flip of the image. Check out new demo video: http://youtu.be/sToCHnzbaPw
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/02/14 09:44 AM (11 years ago)
Nice acrobatics! Consider adding in a swipe-from-left to be the equivalent of the Back button action. With iOS 7, my muscle memory has me desiring for all the apps to have the swipe-from-left gesture. An aside, I powered up my Palm Veer phone yesterday. Now it's not so strange to use the swipe-up gesture to see the currently running apps and the swipe-up to remove apps. All the mobile OS user interface conventions are melding! Thanks for updating the doc. -- Niraj
 
Jake Chasan
Veteran developer
Profile
Posts: 1685
Reg: May 13, 2011
location unknow...
29,650
like
01/02/14 09:59 AM (11 years ago)
@Chris: Can you add info to the nav bar? (Like a title, color, and buttons) It looks blank in your demo. Jake
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/02/14 10:00 AM (11 years ago)
Same options as any other plugin - I just didn't add in anything and had it set to my home screen.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/04/14 09:43 AM (11 years ago)
Hi Chris! Strange: tapping on an item kills the app... what am I doing wrong? Here's Xcode output: 2014-01-04 17:32:50.328 appworks[190:60b] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayI objectAtIndex:]: index 1 beyond bounds [0 .. 0]' *** First throw call stack: (0x2eefcf53 0x392266af 0x2ee33861 0x1b96ed 0x2f8d652b 0x2eec80e7 0x2eec7cff 0x2eec609b 0x2ee30ce7 0x2ee30acb 0x33b09283 0x316d2a41 0x142cfd 0x3972eab7) libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) Cheers Jack
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 09:53 AM (11 years ago)
I just updated the plugin for this. Looks like I also need to update the control panel though.
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/04/14 11:01 AM (11 years ago)
Thanks, Chris, you're getting near to fix it! Now tapping an item doesn't kill the app anymore, but the action stops before loading the corresponding screen, displaying just a white space over the menu.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 11:03 AM (11 years ago)
Yep - that's the control panel issue - the screen to load isn't saved
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 11:09 AM (11 years ago)
Okay - it should be fixed now. You'll need to delete your menu items and re-add them to make it work. Sorry about that!
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/04/14 11:15 AM (11 years ago)
Great, I'll try right now and tell you if everything's ok!
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/04/14 11:44 AM (11 years ago)
Err... not yet! No change at all, still stopping... I did delete my menu items and re-add them, I even tried to create a brand new menu, cleaned the project, quit Xcode and relaunch it... No change...
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/04/14 12:18 PM (11 years ago)
hmm - what's your debug look like? Also, what does the JSON for this screen look like?
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
01/04/14 12:54 PM (11 years ago)
nothing special in the output... json: "BT_screens":[ {"itemId":"EE07910F628678336559BA3", "itemType":"CR_paged_menu", "itemNickname":"Paged Menu (2)", "itemId":"EE07910F628678336559BA3", "itemType":"CR_paged_menu", "itemNickname":"Paged Menu (2)", "navBarTitleText":"GRILLE", "navBarStyle":"solid", "rowsPerScreenSmallDevice":"2", "rowsPerScreenLargeDevice":"2", "colsPerScreenSmallDevice":"2", "colsPerScreenLargeDevice":"2", "doubleFlip":"YES", "shouldFadeImages":"YES", "imageScaleMode":"scale", "leftSwipeGoBack":"NO", "backgroundColor":"#000000", "childItems":[ {"itemId":"E673E7962738A76427CBA63", "itemType":"BT_menuItem", "titleText":"1", "imageLocation":"btc1.png"}, {"itemId":"E9E524E6549C6A2E7663F03", "itemType":"BT_menuItem", "titleText":"2", "imageLocation":"btc2.png"}, {"itemId":"F3D59778182EF388BD297CA", "itemType":"BT_menuItem", "titleText":"3", "imageLocation":"btc3.png"}, {"itemId":"A1F86E01EBF1B0B0B868D6C", "itemType":"BT_menuItem", "titleText":"4", "imageLocation":"btc4.png"} ]}
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/04/14 11:55 PM (11 years ago)
Uh... Could it be a tab bar issue?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
04/05/14 07:11 AM (11 years ago)
Jack, I still can't duplicate your issue - I just created a project and added this plugin to it and everything worked fine. Can you send me your project via dropbox?
 
fusionsch
I hate code!
Profile
Posts: 516
Reg: Dec 28, 2010
Montreux Switze...
11,610
like
04/05/14 09:29 AM (11 years ago)
Just sent you the download link to your BT address (coming from my Gmail address, not from my usual one). Hope you'll find what happens! Many thanks for your help! Cheers Jack
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.