diff options
author | ChrisK2 <spam@kalania.de> | 2014-08-21 18:45:41 +0200 |
---|---|---|
committer | ChrisK2 <spam@kalania.de> | 2014-08-21 18:45:41 +0200 |
commit | 03f97e4caecc55de9d7ac0cde1ee9556a8ef4b6c (patch) | |
tree | 6f9e78ffb9b73051d3879c3e91fc3f33c470da50 /player/lua/osc.lua | |
parent | c3cc9e8b88e1212821700ba6f38320a1b8792164 (diff) | |
download | mpv-03f97e4caecc55de9d7ac0cde1ee9556a8ef4b6c.tar.bz2 mpv-03f97e4caecc55de9d7ac0cde1ee9556a8ef4b6c.tar.xz |
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.
Diffstat (limited to 'player/lua/osc.lua')
-rw-r--r-- | player/lua/osc.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/player/lua/osc.lua b/player/lua/osc.lua index 06974239c7..abbec6229f 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -1000,7 +1000,7 @@ function osc_init() -- prev ne = new_element("pl_prev", "button") - ne.content = "◀" + ne.content = "\238\132\144" ne.visible = have_pl ne.eventresponder["mouse_btn0_up"] = function () mp.commandv("playlist_prev", "weak") end @@ -1010,7 +1010,7 @@ function osc_init() --next ne = new_element("pl_next", "button") - ne.content = "▶" + ne.content = "\238\132\129" ne.visible = have_pl ne.eventresponder["mouse_btn0_up"] = function () mp.commandv("playlist_next", "weak") end @@ -1538,6 +1538,8 @@ function enable_osc(enable) end end +mp.use_suspend=false + mp.register_event("tick", tick) mp.register_event("start-file", request_init) mp.register_event("tracks-changed", request_init) |