Discussion Forums  >  Self Hosted Control Panels

Replies: 7    Views: 104

Biplov
I hate code!
Profile
Posts: 97
Reg: Mar 01, 2012
Eindhoven
4,120
05/22/12 02:25 AM (13 years ago)

quiz plugin

I have latest version of quiz installed (1.1). I can change the color of the incorrect and correct answers but they are not the options I choose. For example when I choose pure red for incorrect answer and pure green for correct answer I get almost pink color for red and faded green for dark green.
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/22/12 12:38 PM (13 years ago)
Hi Biplov, Sorry I don't have a perfect answer (and don't have the time to dive in to this any further) but what I can see is that there is a tranparent (let's say 10%) overlay over the buttons when you answer a question. The overlay is causing the colors to look different than the ones you choose. Maybe you can dive in the code and see if it is doable to hide the overlay. Best Regards, Danny
 
Biplov
I hate code!
Profile
Posts: 97
Reg: Mar 01, 2012
Eindhoven
4,120
like
05/23/12 01:42 AM (13 years ago)
Thank you danny! I'll see if I can change it:)
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 01:49 AM (13 years ago)
Hi Biplov, See around line 179 in BT_screen_quiz.m and play around with the setAlpha:.60 Change the .60 to 1 or to .10 and see what happens. Best Regards, Danny
 
Biplov
I hate code!
Profile
Posts: 97
Reg: Mar 01, 2012
Eindhoven
4,120
like
05/23/12 02:27 AM (13 years ago)
Hi Danny, After I change the code, I save it then zip the file and I go to server, update the existing plugin on the server by uploading the zip file. Then the change in code should be visible when I change the color right?
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
05/23/12 04:09 AM (13 years ago)
That's one wa (but not the fastest). Create an app with the quiz. Import like normal in Xcode. Run to see that it's working. Now make changes in the BT_screen_quiz.m in xcode. After you made changes hit cmd+S (=save). After that do a clean (cmd + shift + K) and after that run (cmd + R) This is the best if you want to make changes. Once you're satisfied with the changes go to the server (ftp) and make those exact same changes in the plugin (www.yourdomain.com/your_btserver_install/files/plugins/bt_quiz/ios-source/BT_screeb_quiz.m) to apply it for all the next apps you're gonna make. Hope it helps Best Regards, Danny
 
Biplov
I hate code!
Profile
Posts: 97
Reg: Mar 01, 2012
Eindhoven
4,120
like
05/23/12 04:19 AM (13 years ago)
thank you danny!!!
 
jawdoss
Android Fan
Profile
Posts: 359
Reg: Jun 10, 2012
Gold Coast, Que...
9,090
like
07/01/12 01:56 AM (13 years ago)
Hmm, my quiz doesn't even open on v1.5??? i have no idea why. When i click on the quiz page on my app it just says see 'BT_quiz_screen'
 

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.