function Icon.set(o,B,a,R,N)local l=o._settingsDictionary[B]assert(l~=nil,("\115\101\116\116\105\110\103 \'\037\115\' \100\111\101\115 \110\111\116 \101\120\105\115\116"):format(B))if type(R)=="\115\116\114\105\110\103"then R=R:lower()end local L=o:get(B,R)if R=="\104\111\118\101\114\105\110\103"then l.hoveringValue=a if N~="\095\105\103\110\111\114\101\080\114\101\118\105\111\117\115"then l.additionalValues["\112\114\101\118\105\111\117\115\095"..R]=L end if type(N)=="\115\116\114\105\110\103"then l.additionalValues[N..("\095"..R)]=L end o:_update(B)else local w=R local P=l.type if P=="\116\111\103\103\108\101\097\098\108\101"then local B={}if w=="\100\101\115\101\108\101\099\116\101\100"or w=="\115\101\108\101\099\116\101\100"then table.insert(B,w)else table.insert(B,"\100\101\115\101\108\101\099\116\101\100")table.insert(B,"\115\101\108\101\099\116\101\100")w=nil end for B,R in pairs(B)do l.values[R]=a if N~="\095\105\103\110\111\114\101\080\114\101\118\105\111\117\115"then l.additionalValues["\112\114\101\118\105\111\117\115\095"..R]=L end if type(N)=="\115\116\114\105\110\103"then l.additionalValues[N..("\095"..R)]=L end end else l.value=a if type(N)=="\115\116\114\105\110\103"then if N~="\095\105\103\110\111\114\101\080\114\101\118\105\111\117\115"then l.additionalValues.previous=L end l.additionalValues[N]=L end end if L==a then return o,"\086\097\108\117\101 \119\097\115 \097\108\114\101\097\100\121 \115\101\116"end local O=o:getToggleState()if not o._updateAfterSettingAll and(l.instanceNames and(O==w or w==nil))then local a=B=="\105\099\111\110\083\105\122\101"and(L and L.X.Scale==1)local R=l.tweenAction and(not a and o:get(l.tweenAction))or TweenInfo.new(0)o:_update(B,O,R)end end if l.callMethods then for B,N in pairs(l.callMethods)do N(o,a,R)end end if l.callSignals then for B,a in pairs(l.callSignals)do a:Fire()end end return o end function Icon.setAdditionalValue(o,B,a,R,N)local l=o._settingsDictionary[B]assert(l~=nil,("\115\101\116\116\105\110\103 \'\037\115\' \100\111\101\115 \110\111\116 \101\120\105\115\116"):format(B))local L=a.."\095"if N then L=L..N end for B,a in pairs(l.additionalValues)do if string.match(B,L)then l.additionalValues[B]=R end end end function Icon.get(N,B,a,R)local o=N._settingsDictionary[B]assert(o~=nil,("\115\101\116\116\105\110\103 \'\037\115\' \100\111\101\115 \110\111\116 \101\120\105\115\116"):format(B))local l,L if typeof(a)=="\115\116\114\105\110\103"then a=a:lower()end if a=="\104\111\118\101\114\105\110\103"and R==nil then l=o.hoveringValue L=type(R)=="\115\116\114\105\110\103"and o.additionalValues[R..("\095"..a)]end local w=o.type if w=="\116\111\103\103\108\101\097\098\108\101"then local B=(a=="\100\101\115\101\108\101\099\116\101\100"or a=="\115\101\108\101\099\116\101\100")and a or N:getToggleState()if L==nil then L=type(R)=="\115\116\114\105\110\103"and o.additionalValues[R..("\095"..B)]end if l==nil then l=o.values[B]end else if L==nil then L=type(R)=="\115\116\114\105\110\103"and o.additionalValues[R]end if l==nil then l=o.value end end return l,L end function Icon.getHovering(a,B)local R=a._settingsDictionary[B]assert(R~=nil,("\115\101\116\116\105\110\103 \'\037\115\' \100\111\101\115 \110\111\116 \101\120\105\115\116"):format(B))return R.hoveringValue end function Icon.getToggleState(a,B)B=B or a.isSelected return B and"\115\101\108\101\099\116\101\100"or"\100\101\115\101\108\101\099\116\101\100"end function Icon.getIconState(B)if B.hovering then return"\104\111\118\101\114\105\110\103"else return B:getToggleState()end end function Icon._update(N,B,a,R)local o=N._settingsDictionary[B]assert(o~=nil,("\115\101\116\116\105\110\103 \'\037\115\' \100\111\101\115 \110\111\116 \101\120\105\115\116"):format(B))a=a or N:getToggleState()local l=o.value or o.values and o.values[a]if N.hovering and o.hoveringValue then l=o.hoveringValue end if l==nil then return end local L=R or o.tweenAction and(o.tweenAction~=""and N:get(o.tweenAction))or N:get("\116\111\103\103\108\101\084\114\097\110\115\105\116\105\111\110\073\110\102\111")or TweenInfo.new(.15)local w=o.propertyName local P={string=true;NumberSequence=true;Text=true,EnumItem=true;ColorSequence=true}local O=N._uniqueSettingsDictionary[B]local D=l if o.useForcedGroupValue then D=o.forcedGroupValue end if o.instanceNames then for a,R in pairs(o.instanceNames)do local o=N.instances[R]local Y=typeof(o[w])local x=P[Y]or typeof(o)=="\116\097\098\108\101"if O then O(B,o,w,D)elseif x then o[w]=l else(tweenService:Create(o,L,{[w]=D})):Play()end if B=="\105\099\111\110\083\105\122\101"and o[w]~=D then N.updated:Fire()end end end end function Icon._updateAll(R,B,a)for N,o in pairs(R._settingsDictionary)do if o.instanceNames then R:_update(N,B,a)end end end function Icon._updateHovering(a,B)for R,N in pairs(a._settingsDictionary)do if N.instanceNames and N.hoveringValue~=nil then a:_update(R,nil,B)end end end function Icon._updateStateOverlay(R,B,a)local N=R.instances.iconOverlay N.BackgroundTransparency=B or 1 N.BackgroundColor3=a or Color3.new(1,1,1)end function Icon.setTheme(R,B,a)R._updateAfterSettingAll=a for B,a in pairs(B)do if B=="\116\111\103\103\108\101\097\098\108\101"then for B,a in pairs(a.deselected)do if not R.lockedSettings[B]then R:set(B,a,"\098\111\116\104")end end for B,a in pairs(a.selected)do if not R.lockedSettings[B]then R:set(B,a,"\115\101\108\101\099\116\101\100")end end else for a,N in pairs(a)do if not R.lockedSettings[a]then local o=R._settingsDictionary[a]if B=="\097\099\116\105\111\110"and o==nil then o={}R._settingsDictionary[a]={}end R:set(a,N)end end end end R._updateAfterSettingAll=nil if a then R:_updateAll()end return R end function Icon.getInstance(a,B)return a.instances[B]end function Icon.setInstance(R,B,a)local N=R.instances[B]R.instances[B]=a if N then N:Destroy()end return R end function Icon.getSettingDetail(a,B)for a,R in pairs(a._settings)do for a,R in pairs(R)do if a==B then return R end end end return false end function Icon.modifySetting(R,B,a)local N=R:getSettingDetail(B)for B,a in pairs(a)do N[B]=a end return R end function Icon.convertLabelToNumberSpinner(a,B)a:set("\105\099\111\110\076\097\098\101\108\083\105\122\101",UDim2.new(1,0,1,0))B.Parent=a:getInstance("\105\099\111\110\066\117\116\116\111\110")local R={}setmetatable(R,{__newindex=function(a,R,N)for B,a in pairs(B.Frame:GetDescendants())do if a:IsA("\084\101\120\116\076\097\098\101\108")then a[R]=N end end end})local N=a:getInstance("\105\099\111\110\066\117\116\116\111\110")N.ZIndex=0 a:setInstance("\105\099\111\110\076\097\098\101\108",R)a:modifySetting("\105\099\111\110\084\101\120\116",{instanceNames={}})a:setInstance("\105\099\111\110\076\097\098\101\108\083\112\105\110\110\101\114",B.Frame)local o={"\105\099\111\110\076\097\098\101\108\086\105\115\105\098\108\101","\105\099\111\110\076\097\098\101\108\065\110\099\104\111\114\080\111\105\110\116";"\105\099\111\110\076\097\098\101\108\080\111\115\105\116\105\111\110";"\105\099\111\110\076\097\098\101\108\083\105\122\101"}for B,R in pairs(o)do a:modifySetting(R,{instanceNames={"\105\099\111\110\076\097\098\101\108\083\112\105\110\110\101\114"}})end a:_updateAll()return a end function Icon.setEnabled(a,B)a.enabled=B a.instances.iconContainer.Visible=B a.updated:Fire()return a end function Icon.setName(a,B)a.name=B a.instances.iconContainer.Name=B return a end function Icon.setProperty(R,B,a)R[B]=a return R end function Icon._playClickSound(B)local a=B.instances.clickSound if a.SoundId~=nil and(#a.SoundId>0 and a.Volume>0)then local B=a:Clone()B.Parent=a.Parent B:Play()debris:AddItem(B,a.TimeLength)end end function Icon.select(a,B)if a.locked then return a end a.isSelected=true a:_setToggleItemsVisible(true,B)a:_updateNotice()a:_updateAll()a:_playClickSound()if#a.dropdownIcons>0 or#a.menuIcons>0 then IconController:_updateSelectionGroup()end a.selected:Fire()a.toggled:Fire(a.isSelected)return a end function Icon.deselect(a,B)if a.locked then return a end a.isSelected=false a:_setToggleItemsVisible(false,B)a:_updateNotice()a:_updateAll()a:_playClickSound()if#a.dropdownIcons>0 or#a.menuIcons>0 then IconController:_updateSelectionGroup()end a.deselected:Fire()a.toggled:Fire(a.isSelected)return a end function Icon.notify(R,B,a)(coroutine.wrap(function()if not B then B=R.deselected end if R._parentIcon then R._parentIcon:notify(B)end local N=Signal.new()local o=R._endNotices:Connect(function()N:Fire()end)local l=B:Connect(function()N:Fire()end)a=a or httpService:GenerateGUID(true)R.notices[a]={completeSignal=N;clearNoticeEvent=B}R.totalNotices+=1 R:_updateNotice()R.notified:Fire(a)N:Wait()o:Disconnect()l:Disconnect()N:Disconnect()R.totalNotices-=1 R.notices[a]=nil R:_updateNotice()end))()return R end function Icon._updateNotice(B)local a=true if B.totalNotices<1 then a=false end if not B.isSelected then if(#B.dropdownIcons>0 or#B.menuIcons>0)and B.totalNotices>0 then a=true end end if B.isSelected then if#B.dropdownIcons>0 or#B.menuIcons>0 then a=false end end local R=a and 0 or 1 B:set("\110\111\116\105\099\101\073\109\097\103\101\084\114\097\110\115\112\097\114\101\110\099\121",R)B:set("\110\111\116\105\099\101\084\101\120\116\084\114\097\110\115\112\097\114\101\110\099\121",R)B.instances.noticeLabel.Text=B.totalNotices<100 and B.totalNotices or"\057\057\043"end function Icon.clearNotices(B)B._endNotices:Fire()return B end function Icon.disableStateOverlay(a,B)if B==nil then B=true end local R=a.instances.iconOverlay R.Visible=not B return a end

function Icon:set(settingName, value, iconState, setAdditional)
	local settingDetail = self._settingsDictionary[settingName]
	assert(settingDetail ~= nil, ("setting '%s' does not exist"):format(settingName))
	if type(iconState) == "string" then
		iconState = iconState:lower()
	end
	local previousValue = self:get(settingName, iconState)

	if iconState == "hovering" then
		-- Apply hovering state if valid
		settingDetail.hoveringValue = value
		if setAdditional ~= "_ignorePrevious" then
			settingDetail.additionalValues["previous_"..iconState] = previousValue
		end
		if type(setAdditional) == "string" then
			settingDetail.additionalValues[setAdditional.."_"..iconState] = previousValue
		end
		self:_update(settingName)

	else
		-- Update the settings value
		local toggleState = iconState
		local settingType = settingDetail.type
		if settingType == "toggleable" then
			local valuesToSet = {}
			if toggleState == "deselected" or toggleState == "selected" then
				table.insert(valuesToSet, toggleState)
			else
				table.insert(valuesToSet, "deselected")
				table.insert(valuesToSet, "selected")
				toggleState = nil
			end
			for i, v in pairs(valuesToSet) do
				settingDetail.values[v] = value
				if setAdditional ~= "_ignorePrevious" then
					settingDetail.additionalValues["previous_"..v] = previousValue
				end
				if type(setAdditional) == "string" then
					settingDetail.additionalValues[setAdditional.."_"..v] = previousValue
				end
			end
		else
			settingDetail.value = value
			if type(setAdditional) == "string" then
				if setAdditional ~= "_ignorePrevious" then
					settingDetail.additionalValues["previous"] = previousValue
				end
				settingDetail.additionalValues[setAdditional] = previousValue
			end
		end

		-- Check previous and new are not the same
		if previousValue == value then
			return self, "Value was already set"
		end

		-- Update appearances of associated instances
		local currentToggleState = self:getToggleState()
		if not self._updateAfterSettingAll and settingDetail.instanceNames and (currentToggleState == toggleState or toggleState == nil) then
			local ignoreTweenAction = (settingName == "iconSize" and previousValue and previousValue.X.Scale == 1)
			local tweenInfo = (settingDetail.tweenAction and not ignoreTweenAction and self:get(settingDetail.tweenAction)) or TweenInfo.new(0)
			self:_update(settingName, currentToggleState, tweenInfo)
		end
	end

	-- Call any methods present
	if settingDetail.callMethods then
		for _, callMethod in pairs(settingDetail.callMethods) do
			callMethod(self, value, iconState)
		end
	end
	
	-- Call any signals present
	if settingDetail.callSignals then
		for _, callSignal in pairs(settingDetail.callSignals) do
			callSignal:Fire()
		end
	end
	return self
end

function Icon:setAdditionalValue(settingName, setAdditional, value, iconState)
	local settingDetail = self._settingsDictionary[settingName]
	assert(settingDetail ~= nil, ("setting '%s' does not exist"):format(settingName))
	local stringMatch = setAdditional.."_"
	if iconState then
		stringMatch = stringMatch..iconState
	end
	for key, _ in pairs(settingDetail.additionalValues) do
		if string.match(key, stringMatch) then
			settingDetail.additionalValues[key] = value
		end
	end
end

function Icon:get(settingName, iconState, getAdditional)
	local settingDetail = self._settingsDictionary[settingName]
	assert(settingDetail ~= nil, ("setting '%s' does not exist"):format(settingName))
	local valueToReturn, additionalValueToReturn
	if typeof(iconState) == "string" then
		iconState = iconState:lower()
	end

	--if ((self.hovering and settingDetail.hoveringValue) or iconState == "hovering") and getAdditional == nil then
	if (iconState == "hovering") and getAdditional == nil then
		valueToReturn = settingDetail.hoveringValue
		additionalValueToReturn = type(getAdditional) == "string" and settingDetail.additionalValues[getAdditional.."_"..iconState]
	end

	local settingType = settingDetail.type
	if settingType == "toggleable" then
		local toggleState = ((iconState == "deselected" or iconState == "selected") and iconState) or self:getToggleState()
		if additionalValueToReturn == nil then
			additionalValueToReturn = type(getAdditional) == "string" and settingDetail.additionalValues[getAdditional.."_"..toggleState]
		end
		if valueToReturn == nil then
			valueToReturn = settingDetail.values[toggleState]
		end
	
	else
		if additionalValueToReturn == nil then
			additionalValueToReturn = type(getAdditional) == "string" and settingDetail.additionalValues[getAdditional]
		end
		if valueToReturn == nil then
			valueToReturn = settingDetail.value
		end
	end

	return valueToReturn, additionalValueToReturn
end

function Icon:getHovering(settingName)
	local settingDetail = self._settingsDictionary[settingName]
	assert(settingDetail ~= nil, ("setting '%s' does not exist"):format(settingName))
	return settingDetail.hoveringValue
end

function Icon:getToggleState(isSelected)
	isSelected = isSelected or self.isSelected
	return (isSelected and "selected") or "deselected"
end

function Icon:getIconState()
	if self.hovering then
		return "hovering"
	else
		return self:getToggleState()
	end
end

function Icon:_update(settingName, toggleState, customTweenInfo)
	local settingDetail = self._settingsDictionary[settingName]
	assert(settingDetail ~= nil, ("setting '%s' does not exist"):format(settingName))
	toggleState = toggleState or self:getToggleState()
	local value = settingDetail.value or (settingDetail.values and settingDetail.values[toggleState])
	if self.hovering and settingDetail.hoveringValue then
		value = settingDetail.hoveringValue
	end
	if value == nil then return end
	local tweenInfo = customTweenInfo or (settingDetail.tweenAction and settingDetail.tweenAction ~= "" and self:get(settingDetail.tweenAction)) or self:get("toggleTransitionInfo") or TweenInfo.new(0.15)
	local propertyName = settingDetail.propertyName
	local invalidPropertiesTypes = {
		["string"] = true,
		["NumberSequence"] = true,
		["Text"] = true,
		["EnumItem"] = true,
		["ColorSequence"] = true,
	}
	local uniqueSetting = self._uniqueSettingsDictionary[settingName]
	local newValue = value
	if settingDetail.useForcedGroupValue then
		newValue = settingDetail.forcedGroupValue
	end
	if settingDetail.instanceNames then
		for _, instanceName in pairs(settingDetail.instanceNames) do
			local instance = self.instances[instanceName]
			local propertyType = typeof(instance[propertyName])
			local cannotTweenProperty = invalidPropertiesTypes[propertyType] or typeof(instance) == "table"
			if uniqueSetting then
				uniqueSetting(settingName, instance, propertyName, newValue)
			elseif cannotTweenProperty then
				instance[propertyName] = value
			else
				tweenService:Create(instance, tweenInfo, {[propertyName] = newValue}):Play()
			end
			--
			if settingName == "iconSize" and instance[propertyName] ~= newValue then
				self.updated:Fire()
			end
			--
		end
	end
end

function Icon:_updateAll(iconState, customTweenInfo)
	for settingName, settingDetail in pairs(self._settingsDictionary) do
		if settingDetail.instanceNames then
			self:_update(settingName, iconState, customTweenInfo)
		end
	end
end

function Icon:_updateHovering(customTweenInfo)
	for settingName, settingDetail in pairs(self._settingsDictionary) do
		if settingDetail.instanceNames and settingDetail.hoveringValue ~= nil then
			self:_update(settingName, nil, customTweenInfo)
		end
	end
end

function Icon:_updateStateOverlay(transparency, color)
	local stateOverlay = self.instances.iconOverlay
	stateOverlay.BackgroundTransparency = transparency or 1
	stateOverlay.BackgroundColor3 = color or Color3.new(1, 1, 1)
end

function Icon:setTheme(theme, updateAfterSettingAll)
	self._updateAfterSettingAll = updateAfterSettingAll
	for settingsType, settingsDetails in pairs(theme) do
		if settingsType == "toggleable" then
			for settingName, settingValue in pairs(settingsDetails.deselected) do
				if not self.lockedSettings[settingName] then
					self:set(settingName, settingValue, "both")
				end
			end
			for settingName, settingValue in pairs(settingsDetails.selected) do
				if not self.lockedSettings[settingName] then
					self:set(settingName, settingValue, "selected")
				end
			end
		else
			for settingName, settingValue in pairs(settingsDetails) do
				if not self.lockedSettings[settingName] then
					local settingDetail = self._settingsDictionary[settingName]
					if settingsType == "action" and settingDetail == nil then
						settingDetail = {}
						self._settingsDictionary[settingName] = {}
					end
					self:set(settingName, settingValue)
				end
			end
		end
	end
	self._updateAfterSettingAll = nil
	if updateAfterSettingAll then
		self:_updateAll()
	end
	return self
end

function Icon:getInstance(instanceName)
	return self.instances[instanceName]
end

function Icon:setInstance(instanceName, instance)
	local originalInstance = self.instances[instanceName]
	self.instances[instanceName] = instance
	if originalInstance then
		originalInstance:Destroy()
	end
	return self
end

function Icon:getSettingDetail(targetSettingName)
	for _, settingsDetails in pairs(self._settings) do
		for settingName, settingDetail in pairs(settingsDetails) do
			if settingName == targetSettingName then
				return settingDetail
			end
		end
	end
	return false
end

function Icon:modifySetting(settingName, dictionary)
	local settingDetail = self:getSettingDetail(settingName)
	for key, value in pairs(dictionary) do
		settingDetail[key] = value
	end
	return self
end

function Icon:convertLabelToNumberSpinner(numberSpinner)
	-- This updates the number spinners appearance
	self:set("iconLabelSize", UDim2.new(1,0,1,0))
	numberSpinner.Parent = self:getInstance("iconButton")

	-- This creates a fake iconLabel which updates the property of all descendant spinner TextLabels when indexed
	local textLabel = {}
	setmetatable(textLabel, {__newindex = function(_, index, value)
		for _, label in pairs(numberSpinner.Frame:GetDescendants()) do
			if label:IsA("TextLabel") then
				label[index] = value
			end
		end
	end})

	-- This overrides existing instances and settings so that they update the spinners properties (instead of the old textlabel)
	local iconButton = self:getInstance("iconButton")
	iconButton.ZIndex = 0
	self:setInstance("iconLabel", textLabel)
	self:modifySetting("iconText", {instanceNames = {}}) -- We do this to prevent text being modified within the metatable above
	self:setInstance("iconLabelSpinner", numberSpinner.Frame)
	local settingsToConvert = {"iconLabelVisible", "iconLabelAnchorPoint", "iconLabelPosition", "iconLabelSize"}
	for _, settingName in pairs(settingsToConvert) do
		self:modifySetting(settingName, {instanceNames = {"iconLabelSpinner"}})
	end

	-- This applies all the values we just updated
	self:_updateAll()
	return self
end

function Icon:setEnabled(bool)
	self.enabled = bool
	self.instances.iconContainer.Visible = bool
	self.updated:Fire()
	return self
end

function Icon:setName(string)
	self.name = string
	self.instances.iconContainer.Name = string
	return self
end

function Icon:setProperty(propertyName, value)
	self[propertyName] = value
	return self
end

function Icon:_playClickSound()
	local clickSound = self.instances.clickSound
	if clickSound.SoundId ~= nil and #clickSound.SoundId > 0 and clickSound.Volume > 0 then
		local clickSoundCopy = clickSound:Clone()
		clickSoundCopy.Parent = clickSound.Parent
		clickSoundCopy:Play()
		debris:AddItem(clickSoundCopy, clickSound.TimeLength)
	end
end

function Icon:select(byIcon)
	if self.locked then return self end
	self.isSelected = true
	self:_setToggleItemsVisible(true, byIcon)
	self:_updateNotice()
	self:_updateAll()
	self:_playClickSound()
	if #self.dropdownIcons > 0 or #self.menuIcons > 0 then
		IconController:_updateSelectionGroup()
	end
    self.selected:Fire()
    self.toggled:Fire(self.isSelected)
	return self
end

function Icon:deselect(byIcon)
	if self.locked then return self end
	self.isSelected = false
	self:_setToggleItemsVisible(false, byIcon)
	self:_updateNotice()
	self:_updateAll()
	self:_playClickSound()
	if #self.dropdownIcons > 0 or #self.menuIcons > 0 then
		IconController:_updateSelectionGroup()
	end
    self.deselected:Fire()
    self.toggled:Fire(self.isSelected)
	return self
end

function Icon:notify(clearNoticeEvent, noticeId)
	coroutine.wrap(function()
		if not clearNoticeEvent then
			clearNoticeEvent = self.deselected
		end
		if self._parentIcon then
			self._parentIcon:notify(clearNoticeEvent)
		end
		
		local notifComplete = Signal.new()
		local endEvent = self._endNotices:Connect(function()
			notifComplete:Fire()
		end)
		local customEvent = clearNoticeEvent:Connect(function()
			notifComplete:Fire()
		end)
		
		noticeId = noticeId or httpService:GenerateGUID(true)
		self.notices[noticeId] = {
			completeSignal = notifComplete,
			clearNoticeEvent = clearNoticeEvent,
		}
		self.totalNotices += 1
		self:_updateNotice()

		self.notified:Fire(noticeId)
		notifComplete:Wait()
		
		endEvent:Disconnect()
		customEvent:Disconnect()
		notifComplete:Disconnect()
		
		self.totalNotices -= 1
		self.notices[noticeId] = nil
		self:_updateNotice()
	end)()
	return self
end

function Icon:_updateNotice()
	local enabled = true
	if self.totalNotices < 1 then
		enabled = false
	end
	-- Deselect
	if not self.isSelected then
		if (#self.dropdownIcons > 0 or #self.menuIcons > 0) and self.totalNotices > 0 then
			enabled = true
		end
	end
	-- Select
	if self.isSelected then
		if #self.dropdownIcons > 0 or #self.menuIcons > 0 then
			enabled = false
		end
	end
	local value = (enabled and 0) or 1
	self:set("noticeImageTransparency", value)
	self:set("noticeTextTransparency", value)
	self.instances.noticeLabel.Text = (self.totalNotices < 100 and self.totalNotices) or "99+"
end

function Icon:clearNotices()
	self._endNotices:Fire()
	return self
end

function Icon:disableStateOverlay(bool)
	if bool == nil then
		bool = true
	end
	local stateOverlay = self.instances.iconOverlay
	stateOverlay.Visible = not bool
	return self
end


