• 0

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



    Either have each panel hook the OnSizeChanged script of the frame above it, or remember to call the original function:
    local OmenExists = getglobal("OmenAnchor")
    
    if OmenExists then
    
    THIS_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    
    function THIS_Hook:OnSizeChanged(frame, ...)
      -- We must call the original function so that control can be passed to any other hooks
      THIS_Hook.hooks[frame].OnSizeChanged(frame,...)
      THIS:SetWidth(frame:GetWidth()+5)
      THIS:SetHeight(frame:GetHeight()+5)
    end
    
    THIS_Hook:HookScript(OmenAnchor, "OnSizeChanged")
    end



    That works perfect! Thank you very much Evil Elvis :D
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    how could i make this otherwise? ^^ (http://surl.se/fgck)
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Quote from Lanerra »

    It looks like you forgot to do the checks to make sure that the OmenAnchor actually existed, your code should look more like this:

    local OmenExists = getglobal("OmenAnchor")
    
    if OmenExists then
    
    THIS_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    
    function THIS_Hook:OnSizeChanged(frame, ...)
      THIS:SetWidth(frame:GetWidth()+5)
      THIS:SetHeight(frame:GetHeight()+5)
    end
    
    THIS_Hook:HookScript(OmenAnchor, "OnSizeChanged")
    end


    That should work for you. That's the bit of code that I use, so hopefully that'll work for you :)



    I have a little Problem with this :(

    I want to make a Frame around Omen with 4 eePanel's. With this Script, i can add one Panel to Omen as desired (Parent/Anchor to OmenAnchor). But when i tried to add the other 3 Panel's similar to the first, but they wont change the size correctly. I have played with the options, with/without the sript etc. but nothing seems to work...
    What do i make wrong?

    Here a Screenshot:
    http://surl.se/ffzt

    The Frame around Omen should look like the one below.

    - Sorry for my bad English :>
    Posted in: General AddOns
  • 0

    posted a message on Bartender3 - Action Bar AddOn for WoW 2.0
    Hello,

    I have a little Problem with Bartender, that make me crazy.
    As you know, we can make a Makro like "/bar barX hide" to fade in/fade out a bar.
    But when i do this, i constantly get the messages in the chat:
    ---
    Hidden is now set to [On]
    Hidden is now set to [Off]
    ---

    Unfortunately I am not talented in things like Addon-Programming, and have yet not found out how i can remove this Messages.
    Someone does know itself a little out and can say me where i must edit, so that these messages do not appear any more?

    Note: The Option to fade in/-out when i hover the specific bar is not that what i wont.

    Please excuse my bad (!!) english ;-)




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