mirror of
https://github.com/mpv-player/mpv
synced 2025-01-14 02:51:26 +00:00
osc: show playlist/chapter list on prev/next instead of osd
This commit is contained in:
parent
5d3657e092
commit
992bdc9411
@ -1482,7 +1482,10 @@ function osc_init()
|
||||
ne.content = "\238\132\144"
|
||||
ne.visible = have_pl
|
||||
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"] =
|
||||
function () show_message(get_playlist(), 3) end
|
||||
ne.eventresponder["mouse_btn2_up"] =
|
||||
@ -1494,7 +1497,10 @@ function osc_init()
|
||||
ne.content = "\238\132\129"
|
||||
ne.visible = have_pl
|
||||
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"] =
|
||||
function () show_message(get_playlist(), 3) end
|
||||
ne.eventresponder["mouse_btn2_up"] =
|
||||
@ -1546,7 +1552,10 @@ function osc_init()
|
||||
ne.enabled = have_ch
|
||||
ne.content = "\238\132\132"
|
||||
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"] =
|
||||
function () show_message(get_chapterlist(), 3) end
|
||||
ne.eventresponder["mouse_btn2_up"] =
|
||||
@ -1558,7 +1567,10 @@ function osc_init()
|
||||
ne.enabled = have_ch
|
||||
ne.content = "\238\132\133"
|
||||
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"] =
|
||||
function () show_message(get_chapterlist(), 3) end
|
||||
ne.eventresponder["mouse_btn2_up"] =
|
||||
|
Loading…
Reference in New Issue
Block a user