rename text
This commit is contained in:
parent
51e359b696
commit
b3ef9a2324
|
@ -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)
|
||||||
|
|
Loading…
Reference in a new issue