Wonder if it's possible to display custom textured health and mana (self/group) with eepanels2?
Only addon for my knowledge is DiscordUnitFrames, that can display custom textured health and mana, but DUF is unusable for me because it lowers fps to ~unplayable figures in raids.
Can someone help me out? I'm trying to get a panel behind my QuestFu tablet, and I want the panel to resize with the quest tracker.
I've created the tablet, set the tracker as the parent, and put AceHook in the .toc file. I'm still running into 2 problems:
1) The tablet isn't resizing when the tracker resizes. When I /reloadui it sizes properly, though.
2) The name of the tracker keeps changing. I know this is a QuestFu thing, but does anyone know of a workaround?
Can someone help me out? I'm trying to get a panel behind my QuestFu tablet, and I want the panel to resize with the quest tracker.
I've created the tablet, set the tracker as the parent, and put AceHook in the .toc file. I'm still running into 2 problems:
1) The tablet isn't resizing when the tracker resizes. When I /reloadui it sizes properly, though.
2) The name of the tracker keeps changing. I know this is a QuestFu thing, but does anyone know of a workaround?
Not sure about #2, but #1 can be solved by using the resize script on the wiki page for eepanels scripts. That's what I did this morning. Hope that I don't run into an issue too much with #2...
Not sure about #2, but #1 can be solved by using the resize script on the wiki page for eepanels scripts. That's what I did this morning. Hope that I don't run into an issue too much with #2...
Yeah, I did that too (should have said), but it's not resizing on the fly.
Howdy, erm I looked at the script wiki but I'm such a total noob at anything that has to do with it so I'm wondering:
Is there a script to make a panel change size with my Elkbuffbars?
Can someone help me out? I'm trying to get a panel behind my QuestFu tablet, and I want the panel to resize with the quest tracker.
I've created the tablet, set the tracker as the parent, and put AceHook in the .toc file. I'm still running into 2 problems:
1) The tablet isn't resizing when the tracker resizes. When I /reloadui it sizes properly, though.
2) The name of the tracker keeps changing. I know this is a QuestFu thing, but does anyone know of a workaround?
Ok, why are you shoving AceHook into a toc? Moreover, of which addon. Also, you have created a tablet for a tracker (which IS a frame in itself). It's far easier to parent the EePanel to the trackerframe and that's it. The fact that the tablet isn't resizing means you're lacking an onUpdate script.
I've done thing with nQuestlog. You can find it some odd pages back I believe. It's fairly simple. It's all done by parenting.
Eg. for QuestFu, if the tracker frame is named QuestFuFrame (usually is something like that) then you do this.
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)
return THIS_Hook.hooks[frame].OnSizeChanged(frame,...)
end
local QuestFuExists = getglobal("QuestFuFrame")
if QuestFuExists then
THIS_Hook:HookScript(QuestFuFrame, "OnSizeChanged")
end
I think that's pretty much what I have for nQl and Omen (yes, it's adapted)
QuestsFu_Tracker I think is the frame name, if you really wanna know for sure, use this as macro (or just run it through chat /print GetMouseFocus():GetName() OR /script DEFAULT_CHAT_FRAME:AddMessage(GetMouseFocus():GetName()); (/script has to be left out I believe for macro)
Howdy, erm I looked at the script wiki but I'm such a total noob at anything that has to do with it so I'm wondering:
Is there a script to make a panel change size with my Elkbuffbars?
I think someone posted a script for this a page or two back. :) (Should go through the thread again and update the wiki.....)
I think someone posted a script for this a page or two back. :) (Should go through the thread again and update the wiki.....)
function THIS_update()
local i = 1
while true do
local buffIndex, untilCancelled = GetPlayerBuff(i, "HELPFUL")
if buffIndex == 0 then break end
i = i + 1
end
THIS:SetHeight(2 + i * 16)
end
I think that is what you were referring too ... and It works great. But how do you parent this eePanel to elkBuffBars? I looked through the lua (I have little to zero knowledge of lua) and used the get frame name macro (always returned nil). If anyone has be able to get a panel to parent to elkBuffBars please share :-)
Ok, why are you shoving AceHook into a toc? Moreover, of which addon.
I added it to eePanels, because according to the wiki page with all the scripts (which I copied the script from), you need AceHook to use this function. I do have the Ace2 Lib loaded as well, but according to the scripts page, the AceHook thing needs to be loaded before eepanels? The bit there wasn't very clear...if I just need Ace2 Lib loaded I'll do that.
Also, you have created a tablet for a tracker (which IS a frame in itself). It's far easier to parent the EePanel to the trackerframe and that's it. The fact that the tablet isn't resizing means you're lacking an onUpdate script.
I've done thing with nQuestlog. You can find it some odd pages back I believe. It's fairly simple. It's all done by parenting.
Eg. for QuestFu, if the tracker frame is named QuestFuFrame (usually is something like that) then you do this.
QuestsFu_Tracker I think is the frame name, if you really wanna know for sure, use this as macro (or just run it through chat /print GetMouseFocus():GetName() OR /script DEFAULT_CHAT_FRAME:AddMessage(GetMouseFocus():GetName()); (/script has to be left out I believe for macro)
Part of the problem is that I the code I copied off the wiki page said "ChatFrame1", which I didn't realize was the problem until I resized my chat frame. Oops. My fault for not reading the code, I suppose...
Now, according to that macro, the name of the frame is either Frame20DetachedFrame5 or Frame20DetachedFrame3, depending on WoW's mood on loading, I suppose. I noticed that if I /reloadui, it seems to default to Frame5. I've tried making a frame for either case, but that didn't seem to work; I might try again when I have more time later.
(although I think part of the problem is that the code I copied & pasted said ChatFrame1 in it. I changed that in the code, and it works for frame5.
What about parenting it to the EBB anchor? That's what I usually do to get around addons with no real frame window. I haven't tested it with EBB to be fair tho.
So I just have to place the eepanel at my EBB position and hope it adjusts? Without parenting and stuff?
The code above makes it resize based on how many buffs you have and the size of your bars. So many bars at such size = size of eePanel. You don't need to parent it.
From what I have read, I am pretty excited about using this add-on. I have only scratched the surface (using about 3 days) and have a quick question. Can a panel be anchored to a previously created panel, and if so, how?
Sry but I cant get the script to work :X well tbh .. if I insert it and press OK nothing seems to happen.
this is the first time I use scripts so I have noooo idea how it works tbh ='(
Halp!
Edit: Nvm got it working but the height doesnt change good, it doesnt fit my EBB that well it seems (just wanted a border like panel which sticks to my buffs) Plus I use a sperate group for my HoT's and whenever I cast one of the hots the bar gets bigger to so basicly it has no real sense :)
From what I have read, I am pretty excited about using this add-on. I have only scratched the surface (using about 3 days) and have a quick question. Can a panel be anchored to a previously created panel, and if so, how?
Thanks much,
Rick
say you have two eePanels - eePanel1 and eePanel2. You parent eePanel2 to eePanel1 by entering eePanel1 into eePanel2's Parent field.
I put a panel behind my minimap and now I want to move it over the top of my bottom panel. When I do that the panel border goes behind the bottom panel and I would like it on top. I tried changing the layer on the panel but then it goes over the minimap. How can I get this to work?
Change the strata of your minimap. simpleminimap and RicoMiniMap can do this I know. Others may be able to, or you can write your own script to do it and pop it in the eePanel itself.
Change the strata of your minimap. simpleminimap and RicoMiniMap can do this I know. Others may be able to, or you can write your own script to do it and pop it in the eePanel itself.
Thanks for the reply Seerah. I tried simpleminimap and set the strata to 2 and it worked great. However, the minimap I was originally using is oMinimap. I looked in the lua code and found this:
I know nothing about lua code but guessed at the changes by looking at other addons. I tried changing the Strata to both LOW and MEDIUM and got nothing. I tried changing the Level to 2 and got nothing. Is it possible to get oMinimap to work?
I looked in the script section of the eePanels addon and didnt see anything about getting one panel to show over another so I have no idea how to do that.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Only addon for my knowledge is DiscordUnitFrames, that can display custom textured health and mana, but DUF is unusable for me because it lowers fps to ~unplayable figures in raids.
I've created the tablet, set the tracker as the parent, and put AceHook in the .toc file. I'm still running into 2 problems:
1) The tablet isn't resizing when the tracker resizes. When I /reloadui it sizes properly, though.
2) The name of the tracker keeps changing. I know this is a QuestFu thing, but does anyone know of a workaround?
Not sure about #2, but #1 can be solved by using the resize script on the wiki page for eepanels scripts. That's what I did this morning. Hope that I don't run into an issue too much with #2...
Yeah, I did that too (should have said), but it's not resizing on the fly.
Is there a script to make a panel change size with my Elkbuffbars?
Ok, why are you shoving AceHook into a toc? Moreover, of which addon. Also, you have created a tablet for a tracker (which IS a frame in itself). It's far easier to parent the EePanel to the trackerframe and that's it. The fact that the tablet isn't resizing means you're lacking an onUpdate script.
I've done thing with nQuestlog. You can find it some odd pages back I believe. It's fairly simple. It's all done by parenting.
Eg. for QuestFu, if the tracker frame is named QuestFuFrame (usually is something like that) then you do this.
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)
return THIS_Hook.hooks[frame].OnSizeChanged(frame,...)
end
local QuestFuExists = getglobal("QuestFuFrame")
if QuestFuExists then
THIS_Hook:HookScript(QuestFuFrame, "OnSizeChanged")
end
I think that's pretty much what I have for nQl and Omen (yes, it's adapted)
QuestsFu_Tracker I think is the frame name, if you really wanna know for sure, use this as macro (or just run it through chat /print GetMouseFocus():GetName() OR /script DEFAULT_CHAT_FRAME:AddMessage(GetMouseFocus():GetName()); (/script has to be left out I believe for macro)
I think someone posted a script for this a page or two back. :) (Should go through the thread again and update the wiki.....)
function THIS_update()
local i = 1
while true do
local buffIndex, untilCancelled = GetPlayerBuff(i, "HELPFUL")
if buffIndex == 0 then break end
i = i + 1
end
THIS:SetHeight(2 + i * 16)
end
eePanels2:RegisterEvent("PLAYER_AURAS_CHANGED",THIS_update)
I think that is what you were referring too ... and It works great. But how do you parent this eePanel to elkBuffBars? I looked through the lua (I have little to zero knowledge of lua) and used the get frame name macro (always returned nil). If anyone has be able to get a panel to parent to elkBuffBars please share :-)
I added it to eePanels, because according to the wiki page with all the scripts (which I copied the script from), you need AceHook to use this function. I do have the Ace2 Lib loaded as well, but according to the scripts page, the AceHook thing needs to be loaded before eepanels? The bit there wasn't very clear...if I just need Ace2 Lib loaded I'll do that.
Part of the problem is that I the code I copied off the wiki page said "ChatFrame1", which I didn't realize was the problem until I resized my chat frame. Oops. My fault for not reading the code, I suppose...
Now, according to that macro, the name of the frame is either Frame20DetachedFrame5 or Frame20DetachedFrame3, depending on WoW's mood on loading, I suppose. I noticed that if I /reloadui, it seems to default to Frame5. I've tried making a frame for either case, but that didn't seem to work; I might try again when I have more time later.
(although I think part of the problem is that the code I copied & pasted said ChatFrame1 in it. I changed that in the code, and it works for frame5.
So I just have to place the eepanel at my EBB position and hope it adjusts? Without parenting and stuff?
The code above makes it resize based on how many buffs you have and the size of your bars. So many bars at such size = size of eePanel. You don't need to parent it.
Thanks much,
Rick
this is the first time I use scripts so I have noooo idea how it works tbh ='(
Halp!
Edit: Nvm got it working but the height doesnt change good, it doesnt fit my EBB that well it seems (just wanted a border like panel which sticks to my buffs) Plus I use a sperate group for my HoT's and whenever I cast one of the hots the bar gets bigger to so basicly it has no real sense :)
Thank for the help tho! :p
say you have two eePanels - eePanel1 and eePanel2. You parent eePanel2 to eePanel1 by entering eePanel1 into eePanel2's Parent field.
Thanks for the reply Seerah. I tried simpleminimap and set the strata to 2 and it worked great. However, the minimap I was originally using is oMinimap. I looked in the lua code and found this:
I know nothing about lua code but guessed at the changes by looking at other addons. I tried changing the Strata to both LOW and MEDIUM and got nothing. I tried changing the Level to 2 and got nothing. Is it possible to get oMinimap to work?
I looked in the script section of the eePanels addon and didnt see anything about getting one panel to show over another so I have no idea how to do that.