function setIcon(T)local E=UiFrame:FindFirstChild(T.Name)if E then local i=T.Value if i then E.Visible=true E.Item.Text=i.Name else E.Visible=false end end end

function setIcon(v)
	local imageButton = UiFrame:FindFirstChild(v.Name)
	if imageButton then
		--imageButton.Image = ''
		local tool = v.Value
		if tool then
			imageButton.Visible = true
			--imageButton.Image = tool.TextureId
			imageButton.Item.Text = tool.Name
		else
			imageButton.Visible = false
		end
	end
end

