Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 10    Views: 81

Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
01/23/14 08:33 PM (11 years ago)

Fixed: Opacity of buttons

For the Buttons Menu in iOS-land, the opacity setting should be in a range of .0 to 1.0 Instead it is in a range of 1 to 9. Mistake (typo) on Line 90 of BT_screen_menuButtons.m Instead of .100, it should be 100 May also have to fix the text on the read me of the HTML for that control panel to properly reflect the range of 1 - 9 versus .0 - 1.0 Also reported this on http://buzz-tools.com -- Niraj
 
SmugWimp
Smugger than thou...
Profile
Posts: 6316
Reg: Nov 07, 2012
Tamuning, GU
81,410
like
01/23/14 09:24 PM (11 years ago)
Cool! Thanks so much Niraj! :) Cheers! -- Smug
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/23/14 09:46 PM (11 years ago)
I think the intention of this property is to be in the range of 1-100. If you notice line 89, it places a "." before the value, so 90 becomes .90. On line 90, the code looks to see if the user entered ".1", and if so, it assumes a mistake was made and converts it to "1.0". (Which then, combined with line 89, becomes 0.1).
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/24/14 01:14 AM (11 years ago)
Then the HTML should be updated to properly state the range of the numbers. Right now, if I put in a value of 1.0, the images can barely be seen. A value of 0.5 makes the images even less obvious. A value of 9 allows the image to be fully seen. Something strange going on ...
 
AlanMac
Aspiring developer
Profile
Posts: 2612
Reg: Mar 05, 2012
Esher, UK
37,120
like
01/24/14 03:27 AM (11 years ago)
Hi chaps I noticed this a little while ago - I used the range 0 to 100. I just assumed at the time that the code was correct for 1 to 100 but the on-screen instructions were wrong. Alan
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/24/14 08:14 AM (11 years ago)
I see the problem with the logic now. A 9 is interpreted the same as a 90 (8 as 80, and so on). That and the documentation of course. Good catch
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/24/14 08:14 AM (11 years ago)
Note: typing '09' would be different
 
Niraj
buzztouch Evangelist
Profile
Posts: 2943
Reg: Jul 11, 2012
Cerritos
37,930
like
01/24/14 08:44 AM (11 years ago)
Thanks Chris, when you have time, please let us know of a fix. -- Niraj
 
NCbuzz
Code is Art
Profile
Posts: 575
Reg: Sep 11, 2013
Lillington, NC
11,100
like
01/24/14 08:52 AM (11 years ago)
AlanMac is correct that the code works with values of 1-100. Note: Careful does not handle incorrect values in excess of 100. =================== An enhancement for this plugin would be to have (1) addition of two different visual settings for buttons, with the ability to change either/both Opacity and Size values. (2) Code executed upon tap of button to change Button States of buttons on the screen. (1) BUTTON STATES Active Button: (Used for initial and Selected state) ButtonOpacity 100 ButtonSizePercent 100% of Size Other Buttons: ButtonOpacity 80 ButtonSizePercent 80% of Size
 
chris1
Code is Art
Profile
Posts: 3862
Reg: Aug 10, 2012
Austin, TX
50,120
like
01/24/14 10:35 PM (11 years ago)
Just updated to fix this issue. Also noted during the process that the button opacity wasn't working for Android, as it looked to see if it was a negative number instead of positive. Fixed that also.
 
EdReyes
Lost but trying
Profile
Posts: 574
Reg: Oct 21, 2013
location unknow...
17,640
like
01/28/14 12:20 PM (11 years ago)
So this is all good to go I take it.
 

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.