• 0

    posted a message on SecureActionButtonTemplate macrotext + guildremove

    local frame = CreateFrame("Button", "TestKick", UIParent, "SecureActionButtonTemplate")
    frame:SetHeight(40)
    frame:SetWidth(100)
    frame:SetPoint("TOP")
    frame:SetAttribute("type", "macro")
    frame:SetAttribute("macrotext", "/guildremove Knoot")
    frame.text = frame:CreateFontString(nil, "OVERLAY")
    frame.text:SetFont(STANDARD_TEXT_FONT, 16, "THINOUTLINE")
    frame.text:SetPoint("CENTER")
    frame.text:SetText("Yes!")

     

    please tell me what the mistake is.
    I constantly get an error: The modification was blocked

    Posted in: Lua Code Discussion
  • To post a comment, please or register a new account.