From 992bdc9411544a8882f9f63f60688a19d909f5f9 Mon Sep 17 00:00:00 2001 From: Ricardo Constantino Date: Sat, 15 Oct 2016 01:59:31 +0100 Subject: osc: show playlist/chapter list on prev/next instead of osd --- player/lua/osc.lua | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'player/lua') diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 02b21bf41f..6d5eca5a9d 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -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"] = -- cgit v1.2.3