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

but for now if you want that click behavior then find this part at the bottom of the script and remove the line that I've noted (after "reaper.Main_OnCommand(act, 0)"
Code:
-- Msg("cur_depth = "..tostring(cur_depth).."mnu_clicked = "..tostring(mnu_clicked)
			local act = mnu_arr[cur_depth][mnu_clicked].act
			if act == "" then
				--Msg("no action")
				last_depth = 0
				cur_depth = 0
			elseif string.sub(act, 1, 4) == "menu" then
				last_depth = cur_depth
				cur_depth = tonumber(string.sub(act, 5))
				if not mnu_arr[cur_depth] then
					init_menu(cur_depth)
				end
				--Msg("moving to menu "..cur_depth)
			else
				--Msg("attempting action "..act)
				reaper.Main_OnCommand(act, 0)
				cur_depth = 0        ------------------ REMOVE THIS LINE
			end
Sexan is offline   Reply With Quote