• 0

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

    Lua is case sensitive, so end is different than End, etc.

    If the example code for hiding/showing a frame isn't working for you, you probably copy&pasted it wrong as I've tested that script.

    Here's your original code, modified. Like I said, you'll need a different panel for each texture. I'll pretend these panels are named eePanel1-eePanel5 (you might be able to just hide all the frames, then just show the frame you want, but that might cause the texture to flicker off/on)
    function eePanels2:RaidPanelVisibility(self, event, ...)
     if GetNumPartyMembers() > 1 and GetNumRaidMembers() < 6 then
        eePanel1:Show()
        eePanel2:Hide()
        eePanel3:Hide()
        eePanel4:Hide()
        eePanel5:Hide()
     elseif GetNumRaidMembers() > 5 and GetNumRaidMembers() < 11 then
        eePanel2:Show()
        eePanel1:Hide()
        eePanel3:Hide()
        eePanel4:Hide()
        eePanel5:Hide()
     elseif GetNumRaidMembers() > 10 and GetNumRaidMembers() < 16 then
        eePanel3:Show()
        eePanel1:Hide()
        eePanel2:Hide()
        eePanel4:Hide()
        eePanel5:Hide()
     elseif GetNumRaidMembers() > 15 and GetNumRaidMembers() < 26 then
        eePanel4:Show()
        eePanel1:Hide()
        eePanel2:Hide()
        eePanel3:Hide()
        eePanel5:Hide()
     elseif GetNumRaidMembers() > 25 and GetNumRaidMembers() < 41 then
        eePanel5:Show()
        eePanel1:Hide()
        eePanel2:Hide()
        eePanel3:Hide()
        eePanel4:Hide()
     end
    end
    
    eePanels2:RegisterEvent("PLAYER_ENTERING_WORLD", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("PARTY_MEMBERS_CHANGED", eePanels2.RaidPanelVisibility)
    eePanels2:RegisterEvent("RAID_ROSTER_UPDATE", eePanels2.RaidPanelVisibility



    Hi Evil Thanks for this, i have updated my configs using your code:

    works a treat many thanks

    * Small 'bug?' i came across was even though i had named all the panels individually..the script still worked them off thir original panel names, i.e. Grid BG 1 was eepanel number 3 when i entered Grid BG 1 it removed a different eepanel texture that was eepanel 3 when created. But apart from that it all works fine :)
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    You're going to need to make 3 eePanels, and have each one parented to grid, and give each one a unique texture. Then create a fourth panel to hold a script to modify the 3 previous eePanels. You would have to take the script on the first page for hiding/showing a frame in a raid, and add it as a script. However, instead of just showing/hiding the THIS panel, you would need to do an if then, elseif, elseif, else end statement to modify the visibility of the 3 other panels.

    The first if would check to see if the number of party members was greater than 1 and the number of raid members was less than 6, and show the first panel and hide the other two. The first elseif would check if there was more than 5 raid members, but less than 15 raid members. The second elseif would check if there were more than 14 raid members. The else statement would hide all the panels because none of the other conditions were met (probably don't need this since the panels are parented to Grid, but it can't hurt).


    Ok i've tried numerous scripts but to no avail. I therefore just tried your original script for hiding a frame when not in a raid and got this error:

    (String" if GetNumPartyMembers() > 4 or GetNumRaidMembers() > 0 then..."):2: unexpected symbol near'

    The scripts i've tried were as follows:

    "if then GetNumPartyMembers() > 1 or GetNumRaidMembers() < 6 then
    Grid BG 5 Man:Show()
    elseif GetNumPartyMembers() > 5 or GetNumRaidMembers() < 11 then
    Grid BG 10 Man:Show()
    elseif GetNumPartyMembers() > 10 or GetNumRaidMembers() < 16 then
    Grid BG 15 Man:Show()
    elseif GetNumPartyMembers() > 15 or GetNumRaidMembers() < 26 then
    Grid BG 25 Man:Show()
    else GetNumPartyMembers() > 25 or GetNumRaidMembers() < 41 then
    Grid BG 40 Man:Show()
    end
    end"

    and also

    "if GetNumPartyMembers() > 1 or GetNumRaidMembers() < 6 If then
    eePanel10:Show(Grid BG 5 Man)
    elseif
    GetNumPartyMembers() > 5 or GetNumRaidMembers() < 11 If then
    eePanel10:Show(Grid BG 10 Man)
    elseif
    GetNumPartyMembers() > 10 or GetNumRaidMembers() < 16 If then
    eePanel10:Show(Grid BG 15 Man)
    elseif
    GetNumPartyMembers() > 15 or GetNumRaidMembers() < 26 If then
    eePanel10:Show(Grid Bg 25 Man)
    elseif
    GetNumPartyMembers() > 25 or GetNumRaidMembers() < 41 If then
    eePanel10:Show(Grid Bg 40 Man)

    Else end
    end"

    Unfortunately I have been unable to get any of my scripts to work and neither the original one posted. Any help would be greatly appreciated again

    Thanks Drum

    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread

    You're going to need to make 3 eePanels, and have each one parented to grid, and give each one a unique texture. Then create a fourth panel to hold a script to modify the 3 previous eePanels. You would have to take the script on the first page for hiding/showing a frame in a raid, and add it as a script. However, instead of just showing/hiding the THIS panel, you would need to do an if then, elseif, elseif, else end statement to modify the visibility of the 3 other panels.

    The first if would check to see if the number of party members was greater than 1 and the number of raid members was less than 6, and show the first panel and hide the other two. The first elseif would check if there was more than 5 raid members, but less than 15 raid members. The second elseif would check if there were more than 14 raid members. The else statement would hide all the panels because none of the other conditions were met (probably don't need this since the panels are parented to Grid, but it can't hurt).


    humm I thought this might be the case...and my scripting is well..humm no existant. Anyway time to start playing round see if i can work out the script ...thanks for the reply and quick response

    Drum
    Posted in: General AddOns
  • 0

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

    Quote from Drumwar »

    Ok ive ckecked the other posts and rest of forum and was wondering whether some one could help me out here. I have Grid set up with an EEPanel set behind it (textured) that shows up when im in a raid (been using AV as a tester). Now i have set up other panels with the same texture aligned to appear when im in 5 man, 10 man, 15 man 25 man etc.
    Now the prob I have is that if i join a 40 man raid all the panels from 5 man upward appear below the 40 man stacked. I was wondering whether there is any way to set the panels to show when in the proper group set up ie 10 man then not appear when im in 25 man.

    See screens:



    Normal 15 man set up



    40 man raid but as u can see 15 man is stacked behind it



    40 man how i would like it to look with others raid setup textures hidden.

    Any help would be greatly appreciated ....whether pointing me in the right direction or just letting me know it cant be done.

    Thanks Drum


    Why don't you just make 1 panel with ur texture, and make it resize with Grid?


    um ive tried this but when anchoring to Grid it only seems to anchor to the player box ie Row8 Box 5 and will only show texture when the last box is showing and not before :(
    Posted in: General AddOns
  • 0

    posted a message on eePanels2 - Official Thread
    Ok ive ckecked the other posts and rest of forum and was wondering whether some one could help me out here. I have Grid set up with an EEPanel set behind it (textured) that shows up when im in a raid (been using AV as a tester). Now i have set up other panels with the same texture aligned to appear when im in 5 man, 10 man, 15 man 25 man etc.
    Now the prob I have is that if i join a 40 man raid all the panels from 5 man upward appear below the 40 man stacked. I was wondering whether there is any way to set the panels to show when in the proper group set up ie 10 man then not appear when im in 25 man.

    See screens:



    Normal 15 man set up



    40 man raid but as u can see 15 man is stacked behind it



    40 man how i would like it to look with others raid setup textures hidden.

    Any help would be greatly appreciated ....whether pointing me in the right direction or just letting me know it cant be done.

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