• 0

    posted a message on eePanels2 - Official Thread
    Quote from Evil Elvis »

    Bongos2 action bars are on the "Medium" strata, which is 2 levels above "Background" strata. Since it's on a higher strata, level will not affect anything.

    If the eePanel was actually on the Background strata - and your bongos action bars are on the medium strata - there's no way they could conflict.

    So, there's 2 possible problems:
    1) Your eePanel is parented to something (maybe the bongo action bar) which is on the Medium strata. Parented frames always inherit their parents strata, thus you will always have a conflict. You could set the parent back to UIParent, and only set the Anchor. This would let the panel keep it's background strata, and not overlap.

    2) Your bongo action bar isn't on the medium strata, as it should be. Maybe you have an older version, and that version has the bars on the Background strata. Or maybe you have something that's modified the strata. Try upgrading bongos. You may need to delete your bongos2.lua saved variable file (back it up first).


    Elvis,

    Thank you, I found out that it was problem (1) that was occurring, so I just changed the parent back to UIParent and kept the anchor as was previously, and it worked. This ensured that the panel was behind the action bars. However, I have encountered another problem. I have set action bar to fade out when my mouse is not over it, and to fade back in when my mouse is over it (a feature of bongos). If I set the panel to have the action bar as its parent, I will encounter the same problem as before where the panel will be showing on top of the parent. Because of this I tried to do something else, namely, I tried one of the scripts that will show a panel when a specific frame is visible and hide a panel when that frame is not visible. This is so I wouldn't have to parent the panel. Here is the code:

    THIS_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    
    function THIS_Hook:OnShow(frame, ...)
        THIS:Show()
        return THIS_Hook.hooks[frame].OnShow(frame,...)
    end
    
    function THIS_Hook:OnHide(frame, ...)
        THIS:Hide()
        return THIS_Hook.hooks[frame].OnHide(frame,...)
    end
    
    THIS_Hook:HookScript(FRAMENAME, "OnShow")
    THIS_Hook:HookScript(FRAMENAME, "OnHide")


    This code seems right, I've tested it on the Pitbull unit frames as well. However, the issue is that for the bongos action bar it will not work. So when the action bar fades out, the panel is still showing. Now, I think the reason for this is that although the bongos action bar fades out, bongos still considers the bar to be "visible." Indeed when I disable its visibility in the bongos options, the panel disappears (which shows that the code works). So I am wondering if there is any way to set my panel to have the same effect as my action bar without parenting the panel to the action bar. Basically, have the panel appear when my mouse is over it, but disappear when the mouse is not over it.

    Thank you.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Hello.

    I am using Bongos as my action bar mod. The problem I am having is that when I place a panel behind my action bar, to act as a background, the next time I login the panel will be in front of the action bar. I have set the level to "0" and the strata to "Background" and this keeps happening.

    Additionally, I know that I am not the only one experiencing these problems, several others have posted. However, I have gone back through all the posts and could not find an answer to the problem. Additionally, in the last page, I believe that Elvis makes reference to some code to set the action bar to a different level, but I have not seen such a code.

    I just can't figure out why the panel won't stay behind the action bar. If anyone can help, I'd much appreciate it. Or if somehow I missed a post where I could find the answer, I'd be interested in knowing.

    Thank you.
    Posted in: General AddOns
  • To post a comment, please or register a new account.