tooltip: Support generic properties in constructor

This commit is contained in:
Emmanuel Lepage Vallee 2016-06-01 14:21:23 -04:00
parent bc3cbc44c9
commit 2088ca26e8
1 changed files with 7 additions and 0 deletions

View File

@ -598,6 +598,13 @@ function tooltip.new(args)
end
end
-- Apply the properties
for k, v in pairs(args) do
if tooltip["set_"..k] then
self[k] = v
end
end
return self
end