Prevent mpv chat scrolling text from getting too low
This commit is contained in:
parent
9243292957
commit
ac31bfca05
@ -18,6 +18,7 @@ local MOOD_NEUTRAL = 0
|
|||||||
local MOOD_BAD = 1
|
local MOOD_BAD = 1
|
||||||
local MOOD_GOOD = 2
|
local MOOD_GOOD = 2
|
||||||
local WORDWRAPIFY_MAGICWORD = "{\\\\fscx0} {\\\\fscx100}"
|
local WORDWRAPIFY_MAGICWORD = "{\\\\fscx0} {\\\\fscx100}"
|
||||||
|
local SCROLLING_ADDITIONAL_BOTTOM_MARGIN = 75
|
||||||
local default_oscvisibility_state = "never"
|
local default_oscvisibility_state = "never"
|
||||||
|
|
||||||
local ALPHA_WARNING_TEXT_COLOUR = "FF00FF" -- RBG
|
local ALPHA_WARNING_TEXT_COLOUR = "FF00FF" -- RBG
|
||||||
@ -904,7 +905,7 @@ function set_syncplayintf_options(input)
|
|||||||
--mp.command('print-text "<chat>'..option.."="..tostring(value).." - "..valueType..'</chat>"')
|
--mp.command('print-text "<chat>'..option.."="..tostring(value).." - "..valueType..'</chat>"')
|
||||||
end
|
end
|
||||||
chat_format = get_output_style()
|
chat_format = get_output_style()
|
||||||
local vertical_output_area = CANVAS_HEIGHT-(opts['chatTopMargin']+opts['chatBottomMargin']+(opts['chatOutputFontSize']+opts['scrollingFirstRowOffset']))
|
local vertical_output_area = CANVAS_HEIGHT-(opts['chatTopMargin']+opts['chatBottomMargin']+(opts['chatOutputFontSize']*opts['scrollingFirstRowOffset'])+SCROLLING_ADDITIONAL_BOTTOM_MARGIN)
|
||||||
max_scrolling_rows = math.floor(vertical_output_area/opts['chatOutputFontSize'])
|
max_scrolling_rows = math.floor(vertical_output_area/opts['chatOutputFontSize'])
|
||||||
local user_opts = { visibility = "auto", }
|
local user_opts = { visibility = "auto", }
|
||||||
opt.read_options(user_opts, "osc")
|
opt.read_options(user_opts, "osc")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user