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
function OSD:new()
return setmetatable({ text = {} }, self)
return setmetatable({ messages = {} }, self)
end
function OSD:append(s)
table.insert(self.text, s)
table.insert(self.messages, s)
return self
end
@ -47,7 +47,7 @@ function OSD:align(number)
end
function OSD:get_text()
return table.concat(self.text)
return table.concat(self.messages)
end
function OSD:color(code)