local p="\078\101\120\117\115\071\117\105\066\117\116\116\111\110"local u=(require(script.Parent.Parent.Parent.Parent:WaitForChild("\078\101\120\117\115\080\108\117\103\105\110\070\114\097\109\101\119\111\114\107\080\114\111\106\101\099\116"))):GetContext(script)local L=u:GetResource("\066\097\115\101\046\078\101\120\117\115\087\114\097\112\112\101\100\073\110\115\116\097\110\099\101")local i=L:Extend()i:SetClassName(p)u:SetContextResource(i)function i.__new(L,u)L:InitializeSuper(u)L.Name=p;(L:GetPropertyChangedSignal("\068\105\115\097\098\108\101\100")):Connect(function()L.AutoButtonColor=not L.Disabled end)end return i
--[[
TheNexusAvenger

Gui button that disables auto button colors when disabled.
Class is abstract, so it should not be called directly.
--]]

local CLASS_NAME = "NexusGuiButton"



local NexusPluginFramework = require(script.Parent.Parent.Parent.Parent:WaitForChild("NexusPluginFrameworkProject")):GetContext(script)
local NexusWrappedInstance = NexusPluginFramework:GetResource("Base.NexusWrappedInstance")

local NexusGuiButton = NexusWrappedInstance:Extend()
NexusGuiButton:SetClassName(CLASS_NAME)
NexusPluginFramework:SetContextResource(NexusGuiButton)



--[[
Creates a Nexus Gui Button object.
--]]
function NexusGuiButton:__new(ButtonClassName)
	self:InitializeSuper(ButtonClassName)
	self.Name = CLASS_NAME
	
	--Set up auto button color disabling.
	self:GetPropertyChangedSignal("Disabled"):Connect(function()
		self.AutoButtonColor = not self.Disabled
	end)
end



return NexusGuiButton