diff options
author | Teoh Han Hui <teohhanhui@gmail.com> | 2015-06-19 19:33:06 +0800 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2015-06-19 21:33:44 +0200 |
commit | aed7c848407a472ccc63337b3bd7cef97defe8e4 (patch) | |
tree | 43d3958f2afd192aecfc5e3b1f40ccf752ec56ae /player | |
parent | b1a56d11fe805ac64e43e2f16cc6ce11da69a6ca (diff) |
osc: time display configuration options
Total time and ms
Diffstat (limited to 'player')
-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 4e373da74b..09ca0eb5e9 100644 --- a/player/lua/osc.lua +++ b/player/lua/osc.lua @@ -30,6 +30,8 @@ local user_opts = { -- functions that depend on it) layout = "box", seekbarstyle = "slider", -- slider (diamond marker) or bar (fill) + timetotal = false, -- display total time instead of remaining time? + timems = false, -- display timecodes with milliseconds? } -- read options from config and command-line @@ -65,8 +67,8 @@ local state = { mouse_down_counter = 0, -- used for softrepeat active_element = nil, -- nil = none, 0 = background, 1+ = see elements[] active_event_source = nil, -- the "button" that issued the current event - rightTC_trem = true, -- if the right timcode should display total or remaining time - tc_ms = false, -- Should the timecodes display their time with milliseconds + rightTC_trem = not user_opts.timetotal, -- if the right timecode should display total or remaining time + tc_ms = user_opts.timems, -- Should the timecodes display their time with milliseconds mp_screen_sizeX, mp_screen_sizeY, -- last screen-resolution, to detect resolution changes to issue reINITs initREQ = false, -- is a re-init request pending? last_mouseX, last_mouseY, -- last mouse position, to detect siginificant mouse movement |