Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 4    Views: 46

JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
09/05/14 10:01 AM (9 years ago)

HTML Pro Transitions

In echo of an earlier post (https://www.buzztouch.com/forum/thread.php?tid=4C8C1374938B6295621B1FF&currentPage=2) (which is sadly unanswered) - Has anyone added custom transitions from their HTML Pro screen to the next? Thoughts?
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/09/14 02:02 PM (9 years ago)
I don't have this plugin so shall we play a game. somewhere in that plugin .m file will be a method like this [self handleTapToLoadScreen:screenDataToLoad theMenuItemData:nil]; "screenDataToLoad" might be called something else if I'm on the right lines it should end in "nil" That can contain a bt_item with some funky stuff in like transitions, so let'g go a ahead an make it write this code above [self handleTapToLoadScreen:screenDataToLoad theMenuItemData:nil]; BT_item *tmpBTItem = [[BT_item alloc]init]; NSDictionary *tmpDict = [NSDictionary dictionaryWithObjectsAndKeys:@"unused",@"itemId",@"flip",@"transitionType", nil]; [tmpBTItem setJsonVars:tmpDict]; [tmpBTItem setItemId:@""]; then change [self handleTapToLoadScreen:screenDataToLoad theMenuItemData:nil]; [self handleTapToLoadScreen:screenDataToLoad theMenuItemData:tmpBTItem]; notice how nil has changed to tmpBTItem @"flip" is the transition type choose from @"curl", @"flip", @"fade", @"grow", @"slideUp", @"slideDown" the full code should look like BT_item *tmpBTItem = [[BT_item alloc]init]; NSDictionary *tmpDict = [NSDictionary dictionaryWithObjectsAndKeys:@"unused",@"itemId",@"flip",@"transitionType", nil]; [tmpBTItem setJsonVars:tmpDict]; [tmpBTItem setItemId:@""]; [self handleTapToLoadScreen:screenDataToLoad theMenuItemData:tmpBTItem]; make sure all the code is between any { } be mindful of typos second glass of whisky
 
JimmySaver
Aspiring developer
Profile
Posts: 187
Reg: Apr 09, 2012
location unknow...
5,870
like
09/10/14 12:59 AM (9 years ago)
Ha ha! Couple of trial and error tweaks to the above yielded this mess: //change transition BT_item *tmpBTItem = [[BT_item alloc]init]; NSDictionary *tmpDict = [NSDictionary dictionaryWithObjectsAndKeys:@"unused",@"itemId",@"flip",@"transitionType", nil]; [tmpBTItem setJsonVars:tmpDict]; [tmpBTItem setItemId:@""]; [self handleTapToLoadScreen:thisScreen theMenuItemData:tmpBTItem]; //This is the original //[self handleTapToLoadScreen:thisScreen theMenuItemData:nil]; return NO; Worked like a charm! Thanks again, Andy.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
09/10/14 05:21 AM (9 years ago)
that's not a mess it's beautiful
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
11/23/14 07:40 PM (9 years ago)
Just found this tonight. Works great Thanks Kittsy!!
 

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.