• 0

    posted a message on eePanels2 - Official Thread
    Today i decided to remake my UI. While doing this I deleted a bunch of panels which made other move up a number (if i deleted panel 4, panel 5 became the new 4) In doing this my lua scripts were screwed up a bit. One i was able to fix with no problem but I am getting an error from my omen script which is below. I first get an error about eepanel8 which doenst exist, after i click 'ok' on the error I attempt to attack something else and my game freezes completely. Any idea why?!


    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)
      -- We must call the original function so that control can be passed to any other hooks
      return THIS_Hook.hooks[frame].OnSizeChanged(frame,...)
    end
    
    
    local OmenExists = getglobal("OmenAnchor")
    if OmenExists then
      THIS_Hook:HookScript(OmenAnchor, "OnSizeChanged")
    end
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    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


    Thats the code I am using for Omen. I have the initial panel parented to the Omen Anchor and it worked fine for my first test but when I relogged I got the error above.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    First off I need to thank everyone that has posted scripts in here and Also Evil for you excellent addon.

    Now My first problem is when I script my Omen to expand as more bars are added I get an error

    interface/addons/ace2/acehook-2.1/[acehook-2.1.lua:131]: stack overflow


    Next problem, Im trying to get a code that will work with ElkBuff bar but I havent found anything in this thread that has worked yet.
    Posted in: General AddOns
  • To post a comment, please or register a new account.