Misc lua code cleanups
This commit is contained in:
parent
6319fc5bb4
commit
352a3dff69
@ -204,7 +204,6 @@ function process_alert_osd()
|
|||||||
local messageString = wordwrapify_string(alert_osd)
|
local messageString = wordwrapify_string(alert_osd)
|
||||||
local startRow = 0
|
local startRow = 0
|
||||||
if messageString ~= '' and messageString ~= nil then
|
if messageString ~= '' and messageString ~= nil then
|
||||||
local toDisplay
|
|
||||||
rowsCreated = rowsCreated + 1
|
rowsCreated = rowsCreated + 1
|
||||||
messageString = messageColour..messageString
|
messageString = messageColour..messageString
|
||||||
if stringToAdd ~= "" then
|
if stringToAdd ~= "" then
|
||||||
@ -222,10 +221,8 @@ function process_notification_osd(startRow)
|
|||||||
local startRow = startRow
|
local startRow = startRow
|
||||||
local stringToAdd = ""
|
local stringToAdd = ""
|
||||||
if notification_osd ~= "" and mp.get_time() - last_notification_osd_time < opts['alertTimeout'] and last_notification_osd_time ~= nil then
|
if notification_osd ~= "" and mp.get_time() - last_notification_osd_time < opts['alertTimeout'] and last_notification_osd_time ~= nil then
|
||||||
local messageColour
|
local messageColour = "{\\1c&H"..NOTIFICATION_TEXT_COLOUR.."}"
|
||||||
messageColour = "{\\1c&H"..NOTIFICATION_TEXT_COLOUR.."}"
|
local messageString = wordwrapify_string(notification_osd)
|
||||||
local messageString
|
|
||||||
messageString = wordwrapify_string(notification_osd)
|
|
||||||
messageString = messageColour..messageString
|
messageString = messageColour..messageString
|
||||||
messageString = format_chatroom(messageString)
|
messageString = format_chatroom(messageString)
|
||||||
stringToAdd = messageString
|
stringToAdd = messageString
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user