Thread: Radial Menu
View Single Post
Old 01-21-2017, 10:37 AM   #37
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 4,596
Default

Yeah great!
anyway here is the function for activate on release (that I've constantly put in new versions)
Code:
function on_release()
  if mouse_act then
    if string.sub(mouse_act, 1, 4) ~= "menu" and mouse_act ~= '' then
      reaper.Main_OnCommand(mouse_act, 0)
    end
  end
end
Code:
mnu_clicked = mouse_mnu  % (#mnu_arr[cur_depth] + 1)
mouse_act = mnu_arr[cur_depth][mnu_clicked].act   ----------- here
if mouse_r < ((cur_depth == 0 and mnu_arr[0][0].lbl ~= "") and 48 or 16) then mnu_clicked = -1 end

Last edited by Sexan; 01-21-2017 at 03:40 PM.
Sexan is offline   Reply With Quote