Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 10    Views: 56

Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
12/10/13 09:02 PM (11 years ago)

Animated Circle Menu

The center button has moved up towards the top and would like to bring it back down to the center. Would love to know where I can amend this...
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/10/13 09:48 PM (11 years ago)
Were you messing with the code and this happened, or are you experiencing it straight from the project download?
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 09:54 PM (11 years ago)
Straight from project download.
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/10/13 09:55 PM (11 years ago)
are you using the old iOS project or the new 3.0 code? Also, are you on a self-hosted server or buzztouch.com
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/10/13 09:58 PM (11 years ago)
I'm using the old version and on self-hosted. I've tried it on 3.0 and it does the same thing. Here's a screen shot: https://www.dropbox.com/s/lsqquhc6toloejq/Screen%20Shot%202013-12-10%20at%209.54.33%20PM.png
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/10/13 11:08 PM (11 years ago)
Okay - so there's a few places you'll need to make this change. Once the plugin market is fixed, I'll push an update through. Do a search for "int moveUp = 0". You should find it in 4 places in the CR_animated_circlemenu.m file. Each will look something like this: *************BEGIN CODE************* //move frame "up" a bit if app has tabs... int moveUp = 0; if([appDelegate.rootApp.tabs count] > 0){ moveUp = 50; } **************END CODE************** Change those sections to this: *************BEGIN CODE************* //move frame "up" a bit if app has tabs... int moveUp = 0; if([appDelegate.rootApp.tabs count] > 0){ moveUp = 50; } NSString *navBarStyle = [[BT_strings getStyleValueForScreen:self.screenData nameOfProperty:@"navBarStyle" defaultValue:@""]uppercaseString]; if ([navBarStyle isEqualToString:@"TRANSPARENT"] || [navBarStyle isEqualToString:@"HIDDEN"]) moveUp-=64; **************END CODE************** Then, search for this line (around line 218): buttonOriginFrame_ = (CGRect){{originX, originX}, {centerButtonSize_, centerButtonSize_}}; Change that to: *************BEGIN CODE************* int moveUp = 0; NSString *navBarStyle = [[BT_strings getStyleValueForScreen:self.screenData nameOfProperty:@"navBarStyle" defaultValue:@""]uppercaseString]; if ([navBarStyle isEqualToString:@"TRANSPARENT"] || [navBarStyle isEqualToString:@"HIDDEN"]) moveUp-=64; buttonOriginFrame_ = (CGRect){{originX, originX-moveUp}, {centerButtonSize_, centerButtonSize_}}; **************END CODE**************
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/11/13 12:17 AM (11 years ago)
Looks great - thank you for your help!
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/14/13 01:27 PM (11 years ago)
Hi Chris - I am now using 3.0v BT with the 3.0 version of the Animated Circle Menu. I am getting the same results as I was previously, the center button is towards the top. I tried using your fix above and just getting errors. Have any ideas?
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/14/13 01:28 PM (11 years ago)
What kind of errors?
 
Becky
I hate code!
Profile
Posts: 269
Reg: Aug 08, 2012
NYC
6,140
like
12/14/13 01:38 PM (11 years ago)
With all the updating going on -- I've never messed around with Xcode so much. I just tried it again and it worked. 6th times a charm :) An oversight on my part, thank you..
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
12/16/13 07:23 AM (11 years ago)
Lol - can be the best way to learn! ;)
 

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.