-- << FUNCTIONS >>

function module:CoreGUIsChanged()
	if main.topbarEnabled then
		--TopBar Icon Position
		local enabledCount = 1
		if main.starterGui:GetCoreGuiEnabled("Chat") and main.device ~= "Console" then
			--[[if main.device == "Mobile" then
				enabledCount = enabledCount + 2
			else
				enabledCount = enabledCount + 1
			end--]]
			enabledCount = enabledCount + 1
		end
		if main.starterGui:GetCoreGuiEnabled("Backpack") then
			enabledCount = enabledCount + 1
		end
		if main.starterGui:GetCoreGuiEnabled("EmotesMenu") and main.humanoidRigType == Enum.HumanoidRigType.R15 then
			enabledCount = enabledCount + 1
		end
		imageButton.Position = UDim2.new(0,50*enabledCount,0.1,0)
		
		--TopBar Transparency
		main.playerGui:SetTopbarTransparency(1)
		
	end
end


