Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 9    Views: 46

kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
05/18/14 03:04 AM (10 years ago)

Interactive quiz start quiz font color

I have found several unanswered forum threads asking how one changes the font color of the "start quiz" in the interactive quiz plugin. Does really no-one know? I tried this in bt_screen_quiz.m: [startButton.titleLabel setTextColor:[UIColor whiteColor]]; but it didn't work.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/18/14 10:56 AM (10 years ago)
I had never noticed. The graphic can be changed, the question and answer colours can be changed, seems an oversight to not be able to change the start countdown text colour.
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
05/19/14 06:38 AM (10 years ago)
Yes, but no-one seems to know a solution. It must be possible to do it in the code, surely, even if not in the control panel.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/19/14 07:05 AM (10 years ago)
you where close. When it comes to setting a UIButtons text colour you need to say what state the button will be in [startButton setTitleColor:[UIColor redColor] forState:UIControlStateNormal]; if you want to use a hex colour [startButton setTitleColor:[BT_color getColorFromHexString:@"#FF0000"] forState:UIControlStateNormal]; just add the line of code under this startButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/19/14 07:05 AM (10 years ago)
Just be a little patient dude the Buzztouch legends will roll in eventually
 
kingelessar
Lost but trying
Profile
Posts: 155
Reg: Mar 10, 2014
UK
6,500
like
05/19/14 07:32 AM (10 years ago)
Ahaa!! Looks like a Buzztouch legend has already arrived. Yep, that worked. Thanks Kittsy! Hopefully now everyone with the same questions will find the answer here.
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/19/14 07:53 AM (10 years ago)
I seem to remember being a little confused by buttons back in the day. It is the for state thing that messes everybody up. You saw how the font was changed in the UIButton [startButton.titleLabel setFont:[UIFont boldSystemFontOfSize:30]]; makes perfect sense that this would work as it let's you type it with no errors or warnings [startButton.titleLabel setTextColor:[UIColor whiteColor]]; absolute bar stewards The same applies to adding images to buttons there will always be state attached.
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/19/14 08:53 AM (10 years ago)
glad to see you back on the grid kittsy, a lot of the legends have been a bit quiet recently
 
Kittsy
buzztouch Evangelist
Profile
Posts: 2251
Reg: Feb 22, 2012
Liverpool
31,360
like
05/19/14 09:02 AM (10 years ago)
I'm still recovering from Vegas. I have a lot of university work and day job to contend with. Come mid June I will be back with a vengeance with some new plugins, some mega updates to existing plugins and a shed load of tutorials for kittsy.co.uk
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
05/19/14 09:10 AM (10 years ago)
Things must be bad, I noticed I made the top 25 and I know sweet fa compared to most of you guys lol
 

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.