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

This is going to be some really ...REALLY exciting shit when its finished!
Toggle states, beautifying a little bit and something special


in draw_mnu() for toggle
Code:
 ----- toggle state color
      if string.sub(str.act, 1, 4) ~= "menu" and str.act ~= "" then
        local action = string.match(str.act, "(%d+)")
        local state = reaper.GetToggleCommandState(action)
        if state ~= nil then
          if state == 1 then 
            color = col_on
          end
        end
      end   
        
      draw_ring_section(i + k, mnu_adj, rc, rd, ox, oy, 0.05, fill, color)
volume changing need a proper implementation (I do not want to shock anyone with my awesome coding skills hahaa), this was a test and very weird code of mine (never done this before),but anyway implemented left click hold (as lokasenna showed me) to bypass menu selection and while in that mode to move fader up and down depending on mouse possition)

Last edited by Sexan; 01-21-2017 at 08:45 AM.
Sexan is offline   Reply With Quote