Skip to content

Commit

Permalink
脚本及配置更新
Browse files Browse the repository at this point in the history
  • Loading branch information
dyphire committed Jul 13, 2024
1 parent 0fa283e commit 7d1cecc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions mpv.conf
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,9 @@ osd-color="#FFFFFFFF" # OSD 文本主颜色
osd-border-size=1.0 # OSD 文本边框大小
osd-border-color="#FF000000" # OSD 文本边框颜色
osd-shadow-offset=0.5 # OSD 文本字幕阴影大小
osd-shadow-color="#FF000000" # OSD 文本字幕阴影颜色
osd-shadow-color="#FF000000" # OSD 文本字幕阴影/背景颜色
#osd-border-style=outline-and-shadow # <默认 outline-and-shadow|opaque-box|background-box> 文本字幕边框的样式
# outline-and-shadow:绘制轮廓和阴影;opaque-box:绘制轮廓和阴影;将轮廓和阴影绘制为不透明框,紧密包裹每一行文本;background-box:绘制一个背景框,将所有文本行框框起来
#osd-spacing=1 # OSD 文本字幕字间距
#osd-blur=0.5 # OSD 文本字幕的边缘模糊度 <0..20.0>
#osd-bar-border-size=1.2 # OSD 栏的边框大小
Expand Down Expand Up @@ -427,7 +429,9 @@ sub-color="#FFFFFFFF" # 文本字幕字体颜色。<格
sub-border-size=0.5 # 文本字幕边框大小
sub-border-color="#FF000000" # 文本字幕边框颜色
sub-shadow-offset=0.5 # 文本字幕阴影大小
sub-shadow-color="#FF000000" # 文本字幕阴影颜色
sub-shadow-color="#FF000000" # 文本字幕阴影/背景颜色
#sub-border-style=opaque-box # <默认 outline-and-shadow|opaque-box|background-box> 文本字幕边框的样式
# outline-and-shadow:绘制轮廓和阴影;opaque-box:绘制轮廓和阴影;将轮廓和阴影绘制为不透明框,紧密包裹每一行文本;background-box:绘制一个背景框,将所有文本行框框起来
#sub-spacing=1 # 文本字幕字间距
#sub-blur=0.5 # 文本字幕的边缘模糊度,推荐值 0.5-3.0 之间 <0..20.0>
#sub-use-margins=no # 是否使纯文本字幕输出在黑边上,默认 yes
Expand Down
2 changes: 1 addition & 1 deletion scripts/uosc/elements/Timeline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ function Timeline:render()
if chapter ~= hovered_chapter then draw_chapter(chapter.time, diamond_radius) end
local circle = {point = {x = t2x(chapter.time), y = fay - 1}, r = diamond_radius_hovered}
if visibility > 0 then
cursor:zone('primary_down', circle, function()
cursor:zone('primary_click', circle, function()
mp.commandv('seek', chapter.time, 'absolute+exact')
end)
end
Expand Down

0 comments on commit 7d1cecc

Please sign in to comment.