--Button interface

function touch_button:Enable(id)
	if id ~= nil then
		if not self.enabled then
			self.button.ImageTransparency = 0
			self.button.Active = true
			self.enabled = true
		end
		if self.button.Image ~= id then
			self.button.Image = id
		end
	elseif self.enabled then
		self.button.ImageTransparency = 1
		self.enabled = false
	end
end

return touch_button
