1. #1
    The Patient Jake5467's Avatar
    10+ Year Old Account
    Join Date
    Apr 2011
    Location
    Sydney, Australia
    Posts
    276

    [Solved] Advance Bartender 4 help

    So I have 2 side bars that fade out to 0% alpha until mouseover. Bar 3 is against the edge of the screen and bar 4 is just a bit to the left of it, and I want to make is so when I mouseover bar 4, bar 3 also comes up so it doesn't look like bar 4 is floating. I'm fairly certain all I do is type into custom condition "show when bar 4 is mouseover" or something, could you guys give me the extra script to type in? Don't know what it is. Cheers!

  2. #2
    It's a little more complicated than what can fit inside of Bartender's custom conditions. You have to make this code into it's own addon. Treeston wrote it a while back:

    LUA File
    PHP Code:
    local b1,b2 "BT4Bar3""BT4Bar4"
    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[b1then
            b1
    =_G[b1]
            
    t1=false
        end
        
    if t2 and _G[b2then
            b2
    =_G[b2]
            
    t2=false
        end
        
    if (not t1) and (not t2then
            self
    :Hide()
            
    hook()
        
    end
    end


    How to use: http://addon.ziuo.net/

    Gershuun @ Borean Tundra US - Interface & Macros Moderator

  3. #3
    The Patient Jake5467's Avatar
    10+ Year Old Account
    Join Date
    Apr 2011
    Location
    Sydney, Australia
    Posts
    276
    Ah, wow thankyou very much! Works like a charm.

Posting Permissions

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