• 0

    posted a message on Help with a eePanel2Script.
    function eePanels2:PLAYER_REGEN_DISABLED()
      eePanel22:Hide()
    end
    
    
    function eePanels2:PLAYER_REGEN_ENABLED()
    function eePanels2:RaidPanelVisibility(self, event, ...)
      
      if GetNumPartyMembers() < 4 or GetNumRaidMembers() < 1 then
           
      eePanel22:Show()
    end
    end
    end
    
    
    eePanels2:RegisterEvent("PLAYER_REGEN_DISABLED")
    eePanels2:RegisterEvent("PLAYER_REGEN_ENABLED")
    eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.RaidPanelVisibility)


    It is suppose to show a panel by default, and then hide it if I am in combat or a raid.

    It just hides the panel..always. What gives?
    Posted in: Lua Code Discussion
  • 0

    posted a message on ElkBuffBars v2 (finally Ace3 version)
    Is there a way to make the buffs grow horizontally?
    Posted in: General AddOns
  • 0

    posted a message on FuBar - QuestsFu
    Whenever I click on a Quest or a Quest objective in the QuestFu Tooltip I get

    Interface\FrameXML\QuestLogFrame.lua:586:attempt to preform arithmetic on local 'level' (a string value)
    Posted in: FuBar AddOns
  • 0

    posted a message on Changing font of FuBar?
    Quote from Firedancer »

    ClockFu now uses LibFuBarPlugin-3.0 rather than FuBarPlugin-2.0, so if you made changes to the FuBarPlugin-2.0 file in order to change your font, you'll need to do the same for LibFuBarPlugin-3.0.


    Thnx mate.
    Posted in: FuBar AddOns
  • 0

    posted a message on Changing font of FuBar?
    Since last patch the font change is not applying to ClockFu.

    I looked for in the ClockFu.lua to see if it now specifies its own font (like MoneyFu) but couldn't find a line that did this.

    Any ideas?

    Posted in: FuBar AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    The code works by itself, but I'm running into this error when I try to use it in the script I want to.

    Interface\Addons\Ace2\AceHook-2.1\Acehook-2.1.lua:131:stack overflow



    Here's my script.

    -- Hide all panels so they are not shown until we want them to
    eePanel8:Hide()
    eePanel9:Hide()
    eePanel10:Hide()
    eePanel11:Hide()
    eePanel12:Hide()
    eePanel13:Hide()
    eePanel14:Hide()
    
    
    
    
    -- Change our panel's visibility when in/out of a raid
    function eePanels2:RaidPanelVisibility(self, event, ...)
      -- If we're in a raid
      if GetNumPartyMembers() > 4 or GetNumRaidMembers() > 0 then
        -- Show the panels
        eePanel8:Show()
        eePanel9:Show()
        eePanel10:Show()
        eePanel11:Show()
        eePanel12:Show()
        eePanel13:Show()
        eePanel14:Show()
          -- If we're not in a raid
      else
          -- Hide the panels
        eePanel8:Hide()
        eePanel9:Hide()
        eePanel10:Hide()    
        eePanel11:Hide()
        eePanel12:Hide()
        eePanel13:Hide()
        eePanel14:Hide()
          
       end
    end
    
    --Checks Omen's visibility 
    
    -- Create a new ace2 addon for hooking
    eePanel8_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
    
    --If Omen is showing Hide Panel8
    function eePanel8_Hook:OnShow(frame)
      eePanel8_Hook.hooks[frame].OnShow(frame)
      eePanel8:Hide()
    end
    
    
    --If Omen is hiding Show Panel8 only if in a raid group
    function eePanel8_Hook:OnHide(frame)
      eePanel8_Hook.hooks[frame].OnHide(frame)
    
        --Check if we're in a raid
        if GetNumPartyMembers() > 4 or GetNumRaidMembers() > 0 then
           eePanel8:Show()
        else
           eePanel8:Hide()
        end
    
    end
    
    eePanel8_Hook:HookScript(OmenAnchor, "OnShow")
    eePanel8_Hook:HookScript(OmenAnchor, "OnHide")
    
    
    -- 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)




    I'm pretty sure this is just getting too complex for me and I need to find a simpler solution to what I'm trying to do, heh.


    Posted in: General AddOns
  • 0

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

    If OmenAnchor is the frame name, you could just set it as the eePanel's parent. No script needed.


    I can't set it as the parent, because I want it to do the opposite of OmenAnchor. When OmenAnchor is showing I want the eePanel to hide.
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Looking for a little help here. I'm trying to hide/show an eePanel based on if a frame is showing or not.

    In other words, when I bring up Omen I want to hide 2 eePanels. When I close Omen I want them to show. I'm new to this and don't know the function to call though.

    function eePanels2:RaidPanelVisibility(self, event, ...)
    	
    	if FrameVisiblity(OmenAnchor)=1 then
    		
    		THIS:Hide()
    	
    	else
        	
    		THIS:Show()
    	end
    end


    Probably not even close to the real deal. Not expecting someone to write my script for me, a list of functions I can use in scripts would suffice.
    Posted in: General AddOns
  • 0

    posted a message on Bartender3 - Action Bar AddOn for WoW 2.0
    Quote from Phanx »

    Answer: no.


    Well, that's stupid. Why does "Showing Range" also show power costs? Makes no sense at all. Oh well.
    Posted in: General AddOns
  • 0

    posted a message on UI Screenshots - Show us what you use!
    Still a major WIP. Going to add custom artwork to display in the raid area when I'm not in combat/a raid, among other changes. Need to cleanup NECB and stuff.

    Clean



    Raid




    Combat




    Need to find a better spot for my TrinketMenu, too.
    Posted in: General Chat
  • 0

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

    Quoted from post #2 (about scripts):Or you can put the script in the last of those 7 frames to be loaded (the one with the highest eePanelX number).

    edit: in this case, you would use
    eePanel1:Show()
    eePanel2:Show()
    etc.



    Yea, I'm stupid for not realizing you could do this. Thanks mang.
    Posted in: General AddOns
  • 0

    posted a message on Bartender3 - Action Bar AddOn for WoW 2.0
    Quote from voxxius »

    Is there a way to show the range indicator on without showing the cost indicator?

    In other words, I want the buttons to turn red when I am out of range to use a skill, but not to turn blue when I dont have enough rage/mana to use the skill.



    Still looking for an answer. =]
    Posted in: General AddOns
  • 0

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

    The problem is that you can have 10 raid members, but that doesn't mean you only have 2 raid panel groups showing; you could have 2 members in each group, and then all 5 raid panels would need to be visible.



    I think you are extremely complicating what I'm saying, because you lost me right here...

    My panels don't need to resize, I just want them to show when I'm in a raid. Maybe you meant to quote someone else?
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Ok, I feel like I can make a more educated help request this time around. So here goes round #2.


    I have a group of 7 EEpanels (1 background and 6 border style EEpanels). I would like for these to be hidden always, until I enter a raid group. Then they are to show up.

    I am using this code

    -- Hide the panel so it's not shown until we want it to
    THIS:Hide()
    -- Change our panel's visibility when in/out of a raid
    function eePanels2:RaidPanelVisibility(self, event, ...)
    -- If we're in a raid
    if GetNumPartyMembers() > 4 or GetNumRaidMembers() > 0 then
    -- Show the panel this script is attached to
    THIS:Show()
    -- If we're not in a raid
    else
    -- Hide the panel this script is attached to
    THIS: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)


    When I apply the code to the background panel, it works completely fine. Tested it and restested with perfect outcomes. Then i applied the code to a 2nd frame (a border one) and only the 2nd frame worked, the BG one just stayed hidden.

    Assuming this had to do with

    -- 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)


    I removed that from all of the frames except for the background EEpanel, now only the background EEpanel works again.

    Apparently without the RegisterEvent the EEpanels will not know when to call the group check functions... but I can only use the RegistereEvents once in my entire setup?

    Hopefully I'm wrong.

    Posted in: General AddOns
  • 0

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

    Why doesn't it work? Is it giving an error? Are you using any other scripts?

    I really need more information in order to help you find your problem.

    On reason why it might not seem to be working is because there should be a
    THIS:Hide()
    at the very top of the script. If you don't put that at the top, then the panel wouldn't hide until you've joined a party/raid and left.


    I'm not using any other scripts, nothing happens..at all. I apply the LUA and yea..nothing.

    I made the change you suggested, and that made the frame disappear, but it didn't return when I joined a raid.

    eePanel8:Hide()
    -- Change our panel's visibility when in/out of a raid
    function eePanels2:RaidPanelVisibility(self, event, ...)
    -- If we're in a raid
    if GetNumPartyMembers() > 0 or GetNumRaidMembers() > 0 then
    -- Show the panel this script is attached to
    eePanel8:Show()
    -- If we're not in a raid
    else
    -- Hide the panel this script is attached to
    eePanel8: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)


    That's what I have, panel vanishes when I apply the script. Maybe BG groups aren't counting as a raid or something weird, I dno.

    I know you don't want to spend your free time writing someone else's script. I'm just confused on why a script off of the Wiki wouldn't work.



    Last Edit -

    Ok, so I changed if GetNumPartyMembers() > 0
    to
    if GetNumPartyMembers() > 4
    and that fixed it. It's not going to show/hide based on a party, but raid only is a start I suppose.
    Posted in: General AddOns
  • To post a comment, please or register a new account.