mirror of
https://github.com/mpv-player/mpv
synced 2025-01-18 04:51:52 +00:00
osc: fix chapter list display
also fix small typo in DOCS
This commit is contained in:
parent
7cc48f26e0
commit
30fc1a42be
@ -411,8 +411,8 @@ with ``require 'mp.msg'``.
|
|||||||
All of these are shortcuts and equivalent to the corresponding
|
All of these are shortcuts and equivalent to the corresponding
|
||||||
``msg.log(level, ...)`` call.
|
``msg.log(level, ...)`` call.
|
||||||
|
|
||||||
mp.option
|
mp.options
|
||||||
---------
|
----------
|
||||||
|
|
||||||
mpv comes with a built-in module to manage options from config-files and the
|
mpv comes with a built-in module to manage options from config-files and the
|
||||||
command-line. All you have to do is to supply a table with default options to
|
command-line. All you have to do is to supply a table with default options to
|
||||||
|
@ -727,13 +727,13 @@ function osc_init()
|
|||||||
--prev
|
--prev
|
||||||
local eventresponder = {}
|
local eventresponder = {}
|
||||||
eventresponder.mouse_btn0_up = function () mp.commandv("osd-msg", "add", "chapter", -1) end
|
eventresponder.mouse_btn0_up = function () mp.commandv("osd-msg", "add", "chapter", -1) end
|
||||||
eventresponder["shift+mouse_btn0_up"] = function () show_message(mp.get_property("chapter-list"), 3) end
|
eventresponder["shift+mouse_btn0_up"] = function () show_message(mp.get_property_osd("chapter-list"), 3) end
|
||||||
register_button(posX - (bigbuttondistance * 2), bigbuttonrowY, 5, 40, 40, osc_styles.bigButtons, "\238\132\132", eventresponder, metainfo)
|
register_button(posX - (bigbuttondistance * 2), bigbuttonrowY, 5, 40, 40, osc_styles.bigButtons, "\238\132\132", eventresponder, metainfo)
|
||||||
|
|
||||||
--next
|
--next
|
||||||
local eventresponder = {}
|
local eventresponder = {}
|
||||||
eventresponder.mouse_btn0_up = function () mp.commandv("osd-msg", "add", "chapter", 1) end
|
eventresponder.mouse_btn0_up = function () mp.commandv("osd-msg", "add", "chapter", 1) end
|
||||||
eventresponder["shift+mouse_btn0_up"] = function () show_message(mp.get_property("chapter-list"), 3) end
|
eventresponder["shift+mouse_btn0_up"] = function () show_message(mp.get_property_osd("chapter-list"), 3) end
|
||||||
register_button(posX + (bigbuttondistance * 2), bigbuttonrowY, 5, 40, 40, osc_styles.bigButtons, "\238\132\133", eventresponder, metainfo)
|
register_button(posX + (bigbuttondistance * 2), bigbuttonrowY, 5, 40, 40, osc_styles.bigButtons, "\238\132\133", eventresponder, metainfo)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user