Skip to content

Commit

Permalink
ReaGirl
Browse files Browse the repository at this point in the history
ColorRectangle - opens color-selector/runs run-function only, when clicked directly on the color-ui-element
  • Loading branch information
mespotine committed Aug 8, 2024
1 parent ad87855 commit fcc078c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reagirl.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5500,7 +5500,7 @@ function reagirl.ColorRectangle_Manage(element_id, selected, hovered, clicked, m
-- !!TODO!! - send color to screenreader
-- - get/set disabled
-- - get/set color
if selected~="not selected" and clicked=="FirstCLK" then
if selected~="not selected" and clicked=="FirstCLK" and gfx.mouse_x>=x and gfx.mouse_x<=x+w and gfx.mouse_y>=y and gfx.mouse_y<=y+h then
if element_storage["color_selector_when_clicked"]==true then
local retval, color2=reaper.GR_SelectColor()
if retval==1 then
Expand Down
Binary file modified ultraschall_api5.zip
Binary file not shown.

0 comments on commit fcc078c

Please sign in to comment.