Page 1 of 1

Change alpha on Dpad type control bar

PostPosted: Tue Sep 04, 2018 9:46 am
by signmaster
Hi
I have created a new corner control bar based on an existing one. I have it almost as I like it but need the white sections before mouseover to match the other buttons. Would anyone know what code I need to change in the XML file?

Steve

ctrl bar.jpg

Re: Change alpha on Dpad type control bar

PostPosted: Wed Sep 05, 2018 2:00 pm
by benji33
Try that:

1. Change all alpha="0.2" attributes to alpha="1.0"
2. Change all set(layer[LAYER_NAME_HERE].alpha, 0.2); actions to set(layer[LAYER_NAME_HERE].alpha, 1.0);

If desired only:
3. Into "controlBar_dpadvertical_onover_action" action change the alpha value from 1 to an other alpha value from 0.0 to 1.0.
4. Into "controlBar_dpadhorizontal_onover_action" action change the alpha value from 1 to an other alpha value from 0.0 to 1.0.
5. Into "controlBar_dpadnav_onover_action" action change the alpha value from 1 to an other alpha value from 0.0 to 1.0.

Re: Change alpha on Dpad type control bar

PostPosted: Wed Sep 05, 2018 11:22 pm
by signmaster
Thanks, Benjamin, worked like a charm after trying a few different alpha settings.

Steve