Thread: Radial Menu
View Single Post
Old 01-26-2017, 05:30 AM   #70
Sexan
Human being with feelings
 
Sexan's Avatar
 
Join Date: Jun 2009
Location: Croatia
Posts: 2,452
Default

Auto open menu

@NextLevel add this after line : 486
Code:
 if mnu_clicked ~= -1 and string.sub(mnu_arr[cur_depth][mnu_clicked].act, 1, 4) == "menu" then
    if not delay then
      delay = reaper.time_precise()
    elseif reaper.time_precise() - delay > 0.5 then -- delay time for activate
      last_depth = cur_depth
      cur_depth = mnu_clicked+1
      delay = nil
    end
  end
oh and I've almost forgot... change the first line in this section at the end : (line 648)
Code:
if mnu_clicked ~= last_mnu_clicked then
    draw_mnu()  
    last_mnu_clicked = mnu_clicked
  end
to
Code:
if mnu_clicked ~= last_mnu_clicked or cur_depth ~= last_depth then

Last edited by Sexan; 01-26-2017 at 05:48 AM.
Sexan is offline   Reply With Quote