local H=require(((game:GetService("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101")):WaitForChild("\080\114\111\106\101\099\116")):WaitForChild("\082\101\112\108\105\099\097\116\101\100\083\116\111\114\097\103\101"))local u=H:GetResource("\085\073\046\066\117\116\116\111\110\046\073\109\097\103\101\069\118\101\110\116\066\105\110\100\101\114")local z=u:Extend()z:SetClassName("\087\105\100\101\084\101\120\116\066\117\116\116\111\110\068\101\099\111\114\097\116\111\114")function z.__new(z,H,u)z:InitializeSuper(H,UDim2.new(1,0,1,0),"\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\050\054\050\050\054\051","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\051\049\050\051\051\056","\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\051\049\050\056\056\056")local A=Instance.new("\084\101\120\116\076\097\098\101\108")A.BackgroundTransparency=1 A.Size=UDim2.new(.8,0,.8,0)A.Position=UDim2.new(.1,0,.025,0)A.Font=Enum.Font.Antique A.Text=u A.TextColor3=Color3.new(.15686274509804,.15686274509804,.15686274509804)A.TextScaled=true A.ZIndex=H.ZIndex A.Parent=H;(H:GetPropertyChangedSignal("\073\109\097\103\101")):Connect(function()if H.Image=="\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\051\049\050\051\051\056"then A.TextColor3=Color3.new(.31764705882353,.16078431372549,.34901960784314)elseif H.Image=="\114\098\120\097\115\115\101\116\105\100\058\047\047\053\053\053\056\051\049\050\056\056\056"then A.TextColor3=Color3.new(.26274509803922,.10588235294118,.29411764705882)else A.TextColor3=Color3.new(.15686274509804,.15686274509804,.15686274509804)end end)end return z
--[[
TheNexusAvenger

Decorates an ImageLabel with the
appearance of a wide text button.
--]]

local ReplicatedStorageProject = require(game:GetService("ReplicatedStorage"):WaitForChild("Project"):WaitForChild("ReplicatedStorage"))

local ImageEventBinder = ReplicatedStorageProject:GetResource("UI.Button.ImageEventBinder")

local WideTextButtonDecorator = ImageEventBinder:Extend()
WideTextButtonDecorator:SetClassName("WideTextButtonDecorator")



--[[
Creates a button decorator.
--]]
function WideTextButtonDecorator:__new(ImageLabel,Text)
    self:InitializeSuper(ImageLabel,UDim2.new(1,0,1,0),"rbxassetid://5558262263","rbxassetid://5558312338","rbxassetid://5558312888")

    --Create the text label.
    local ButtonText = Instance.new("TextLabel")
    ButtonText.BackgroundTransparency = 1
    ButtonText.Size = UDim2.new(0.8,0,0.8,0)
    ButtonText.Position = UDim2.new(0.1,0,0.025,0)
    ButtonText.Font = Enum.Font.Antique
    ButtonText.Text = Text
    ButtonText.TextColor3 = Color3.new(40/255,40/255,40/255)
    ButtonText.TextScaled = true
    ButtonText.ZIndex = ImageLabel.ZIndex
    ButtonText.Parent = ImageLabel

    --Connect updating the text color.
    ImageLabel:GetPropertyChangedSignal("Image"):Connect(function()
        if ImageLabel.Image == "rbxassetid://5558312338" then
            ButtonText.TextColor3 = Color3.new(81/255,41/255,89/255)
        elseif ImageLabel.Image == "rbxassetid://5558312888" then
            ButtonText.TextColor3 = Color3.new(67/255,27/255,75/255)
        else
            ButtonText.TextColor3 = Color3.new(40/255,40/255,40/255)
        end
    end)
end



return WideTextButtonDecorator