osc: show playlist/chapter list on prev/next instead of osd

This commit is contained in:
Ricardo Constantino 2016-10-15 01:59:31 +01:00
parent 5d3657e092
commit 992bdc9411
No known key found for this signature in database
GPG Key ID: EFD16019AE4FF531
1 changed files with 16 additions and 4 deletions

View File

@ -1482,7 +1482,10 @@ function osc_init()
ne.content = "\238\132\144" ne.content = "\238\132\144"
ne.visible = have_pl ne.visible = have_pl
ne.eventresponder["mouse_btn0_up"] = ne.eventresponder["mouse_btn0_up"] =
function () mp.commandv("playlist-prev", "weak") end function ()
mp.commandv("playlist-prev", "weak")
show_message(get_playlist(), 3)
end
ne.eventresponder["shift+mouse_btn0_up"] = ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_playlist(), 3) end function () show_message(get_playlist(), 3) end
ne.eventresponder["mouse_btn2_up"] = ne.eventresponder["mouse_btn2_up"] =
@ -1494,7 +1497,10 @@ function osc_init()
ne.content = "\238\132\129" ne.content = "\238\132\129"
ne.visible = have_pl ne.visible = have_pl
ne.eventresponder["mouse_btn0_up"] = ne.eventresponder["mouse_btn0_up"] =
function () mp.commandv("playlist-next", "weak") end function ()
mp.commandv("playlist-next", "weak")
show_message(get_playlist(), 3)
end
ne.eventresponder["shift+mouse_btn0_up"] = ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_playlist(), 3) end function () show_message(get_playlist(), 3) end
ne.eventresponder["mouse_btn2_up"] = ne.eventresponder["mouse_btn2_up"] =
@ -1546,7 +1552,10 @@ function osc_init()
ne.enabled = have_ch ne.enabled = have_ch
ne.content = "\238\132\132" ne.content = "\238\132\132"
ne.eventresponder["mouse_btn0_up"] = ne.eventresponder["mouse_btn0_up"] =
function () mp.commandv("osd-msg", "add", "chapter", -1) end function ()
mp.commandv("add", "chapter", -1)
show_message(get_chapterlist(), 3)
end
ne.eventresponder["shift+mouse_btn0_up"] = ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_chapterlist(), 3) end function () show_message(get_chapterlist(), 3) end
ne.eventresponder["mouse_btn2_up"] = ne.eventresponder["mouse_btn2_up"] =
@ -1558,7 +1567,10 @@ function osc_init()
ne.enabled = have_ch ne.enabled = have_ch
ne.content = "\238\132\133" ne.content = "\238\132\133"
ne.eventresponder["mouse_btn0_up"] = ne.eventresponder["mouse_btn0_up"] =
function () mp.commandv("osd-msg", "add", "chapter", 1) end function ()
mp.commandv("add", "chapter", 1)
show_message(get_chapterlist(), 3)
end
ne.eventresponder["shift+mouse_btn0_up"] = ne.eventresponder["shift+mouse_btn0_up"] =
function () show_message(get_chapterlist(), 3) end function () show_message(get_chapterlist(), 3) end
ne.eventresponder["mouse_btn2_up"] = ne.eventresponder["mouse_btn2_up"] =