align menu middle-left
This commit is contained in:
parent
13286bec26
commit
fa0322b236
|
@ -244,7 +244,8 @@ menu.set_time_sub = function(property)
|
||||||
end
|
end
|
||||||
|
|
||||||
menu.update = function(message)
|
menu.update = function(message)
|
||||||
local osd = OSD:new():size(config.font_size):bold('Video clip creator'):newline():newline()
|
local osd = OSD:new():size(config.font_size):align(4)
|
||||||
|
osd:bold('Clip creator'):newline():newline()
|
||||||
|
|
||||||
osd:bold('Start time: '):append(human_readable_time(menu.timings['start'])):newline()
|
osd:bold('Start time: '):append(human_readable_time(menu.timings['start'])):newline()
|
||||||
osd:bold('End time: '):append(human_readable_time(menu.timings['end'])):newline()
|
osd:bold('End time: '):append(human_readable_time(menu.timings['end'])):newline()
|
||||||
|
@ -314,6 +315,10 @@ function OSD:size(size)
|
||||||
return self:append('{\\fs' .. size .. '}')
|
return self:append('{\\fs' .. size .. '}')
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function OSD:align(number)
|
||||||
|
return self:append('{\\an' .. number .. '}')
|
||||||
|
end
|
||||||
|
|
||||||
function OSD:draw()
|
function OSD:draw()
|
||||||
overlay.data = self.text
|
overlay.data = self.text
|
||||||
overlay:update()
|
overlay:update()
|
||||||
|
|
Loading…
Reference in a new issue