1. #1

    Simple addon not working

    Im trying to create a macro that will hide ActionButton1-8 but it isnt working

    this is in the ToC

    "
    ## Interface: 40000
    ## Title: hideAB
    ## Version: 2.2
    ## Notes: Hides AB 1-8
    ## Author: Huike

    hideAB.lua

    "



    this is in the lua

    "


    run ActionButton1:Hide()

    run ActionButton3:Hide()

    run ActionButton4:Hide()

    run ActionButton5:Hide()

    run ActionButton6:Hide()

    run ActionButton7:Hide()

    run ActionButton8:Hide()

    run ActionButton2:Hide()


    "

  2. #2
    Deleted
    Drop the "run" part.

  3. #3
    Quote Originally Posted by Treeston View Post
    Drop the "run" part.
    i did, still didnt work

    ---------- Post added 2012-10-26 at 06:26 AM ----------

    It's really weird because the script works in game but it doesnt work when I put it in a macro (also, moveanything cant hide this action bar either for some reason)

  4. #4
    Deleted
    Code:
    local function hide(f) if not f then print("Frame not yet created!") return end f:Hide() f:HookScript("OnShow",f.Hide) end
    
    hide(ActionButton1)
    hide(ActionButton2)
    hide(ActionButton3)
    hide(ActionButton4)
    hide(ActionButton5)
    hide(ActionButton6)
    hide(ActionButton7)
    hide(ActionButton8)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •