mirror of https://github.com/mpv-player/mpv
command: change sub-visibility OSD message
Now it shows one of: - "Subtitles hidden" (sub-visibility=no) - "Subtitles visible" (sub-visibility=yes, sub!=no) - "Subtitles visible (but no subtitles selected)" (otherwise) It should be a bit more self-explanatory than before. On the other hand, I have no clue about UI issues. This also gets close to what's reasonably possible with the OSD expansion string syntax, which is why it looks so awful.
This commit is contained in:
parent
547fd2a229
commit
1cd11c43ee
|
@ -3636,7 +3636,8 @@ static const struct property_osd_display {
|
|||
{ "secondary-sid", "Secondary subtitles" },
|
||||
{ "sub-pos", "Sub position" },
|
||||
{ "sub-delay", "Sub delay" },
|
||||
{ "sub-visibility", "Subtitles" },
|
||||
{ "sub-visibility", .msg = "Subtitles ${!sub-visibility==yes:hidden}"
|
||||
"${?sub-visibility==yes:visible${?sub==no: (but no subtitles selected)}}" },
|
||||
{ "sub-forced-only", "Forced sub only" },
|
||||
{ "sub-scale", "Sub Scale"},
|
||||
{ "ass-vsfilter-aspect-compat", "Subtitle VSFilter aspect compat"},
|
||||
|
|
Loading…
Reference in New Issue