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

function Icon:deselect(byIcon)
	if self.locked then return self end
	self:_setToggleItemsVisible(false, byIcon)
	self:_updateNotice()
	
	self.isSelecting = false
	self:_updateAll() --*****
	self.isSelecting = true
	
	self:_playClickSound()
	if #self.dropdownIcons > 0 or #self.menuIcons > 0 then
		IconController:_updateSelectionGroup()
	end
    self.deselected:Fire()
	self.toggled:Fire(self.isSelected)
	wait(1)
	self.isSelected = false
	self:_setToggleItemsVisible(false, byIcon)
	self:_updateNotice()
	self:_updateAll() --*****
	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


