CurseForge and Overwolf are joining forces!
Awesome More Information
  • 0

    posted a message on eePanels2 - Official Thread
    http://www.wowwiki.com/Events/Instance

    So, you need to listen to the 3 events listed there:
    WORLD_MAP_UPDATE
    PLAYER_ENTERING_WORLD
    WORLD_MAP_UPDATE

    Then, inside the function that's fired, you need to check if the coords are 0,0. If they are, hide the panel. Otherwise, show it:
    local x,y = GetPlayerMapPosition("player")
    if x == 0 and y == 0 then
      THIS:Hide()
    else
      THIS:Show()
    end
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    PS: the size of a panel/frame includes the border width and inset size. If you don't take that into account, it will distort your image.
    Posted in: General AddOns
  • 0

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

    Ok thanks for the reply evil i am very new to this i take that i dont just enter this into the script panel could you show me an example using this button *BT3Bar1* so i could see how its done.

    thanks again.


    No, because I don't use bartender, and I don't know the names of the buttons. Check the wiki to get the macro which prints out frame names. Put it into a macro, and use it when your mouse is over the button you want. It'll print out the name. Put that name into the script in place of NAME_OF_BUTTON_HERE.



    Quote from Whoracle »

    hi guys, how can i kinda mirror the eepanels? I want to use the fading textures on my unitframes and it kinda sucks to have 2 similar directions. " <=____ ____=> this is how the fading should look like.


    Just flip the colors and opacity for background color and background gradient color.



    Quote from ScythXIII »

    How does Eepanel Art scale up into the WoW UI? I take screenshots of my UI so I can get it to work with Eepanels, but after getting in game the Art is smaller than the intended size (yes, I know you can change the size, but this makes the art ugly with the horrible scaling).

    Anyone know how exactly it's scaled up? For instance, I have a Pitbull frame that is 180x60, how does this scale up into pixels?


    This isn't an eePanels problem. It's how wow handles textures. Even if you don't scale your UI, it's actually being scaled. I don't know the actual-to-ingame pixel ratio, sorry. You'll have to fiddle with it to get the texture to display correctly.
    Posted in: General AddOns
  • 0

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

    Hi all, great work on this mod i have only recently been getting into this great addon, now i have looked in the scripts pages for this but had no look im trying to create a panel that will show and hide when i hover over say my conjure food/water etc, is there a script out there or could one guide me on how to so this?

    thanks in advance for any replys.




    You could try hooking the mouse OnEnter and OnLeave functions for your food/water buttons. Something like this for each button/panel might work:
    THIS_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    
    function THIS_Hook:OnEnter(frame, ...)
      THIS:Show()
      return THIS_Hook.hooks[frame].OnEnter(frame,...)
    end
    
    function THIS_Hook:OnLeave(frame, ...)
      THIS:Hide()
      return THIS_Hook.hooks[frame].OnLeave(frame,...)
    end
    
    THIS_Hook:HookScript(NAME_OF_THE_BUTTON_HERE, "OnEnter")
    THIS_Hook:HookScript(NAME_OF_THE_BUTTON_HERE, "OnLeave")
    Posted in: General AddOns
  • 0

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

    My script attached to the panel:
    eePanel3_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    function eePanel3_Hook:OnSizeChanged(frame, ...)
      eePanel3:SetWidth(frame:GetWidth())
      eePanel3:SetHeight(frame:GetHeight())
    end
    eePanel3_Hook:HookScript(XPBarNoneButton, "OnSizeChanged")




    Try this:
    eePanel3_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    function eePanel3_Hook:OnSizeChanged(frame, ...)
      eePanel3:SetWidth(frame:GetWidth())
      eePanel3:SetHeight(frame:GetHeight())
      return THIS_Hook.hooks[frame].OnSizeChanged(frame,...)
    end
    eePanel3_Hook:HookScript(XPBarNoneButton, "OnSizeChanged")


    Also, make sure you've added XPBarNone (I believe that's the addon's name) to eePanels2.toc's OptionalDeps field.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    The problem isn't with AceHook, the problem lies somewhere in the script.

    See if this works: delete the script from your eePanel and do a /reload. Then copy&paste the script from the wiki into notepad, and remove all the lines that begin with "-- ". They're just comments, and not needed for the script to work. Then copy the script from notepad and add it as a new script to your panel.

    If that doesn't work, you'll need to post the script you're using (It's best if you copy/paste from your in-game eePanel script, not just from the wiki).
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Yeah, you can just put AceHook-2.0 in your addons directory (like any other addon) and add it to the OptionalDeps field, and you should be good to go.

    Maybe during Xmas break, I'll look into either just including it in eePanels2 so this problem doesn't arise, or actually spend some time trying out the default hooking mechanism and updating the examples so scripts won't need to rely on AceHook.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    You've have to write fairly involved script to do something like that. You're better off trying to find a mod that does what you want.
    Posted in: General AddOns
  • 0

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

    Hey, I'm rather new to eePanels, and I'm having a few problems.

    1. How do I make a Panel show up when ever the casting bar(Quartz) shows up? I tried ataching it to the castingbar via the options but after I reloaded my UI the panel would not show up at all after. Im guessing I need a Lua script to do this.

    Any help? Thanks :)


    Parent the panel to QuartzCastBar
    Posted in: General AddOns
  • 0

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

    I'm using the following script for a panel serving as the background for grid:

    local gridExists = getglobal("GridLayoutFrame")
    
    if gridExists then
      eePanel5_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    
      eePanel5:SetWidth(GridLayoutFrame:GetWidth()+13)
      eePanel5:SetHeight(GridLayoutFrame:GetHeight()+13) 
    
      function eePanel5_Hook:OnSizeChanged(frame, ...)
       eePanel5:SetWidth(frame:GetWidth()+13)
       eePanel5:SetHeight(frame:GetHeight()+13)
      end
    
      eePanel5_Hook:HookScript(GridLayoutFrame, "OnSizeChanged")
    end


    Until recently, this worked pretty well when Grid changed its size. As of now, i often have to "edit" the Script (not actually changing anything) and click ok in order to have the panel resize to grids actual size .. i couldn't find a script on the wiki-page and googling didn't really help .. is there a better way to do this?


    It sounds like the script is being run before Grid is loaded. Open the eePanels2.toc file, and add Grid to the OptDeps list.
    Posted in: General AddOns
  • 0

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

    Hope eePanels2 can do like this Windows Control.
    That's will economize any space.

    PS:My English is pool...=.=0


    It doesn't do this because it doesn't fall under the scope of this addon (it wouldn't even be worth doing unless you had some information to display in the tabs, which isn't what eePanels was meant to do).
    Posted in: General AddOns
  • 0

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

    Yeah, I wish that worked =( Already tried hooking it to
    QuartzMirrorBar
    Quartz Mirror Bar
    QuartzMirrorCastBar
    Quartz Mirror Cast Bar
    MirrorBar
    Mirror Bar

    All of which failed. I have been unable to find a clear answer to this question. Just thought I would ask here. Any help is greatly appreciated.


    It's because the mirror frame doesn't have a name, and thus can't be parented.

    You can try asking Nymbia if he'd give it a name.

    Edit: I'm not sure if he will after looking at the code. It looks like he actually creates multiple mirror bars, and there's no one frame used to hold them all together (like there are with the other named bars). It's probably intentional that the mirror bar(s) doesn't have a name.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    One more time (lua uses "elseif" instead of "else if" like every other C-style language, and I tend to forget):

    function eePanels2:RaidPanelVisibility(self, event, ...)
      -- Not in a raid
      if GetNumRaidMembers() < 1 then
        -- Just you / not in a party
        if GetNumPartyMembers() < 1 then
          eePanel4:Hide()
          eePanel5:Hide()
          eePanel6:Hide()
          eePanel7:Hide()
        -- You plus 1 other person
        elseif GetNumPartyMembers() == 1 then
          eePanel4:Show()
          eePanel5:Hide()
          eePanel6:Hide()
          eePanel7:Hide()
        -- You plus 2 other people
        elseif GetNumPartyMembers() == 2 then
          eePanel4:Show()
          eePanel5:Show()
          eePanel6:Hide()
          eePanel7:Hide()
        -- You plus 3 other people
        elseif GetNumPartyMembers() == 3 then
          eePanel4:Show()
          eePanel5:Show()
          eePanel6:Show()
          eePanel7:Hide()
        -- You in a full group
        elseif GetNumPartyMembers() == 4 then
          eePanel4:Show()
          eePanel5:Show()
          eePanel6:Show()
          eePanel7:Show()
        end
      -- In a raid, hide all panels
      else
        eePanel4:Hide()
        eePanel5:Hide()
        eePanel6:Hide()
        eePanel7:Hide()
      end
    end
    
    -- Ace2 event listeners; can't do this in more than one script
    eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.RaidPanelVisibility)


    And the script needs to be in the highest eePanel that it references (which is eePanel7 in this code), or an eePanel with an even larger number.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    I'm guessing you just want panels to show up under the unit frames of people in your party, not including your unit frame.

    This isn't pretty code, but it should be easy to understand
    function eePanels2:RaidPanelVisibility(self, event, ...)
      -- Not in a raid
      if GetNumRaidMembers() < 1 then
        -- Just you / not in a party
        if GetNumPartyMembers() < 1 then
          eePanel4:Hide()
          eePanel5:Hide()
          eePanel6:Hide()
          eePanel7:Hide()
        -- You plus 1 other person
        if GetNumPartyMembers() == 1 then
          eePanel4:Show()
          eePanel5:Hide()
          eePanel6:Hide()
          eePanel7:Hide()
        -- You plus 2 other people
        else if GetNumPartyMembers == 2 then
          eePanel4:Show()
          eePanel5:Show()
          eePanel6:Hide()
          eePanel7:Hide()
        -- You plus 3 other people
        else if GetNumPartyMembers == 3 then
          eePanel4:Show()
          eePanel5:Show()
          eePanel6:Show()
          eePanel7:Hide()
        -- You in a full group
        else if GetNumPartyMembers == 4 then
          eePanel4:Show()
          eePanel5:Show()
          eePanel6:Show()
          eePanel7:Show()
        end
      -- In a raid, hide all panels
      else
        eePanel4:Hide()
        eePanel5:Hide()
        eePanel6:Hide()
        eePanel7:Hide()
      end
    end
    
    -- Ace2 event listeners; can't do this in more than one script
    eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.RaidPanelVisibility)
    Posted in: General AddOns
  • 0

    posted a message on what am i doing wrong?(simple script)
    /script local s; local spell, _, _, _, _, _ = UnitCastingInfo("player"); if spell~=nil then s="worked" else s="failed" end; SendChatMessage(s,"say")


    You had UnitCastingInfo returning 7 variables when it only returns 6 (according to wowwiki.com).
    Posted in: General AddOns
  • To post a comment, please or register a new account.