local t={}t.left={startScale=0,getOffset=function()local t=48+IconController.leftOffset if checkTopbarEnabled()then local J=starterGui:GetCoreGuiEnabled("\067\104\097\116")if J then t+=44 end if isVoiceChatEnabled and not isStudio then if J then t+=67 else t+=43 end end end return t end,getStartOffset=function()local J=IconController.leftGap local a=t.left.getOffset()+J return a end;records={}}t.mid={startScale=.5;getOffset=function()return 0 end;getStartOffset=function(t)local J=IconController.midGap return-t/2+J/2 end;records={}}t.right={startScale=1,getOffset=function()local t=IconController.rightOffset if checkTopbarEnabled()and(starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList)or starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack)or starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu))then t+=48 end return t end,getStartOffset=function(J)local a=-J-t.right.getOffset()return a end,records={}}

local alignmentDetails = {}
alignmentDetails["left"] = {
	startScale = 0,
	getOffset = function()
		local offset = 48 + IconController.leftOffset
		if checkTopbarEnabled() then
			local chatEnabled = starterGui:GetCoreGuiEnabled("Chat")
			if chatEnabled then
				offset += 12 + 32
			end
			if isVoiceChatEnabled and not isStudio then
				if chatEnabled then
					offset += 67
				else
					offset += 43
				end
			end
		end
		return offset
	end,
	getStartOffset = function()
		local alignmentGap = IconController["leftGap"]
		local startOffset = alignmentDetails.left.getOffset() + alignmentGap
		return startOffset
	end,
	records = {}
}
alignmentDetails["mid"] = {
	startScale = 0.5,
	getOffset = function()
		return 0
	end,
	getStartOffset = function(totalIconX) 
		local alignmentGap = IconController["midGap"]
		return -totalIconX/2 + (alignmentGap/2)
	end,
	records = {}
}
alignmentDetails["right"] = {
	startScale = 1,
	getOffset = function()
		local offset = IconController.rightOffset
		if checkTopbarEnabled() and (starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.PlayerList) or starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.Backpack) or starterGui:GetCoreGuiEnabled(Enum.CoreGuiType.EmotesMenu)) then
			offset += 48
		end
		return offset
	end,
	getStartOffset = function(totalIconX)
		local startOffset = -totalIconX - alignmentDetails.right.getOffset()
		return startOffset
	end,
	records = {}
	--reverseSort = true
}


