local g="\078\101\120\117\115\080\108\117\103\105\110\084\111\111\108\098\097\114"local A=(require(script.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 I=A: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 O=A:GetResource("\080\108\117\103\105\110\046\078\101\120\117\115\080\108\117\103\105\110")local Y=A:GetResource("\080\108\117\103\105\110\046\078\101\120\117\115\080\108\117\103\105\110\066\117\116\116\111\110")local z=I:Extend()z:SetClassName(g)A:SetContextResource(z)function z.__new(I,A)local Y=(O.GetPlugin()):CreateToolbar(A)I:InitializeSuper(Y)I.Name=g I:__SetChangedOverride("\084\111\111\108\098\097\114",function() end)I.Toolbar=Y end function z.CreateButton(O,g,A,I)return Y.new(O,g,A,I)end return z
--[[
TheNexusAvenger

Mirrors the API of Roblox's PluginToolbar class.
--]]

local CLASS_NAME = "NexusPluginToolbar"



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

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



--[[
Creates a Nexus Plugin Toolbar object.
--]]
function NexusPluginToolbar:__new(ToolbarName)
	local Toolbar = NexusPlugin.GetPlugin():CreateToolbar(ToolbarName)
	self:InitializeSuper(Toolbar)
	self.Name = CLASS_NAME
	
	--Store the toolbar.
	self:__SetChangedOverride("Toolbar",function() end)
	self.Toolbar = Toolbar
end

--[[
Creates a button button.
--]]
function NexusPluginToolbar:CreateButton(ButtonName,ButtonTooltip,ButtonIcon)
	return NexusPluginButton.new(self,ButtonName,ButtonTooltip,ButtonIcon)
end



return NexusPluginToolbar