1. #1
    Herald of the Titans iLive's Avatar
    15+ Year Old Account
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    2,556

    Question Is it possible to connect two action bars with Bartender?

    Hi mates,

    I was wondering if it's possible to connect two action bars with Bartender 4? I know I can move them up against each other, but since I have the bars faded out, I want them both to become visible when I place my mouse over one of them. Help appreciated.

  2. #2

  3. #3
    Herald of the Titans iLive's Avatar
    15+ Year Old Account
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    2,556
    Quote Originally Posted by Treeston View Post
    I just replied to your PM and hoped you would answer in here. Damn I like you Treeston. But I swear I made a search first! :P

    ---------- Post added 2011-08-16 at 02:39 AM ----------

    It didn't work, and yes I did change "local b1,b2 = "BT4Bar4", "BT4Bar5"" to the appropriate bars.

  4. #4
    Deleted
    Just to be sure, you did replace the first line with BT4BarX in quotes?

    If you did: Any Lua errors popping up?

  5. #5
    Herald of the Titans iLive's Avatar
    15+ Year Old Account
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    2,556
    Code:
    local b1,b2 = "BT4Bar5", "BT4Bar6"
    local function hook()
        local s1,s2 = b1.SetAlpha,b2.SetAlpha
        function b1:SetAlpha(v)
            s1(b1,v)
            s2(b2,v)
        end
        function b2:SetAlpha(v)
            s1(b1,v)
            s2(b2,v)
        end
    end
    CreateFrame("Frame"):SetScript("OnUpdate", function(self)
        local t1,t2 = (type(b1)=="string"),(type(b2)=="string")
        if t1 and _G[b1] then
            b1=_G[b1]
            t1=false
        end
        if t2 and _G[b2] then
            b2=_G[b2]
            t2=false
        end
        if (not t1) and (not t2) then
            self:Hide()
            hook()
        end
    end)
    I want to connect bar 5 and 6, and I received no errors in-game. Is it because I didn't have both addons faded out before I made the addon?

  6. #6
    Deleted
    Nope, it should re-hook every time you load. Code looks fine to me. You sure that your TOC is fine?

  7. #7
    Herald of the Titans iLive's Avatar
    15+ Year Old Account
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    2,556
    Quote Originally Posted by Treeston View Post
    Nope, it should re-hook every time you load. Code looks fine to me. You sure that your TOC is fine?
    Oops.

Posting Permissions

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