rename text

This commit is contained in:
Ren Tatsumoto 2021-04-16 18:40:07 +03:00
parent 51e359b696
commit b3ef9a2324

View file

@ -22,11 +22,11 @@ local OSD = {}
OSD.__index = OSD OSD.__index = OSD
function OSD:new() function OSD:new()
return setmetatable({ text = {} }, self) return setmetatable({ messages = {} }, self)
end end
function OSD:append(s) function OSD:append(s)
table.insert(self.text, s) table.insert(self.messages, s)
return self return self
end end
@ -47,7 +47,7 @@ function OSD:align(number)
end end
function OSD:get_text() function OSD:get_text()
return table.concat(self.text) return table.concat(self.messages)
end end
function OSD:color(code) function OSD:color(code)