• 0

    posted a message on kgPanels Offical Thread
    Problem Solved!
    Instead of using BT4Bar1:Hide() / Show(), I used BTBar1:SetAlpha(0) / SetAlpha(1).
    Ofcourse mousing over the area still displays tooltips of the buttons aswell as the ability to use them so I covered it with an inivisible panel intercepting mouseclicks :p.

    Still one question remains. Making panels fade in and out when they appear... how?
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Hello all!

    I have the folowing problem when hiding / showing 2 Bartender 4 actionbars + a pannel attached to it...

    OK so I got 2 buttons, 1 button hides the actionbars and the panel:

    OnClick:
    local pan1 = kgPanels:FetchFrame("MainButtonBar")
    BT4Bar1:Hide()
    BT4Bar2:Hide()
    pan1:Hide()

    And the other one shows it again:

    OnClick:
    local pan1 = kgPanels:FetchFrame("MainButtonBar")
    BT4Bar1:Show()
    BT4Bar2:Show()
    BT4Bar4:Show()
    pan1:Show()

    Now the problem. Hiding and showing this works fine when OUT of combat. BUT when I'm IN combat:
    If the panel and actionn bars are allready hidden and I enter combat, clicking the button to show them only shows the panel, the action bars remain hidden...
    If the panel and action bars are show and I enter combat, clicking the button to hide them only hides the panel, the action bars remain shown...
    Buggrabber shows an error for each bar in that situation:

    When trying to show a hidden bar in combat:
    1. <event>ADDON_ACTION_BLOCKED:AddOn 'ButtonFacade' tried to call the protected function 'BT4Bar1:Show()'.
    <in C code>: in function `Show'
    <string>:"BarsOff_OnClickDown":3: in function <[string "BarsOff_OnClickDown"]:1>

    When trying to hide a bar in combat:
    2. <event>ADDON_ACTION_BLOCKED:AddOn 'ButtonFacade' tried to call the protected function 'BT4Bar1:Hide()'.
    <in C code>: in function `Hide'
    <string>:"BarsOn_OnClickDown":13: in function <[string "BarsOn_OnClickDown"]:1>

    Any toughts?

    PS: On the sidenote, anyone knows how to add an fade effect to those panels and action bars when I show / hide them?
    Posted in: General AddOns
  • 0

    posted a message on kgPanels Offical Thread
    Hello people!

    I'm looking for an script to automaticly hide / show certain pannels when I'm riding a vehicle. Anyone can help me with that?
    Posted in: General AddOns
  • To post a comment, please or register a new account.