--- original-osc.lua 2023-08-05 13:50:08.954809200 -0400 +++ osc.lua 2023-08-05 13:53:40.516109400 -0400 @@ -1303,11 +1303,16 @@ {x = posX + (bigbtndist * 2), y = bigbtnrowY, an = 5, w = 40, h = 40} lo.style = osc_styles.bigButtons - lo = add_layout("cy_audio") + lo = add_layout("cy_video") lo.geometry = {x = posX - pos_offsetX, y = bigbtnrowY, an = 1, w = 70, h = 18} lo.style = osc_styles.smallButtonsL + lo = add_layout("cy_audio") + lo.geometry = + {x = posX - pos_offsetX, y = bigbtnrowY, an = 4, w = 70, h = 18} + lo.style = osc_styles.smallButtonsL + lo = add_layout("cy_sub") lo.geometry = {x = posX - pos_offsetX, y = bigbtnrowY, an = 7, w = 70, h = 18} @@ -1641,6 +1646,10 @@ lo.geometry = geo lo.style = osc_styles.smallButtonsBar + geo = { x = geo.x - geo.w - padX, y = geo.y, an = geo.an, w = geo.w, h = geo.h } + lo = add_layout("cy_video") + lo.geometry = geo + lo.style = osc_styles.smallButtonsBar -- Right timecode geo = { x = geo.x - padX - tcW - 10, y = geo.y, an = geo.an, @@ -1929,6 +1938,25 @@ -- update_tracklist() + --cy_video + ne = new_element("cy_video", "button") + + ne.enabled = (#tracks_osc.video > 1) + ne.content = function () + local aid = "–" + if not (get_track("video") == 0) then + aid = get_track("video") + end + return ("\238\128\139" .. osc_styles.smallButtonsLlabel + .. " " .. aid .. "/" .. #tracks_osc.video) + end + ne.eventresponder["mbtn_left_up"] = + function () set_track("video", 1) end + ne.eventresponder["mbtn_right_up"] = + function () set_track("video", -1) end + ne.eventresponder["shift+mbtn_left_down"] = + function () show_message(get_tracklist("video"), 2) end + --cy_audio ne = new_element("cy_audio", "button")