What I am wondering is there a way to only have the box on top of the target frame show up only when I have a player selected. In other words when I am fighting mobs or bosses or have NPC's targeted I do not wish to have the eepanel to show up. Is this possible?
Yes. In addition to checking UnitExists("target") you'd also want to check UnitIsPlayer("target"). Note that in 2.4 you will no longer be able to get talent data about players with whom you can engage in combat, so additional checks will be necessary to hide the panel then.
a small panel will appear with text reminding me keybindings for pet's spells :) (I have em in a macro on my regular pells and those are hidden everytime). I checked eeP2 wiki, and i think I should use
"Make an eePanel show only when in a raid or group, and not in a Battleground or Arena" + "Generate text in a panel" combo. But I need help - is it possible to make panel appear ONLY when I got Terons debuff and hide after i'm actualy dead?
I'm having a problem and I hope you can help me with it. Using Pitbull, and after some research on the webby I managed to import and attach an elite frame graphic to my target. Now I tried to add a script which I found here on the webby but it doesn't work. Or at least not properly.
Here is what I use:
function eePanels2:PLAYER_TARGET_CHANGED()
local isElite = UnitIsPlusMob("target")
if (isElite) then
eePanel8:Show()
else
eePanel8:Hide()
end
end
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED")
Reloading, restarting WoW etc. doesn't solve my problem.
However sometimes my frame does show up, I can't track down what exactly makes it do so it seems random, not completly random but random;
Often it works properly, and shows up when I have an elite unit targeted.
Often it doesn't show up at all when it should.
Sometimes I get an elite frame around normal players, or normal units.
I realize I'm a noob when it comes to scripting, but I copied this from the webby. Just like an other script for my gridframes, and that one works like a charm. How come this one won't work for me?
Another thing I figured out, it always shows as intened when I'm in the 'Battleground-Hall' in Orgrimmar. When I target the elite NPC's it shows as elite, when I target normal players or none elite NPC's it shows nothing, as intended. But near the AH and the bank for example, its always mixed up, and random. Whats wrong with the script?!?
When using the macro: /print GetMouseFocus():GetName() to find the parent of buffalo buffs, or bartender buttons I get "BuffaloButton0" or "BT3Button3" for example. I really wouldn't want to sit there and make a new panel for each buff button {"BuffaloButton0" "BuffaloButton1" etc..}. Is there an easy way to just make 1 panel that will show up on each buff?
I'm sorry if someone has already answered this on a previous page, this is my first time visiting this thread and I really don't want to have to skim through all 65 or so pages. Thank you
When using the macro: /print GetMouseFocus():GetName() to find the parent of buffalo buffs, or bartender buttons I get "BuffaloButton0" or "BT3Button3" for example. I really wouldn't want to sit there and make a new panel for each buff button {"BuffaloButton0" "BuffaloButton1" etc..}. Is there an easy way to just make 1 panel that will show up on each buff?
I'm sorry if someone has already answered this on a previous page, this is my first time visiting this thread and I really don't want to have to skim through all 65 or so pages. Thank you
This is what I do. I enable visor gui. I click the grab button and hover it over the bar or frame I want...in your case if I get the button not the bar...I hit the "get parent" button. Tah Dah. Now I have the name of what I want and enter that as the parent for my eepanel.
Probable not the slickest way, but its a way I figured out and works for me.
This is what I do. I enable visor gui. I click the grab button and hover it over the bar or frame I want...in your case if I get the button not the bar...I hit the "get parent" button. Tah Dah. Now I have the name of what I want and enter that as the parent for my eepanel.
Probable not the slickest way, but its a way I figured out and works for me.
Awesome tip, thank you very much! I've been trying to link eePanels to my action bars but have been unable to get the right frame name.
I've been trying to write a script to change the panel/gradient coloring to match my target's class(In conjunction with Pitbull unit frames). I've used pieces of script from posts in this thread along with the scripts from eePanels2 wiki page yet I have been unsuccessful. If anyone knows a script for this or can offer me any advice I would really appreciate the help. Thanks for your time.
My problem is finally fixed, the script here on the webby is flawed. I suggest you replace it:
Quote from Gotai »
Apparently this is proper behavious for UnitIsPlusMob(), which is probably why Blizzard doesn't use it in its own frames. Blizzard uses UnitClassification("target") instead, which returns one of the following: "worldboss", "rareelite", "elite", "rare" and "normal".
This should do the trick:
function eePanels2:PLAYER_TARGET_CHANGED()
if (UnitClassification("target") == "elite") then
eePanel8:Show()
else
eePanel8:Hide()
end
end
Ok I've been researching for a solution to my problem for about three days with no avail and I'm spent. I'm using "Acaciaizm_Minime: Healbot Edit" UI (awesome UI BTW) and I'm having issues with eePanels2.
Issue #1: Bagnon
I added eePanels to my bag and bank frames to match with Acaciaizm's UI. Looks spiffy.
After relogging the eePanels disappear.
I've tried to reparent/reanchor the panel and I get a "Validation" error.
It seems that after exiting the AH the eePanels *may* reappear if they feel like it. This happens to my bank frames as well. The bag frames are parented to BagnonFrame0 and the bank frames to BagnonFrame1 (I believe these are the correct frames). Anyone know how to stop them from disappearing?
Issue #2: Minichat
I have Minichat up and working on my ChatFrame1 (guild chat, party chat, raid chat, etc) and ChatFrame2 (combat log) but not on my ChatFrame3 (trade, general defense, etc). ChatFrame1 (named "Chat") and ChatFrame2 (named "Spam") are docked together. When I try to minimize the Spam tab the eePanels don't resize correctly.
Chat window max
Chat window min
Spam window max
Spam window min
I've tried adding the resizing script to the Spam frame's eePanels LUA but it has no effect. One time I got the Spam eePanels to minimize correctly but I was quickly disappointed to find that the problem had migrated over to the Chat eePanels. Maybe I'm attempting the impossible?
Issue #3 (Bonus Question): Prat
This isn't an eePanels issue but I might as well ask while I'm here. The chat window tabs (see above pictures) are supposed to be reappear when moused over (Default setting for Prat Tabs modules) but they don't. The only way I can get them to show--and thus shift between Chat and Spam--is by having them always show. Anyone know what I'm doing wrong?
I need help with a Target script... I want a panel to show whenever I have a target selected, and not to show it when I don't. Currently what I have seems to work fine for the most part but after every reloadui or restart of the game it shows the panel, it only start to work properly after I target something. Here's the script I have, help me out if you can:
function eePanels2:PLAYER_TARGET_CHANGED()
if UnitExists("target") then
eePanel6:Show()
elseif not UnitExists("target") then
eePanel6:Hide()
end
end
eePanels2:RegisterEvent("PLAYER_TARGET_CHANGED")
Yup, I'm new to this board, anyhow, I noticed a couple of people asking about changing a Panels color based on aggro rather than combat status - this was the reason why I found this board as I wanted exactly that, given my hunter and raiding, as it is nice to know when a mob/boss "looks" at you
So I managed to find a useable 2.4? event that the WoW API has :- UNIT_COMBAT
Here's my fully working script
function eePanels2:ColorOOC()
for p = 6, 15, 2 do
eePanels2.db.profile.panels[(p+1)].background.frame:SetGradientAlpha("HORIZONTAL", 0.7, 0.7, 0.7, 0, 0.35, 0.35, 1, 1)
eePanels2.db.profile.panels[p].background.frame:SetGradientAlpha("HORIZONTAL", 0.5, 0.5, 0.85, 1, 0.7, 0.7, 0.7, 0)
end
end
function eePanels2:ColorIC()
local al = 0
if (UnitName("player")) == (UnitName("targettarget")) then
for p = 6, 15 do
eePanels2.db.profile.panels[p].background.frame:SetGradientAlpha("HORIZONTAL", 1, 0.1, 0.1, (1-al), 1, 0.1, 0.1, al)
al = 1-al
end
al = 0
elseif (UnitName("playerpet")) == (UnitName("targettarget")) or (UnitName("playerpet")) == (UnitName("pettargettarget")) then
for p = 6, 15 do
eePanels2.db.profile.panels[p].background.frame:SetGradientAlpha("HORIZONTAL", 0, 1, 0, (1-al), 0, 1, 0, al)
al = 1-al
end
al = 0
else eePanels2:ColorOOC()
end
end
eePanels2:RegisterEvent("PLAYER_REGEN_ENABLED","ColorOOC")
eePanels2:RegisterEvent("PLAYER_REGEN_DISABLED","ColorIC")
eePanels2:RegisterEvent("UNIT_COMBAT","ColorIC")
The PLAYER_REGEN_DISABLED is probably redundant hehe :)
Not sure on this, but the PLAYER_REGEN events only trigger once per fight so to have something change based on aggro requires an event that repeat triggers :
UNIT_COMBAT - Fired when an npc or player participates in combat and takes damage (taken from wowwiki's page on API events)
Just to explain, I have 10 fairly thin blue gradient streaks as part of my UI and it's these that change color depending on the aggro :- Blue when neither me or my pet has aggro, Green when my pet has aggro and Red for when I have aggro. The "for" loops were to save me having them dirty great long panel recolor commands. The "al" local variable is like a binary toggle ie flips it's value between 1 and 0 so this controls the Alpha value for each affected panel, necessary as I have all left-side gradient on Even number panels and right side gradient on Odd number panels (I guess old programming techniques die hard lol and yes its been a long time since I touched any kind of code ;) )
So feel free to copy it, change it, add to it etc etc, that's why I posted it here, hopefully someone else will find it usefull for their UI :)
HAving trouble with custom textures. I can't seem to get them to be transparent. I make them as transparent on adobe photoshop cs3 than save them as a tga format and when i put them in the game in the eepanels i always seem to get a solid white background behind my picture
HAving trouble with custom textures. I can't seem to get them to be transparent. I make them as transparent on adobe photoshop cs3 than save them as a tga format and when i put them in the game in the eepanels i always seem to get a solid white background behind my picture
finally figured it out thanks anyway! love the addon btw
Is there a way I can hide an eepanel until I mouseover it?
I have tried searching for the answer but the word hide, and mouseover gives me way too many results and none of the first few pages held the answer.
Example: I want my eePanel2 (Which holds my action bars and autobar) to completely hide when I'm not using it, I keybind and would like them hidden most the time.
If I'm not mistaken, the above UI linked is mirrored hence its identical, and therefore I could lower the RAM-usage by using the same data twice but mirroring the display on it. I want to keep the UI as small as possible, so I'm wondering if there's any way of doing that in eePanels2?
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Yes. In addition to checking UnitExists("target") you'd also want to check UnitIsPlayer("target"). Note that in 2.4 you will no longer be able to get talent data about players with whom you can engage in combat, so additional checks will be necessary to hide the panel then.
a small panel will appear with text reminding me keybindings for pet's spells :) (I have em in a macro on my regular pells and those are hidden everytime). I checked eeP2 wiki, and i think I should use
"Make an eePanel show only when in a raid or group, and not in a Battleground or Arena" + "Generate text in a panel" combo. But I need help - is it possible to make panel appear ONLY when I got Terons debuff and hide after i'm actualy dead?
I'm having a problem and I hope you can help me with it. Using Pitbull, and after some research on the webby I managed to import and attach an elite frame graphic to my target. Now I tried to add a script which I found here on the webby but it doesn't work. Or at least not properly.
Here is what I use:
Reloading, restarting WoW etc. doesn't solve my problem.
However sometimes my frame does show up, I can't track down what exactly makes it do so it seems random, not completly random but random;
I realize I'm a noob when it comes to scripting, but I copied this from the webby. Just like an other script for my gridframes, and that one works like a charm. How come this one won't work for me?
See...
I'm sorry if someone has already answered this on a previous page, this is my first time visiting this thread and I really don't want to have to skim through all 65 or so pages. Thank you
This is what I do. I enable visor gui. I click the grab button and hover it over the bar or frame I want...in your case if I get the button not the bar...I hit the "get parent" button. Tah Dah. Now I have the name of what I want and enter that as the parent for my eepanel.
Probable not the slickest way, but its a way I figured out and works for me.
Awesome tip, thank you very much! I've been trying to link eePanels to my action bars but have been unable to get the right frame name.
To finally obtain
/print GetMouseFocus():GetParent():GetName()
(link)
Issue #1: Bagnon
I added eePanels to my bag and bank frames to match with Acaciaizm's UI. Looks spiffy.
After relogging the eePanels disappear.
I've tried to reparent/reanchor the panel and I get a "Validation" error.
It seems that after exiting the AH the eePanels *may* reappear if they feel like it. This happens to my bank frames as well. The bag frames are parented to BagnonFrame0 and the bank frames to BagnonFrame1 (I believe these are the correct frames). Anyone know how to stop them from disappearing?
Issue #2: Minichat
I have Minichat up and working on my ChatFrame1 (guild chat, party chat, raid chat, etc) and ChatFrame2 (combat log) but not on my ChatFrame3 (trade, general defense, etc). ChatFrame1 (named "Chat") and ChatFrame2 (named "Spam") are docked together. When I try to minimize the Spam tab the eePanels don't resize correctly.
Chat window max
Chat window min
Spam window max
Spam window min
I've tried adding the resizing script to the Spam frame's eePanels LUA but it has no effect. One time I got the Spam eePanels to minimize correctly but I was quickly disappointed to find that the problem had migrated over to the Chat eePanels. Maybe I'm attempting the impossible?
Issue #3 (Bonus Question): Prat
This isn't an eePanels issue but I might as well ask while I'm here. The chat window tabs (see above pictures) are supposed to be reappear when moused over (Default setting for Prat Tabs modules) but they don't. The only way I can get them to show--and thus shift between Chat and Spam--is by having them always show. Anyone know what I'm doing wrong?
I want them to be hidden unless I'm in a party or a raid.
I tried
But it would only work when I selected edit code and then pressed ok otherwise the panels would stay hidden or stay shown
Thanks for any help :D
So I managed to find a useable 2.4? event that the WoW API has :- UNIT_COMBAT
Here's my fully working script
The PLAYER_REGEN_DISABLED is probably redundant hehe :)
Not sure on this, but the PLAYER_REGEN events only trigger once per fight so to have something change based on aggro requires an event that repeat triggers :
UNIT_COMBAT - Fired when an npc or player participates in combat and takes damage (taken from wowwiki's page on API events)
Just to explain, I have 10 fairly thin blue gradient streaks as part of my UI and it's these that change color depending on the aggro :- Blue when neither me or my pet has aggro, Green when my pet has aggro and Red for when I have aggro. The "for" loops were to save me having them dirty great long panel recolor commands. The "al" local variable is like a binary toggle ie flips it's value between 1 and 0 so this controls the Alpha value for each affected panel, necessary as I have all left-side gradient on Even number panels and right side gradient on Odd number panels (I guess old programming techniques die hard lol and yes its been a long time since I touched any kind of code ;) )
So feel free to copy it, change it, add to it etc etc, that's why I posted it here, hopefully someone else will find it usefull for their UI :)
finally figured it out thanks anyway! love the addon btw
I have tried searching for the answer but the word hide, and mouseover gives me way too many results and none of the first few pages held the answer.
Example: I want my eePanel2 (Which holds my action bars and autobar) to completely hide when I'm not using it, I keybind and would like them hidden most the time.
If I'm not mistaken, the above UI linked is mirrored hence its identical, and therefore I could lower the RAM-usage by using the same data twice but mirroring the display on it. I want to keep the UI as small as possible, so I'm wondering if there's any way of doing that in eePanels2?