View Single Post
Old 11-30-2019, 04:20 PM   #625
Lokasenna
Human being with feelings
 
Lokasenna's Avatar
 
Join Date: Sep 2008
Location: Calgary, AB, Canada
Posts: 6,551
Default

Quote:
Originally Posted by babag View Post
hey, thanks! i'd have never figured that out. :-P

looks like in the 'function ToolbarButton:draw()' there is a line:
Code:
GUI.color({1, 1, 1, 0.1})
that seems to control the mouseover brightness. i tried changing .1 to .5 and it gets much lighter. is there a way to apply color, maybe something like giving rgb values in parentheses or something? or does that asdd a whole new complication?

thanks again,
babag
Those values are Red, Green, Blue, Alpha - just from 0 to 1 instead of 0 to 255.

Note that we do have to reset the alpha to 1 afterward (gfx.a = 1) or it will mess up drawing subsequent buttons.
__________________
I'm no longer using Reaper or working on scripts for it. Sorry. :(
Default 5.0 Nitpicky Edition / GUI library for Lua scripts / Theory Helper / Radial Menu / Donate
Lokasenna is offline   Reply With Quote