-- Set up the event handlers for the TextButton icons in the gui.Main frame

local buttons = openGui:GetChildren()
for _, button in ipairs(buttons) do
	if button:IsA("TextButton") then
		button.MouseButton1Click:Connect(function()
			openGui.Visible = false
			toggleWindow(button)
		end)
	end
end
