mirror of
https://github.com/mpv-player/mpv
synced 2025-04-24 20:29:53 +00:00
osd+osc: Add left-arrow to osd-font
For use as playlist navigation button in OSC, now the osd-font carries all symbols needed by the OSC.
This commit is contained in:
parent
c3cc9e8b88
commit
03f97e4cae
@ -1000,7 +1000,7 @@ function osc_init()
|
|||||||
-- prev
|
-- prev
|
||||||
ne = new_element("pl_prev", "button")
|
ne = new_element("pl_prev", "button")
|
||||||
|
|
||||||
ne.content = "◀"
|
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") end
|
||||||
@ -1010,7 +1010,7 @@ function osc_init()
|
|||||||
--next
|
--next
|
||||||
ne = new_element("pl_next", "button")
|
ne = new_element("pl_next", "button")
|
||||||
|
|
||||||
ne.content = "▶"
|
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") end
|
||||||
@ -1538,6 +1538,8 @@ function enable_osc(enable)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
mp.use_suspend=false
|
||||||
|
|
||||||
mp.register_event("tick", tick)
|
mp.register_event("tick", tick)
|
||||||
mp.register_event("start-file", request_init)
|
mp.register_event("start-file", request_init)
|
||||||
mp.register_event("tracks-changed", request_init)
|
mp.register_event("tracks-changed", request_init)
|
||||||
|
BIN
sub/osd_font.otf
BIN
sub/osd_font.otf
Binary file not shown.
Loading…
Reference in New Issue
Block a user