tabs:AddTab now returns the tabbutton object associated with the new tab

This commit is contained in:
Kenny Shields 2014-05-13 19:35:02 -04:00
parent a02fafd902
commit c674b46a0c

View File

@ -330,7 +330,7 @@ function newobject:AddTab(name, object, tip, image, onopened, onclosed)
object:SetSize(self.width - padding * 2, (self.height - tabheight) - padding * 2) object:SetSize(self.width - padding * 2, (self.height - tabheight) - padding * 2)
end end
return self return tab
end end