Ok feature request ive asked for it before but the option i was given isnt good enough Please can you add a proper way to import and export and save layouts as i have several i use on some characters
Either have each panel hook the OnSizeChanged script of the frame above it, or remember to call the original function:
local OmenExists = getglobal("OmenAnchor")
if OmenExists then
THIS_Hook = AceLibrary("AceAddon-2.0"):new("AceHook-2.1")
function THIS_Hook:OnSizeChanged(frame, ...)
-- We must call the original function so that control can be passed to any other hooks
THIS_Hook.hooks[frame].OnSizeChanged(frame,...)
THIS:SetWidth(frame:GetWidth()+5)
THIS:SetHeight(frame:GetHeight()+5)
end
THIS_Hook:HookScript(OmenAnchor, "OnSizeChanged")
end
That works perfect! Thank you very much Evil Elvis :D
Since I'm not too nifty on Lua scripting :P , I was wondering if it was possible to make a box increase it's height according to how many bars Chronometer has active and how it would be done.
I'm having a weird issue with panel "level" and "parent" attributes. It seems like the level of the parent is used on load, overriding any level specified directly by the "level" attribute. For instance, I have a panel which I'd like to be at "Background" level, but its parent is set to another frame whose level is "Low". On reload, my panel seems to be at "Low" instead of "Background" until i fuss with its level setting directly. Then it kicks in...
they do but i find it highly anoying having to save it under other toons and messy doing so
I have literally 0 time, so unless the mod breaks, I'm not going to be able to touch it for another few months. Even then it's not really a priority to me.
Quote from ScythXIII »
Since I'm not too nifty on Lua scripting :P , I was wondering if it was possible to make a box increase it's height according to how many bars Chronometer has active and how it would be done.
It probably requires looking over the Chronometer code, and hooking one of it's functions (like I do in my autobar script). It's probably not something a non-coder is going to be able to do.
Quote from ruinna »
I'm having a weird issue with panel "level" and "parent" attributes. It seems like the level of the parent is used on load, overriding any level specified directly by the "level" attribute. For instance, I have a panel which I'd like to be at "Background" level, but its parent is set to another frame whose level is "Low". On reload, my panel seems to be at "Low" instead of "Background" until i fuss with its level setting directly. Then it kicks in...
You keep saying "level" but you're using strata terms. I'll assume you mean strata. The eePanel inherits it's strata from it's parent; even if you attempt to change the strata, it's not really being changed. The eePanel gui just isn't smart enough to recognize what it's actual parent is. It's possible this is pushing the frame to the back, but it's not really changing the settings.
You want to change the level (turn on advanced mode). It's possible the parent is set to level 0, in which case whichever frame is set to 0 last will be pushed to the bottom. This might be what's happening when you change the strata (even though the strata isn't changing). There's already code to try to force the panel to the back of it's parent. If it's not working, there's not much else I can do in the program. Try writing a script to SetFrameLevel() on the parent frame to a higher number.
This has been repeated a few hundred times in this thread. Please search back and read the wiki for more info.
You keep saying "level" but you're using strata terms. I'll assume you mean strata. The eePanel inherits it's strata from it's parent; even if you attempt to change the strata, it's not really being changed. The eePanel gui just isn't smart enough to recognize what it's actual parent is. It's possible this is pushing the frame to the back, but it's not really changing the settings.
My apologies. I meant Strata. So the whole parenting of eePanels happens outside the normal frame parenting mechanism? I'll have to look over the thread in that case.. I had assumed that real frame parentage was happening, and that strata could be set independently for child frames, so they wouldn't be forced into the same strata as their parent frame.
In any case, I thought I'd mention this on the off chance there was an obvious problem, like ordering of frame initialization from eePanel attributes (first set parent then strata, not the other way round, in case somehow the strata was getting inappropriately overridden by parent's strata).
No to your pets healthbar.
Once your pet pops up, it will have it's healthbar shown (naturally :-P ) and thus the panels you want to show when your pet is out.
I understand, but apperently it isn't possible to use that bar as a parent.
That's why the workaround with setting the healthbar as the parent is thought out by some clever people.
You just need to add an offset to the position of the panel to get it behind the pet button bar.
It probably requires looking over the Chronometer code, and hooking one of it's functions (like I do in my autobar script). It's probably not something a non-coder is going to be able to do.
Thanks.
Guess this'll take some time for me to get right XD .
Is it possible to get the alpha of a chat frame and set the alpha of a panel based on it?
Apparently that's not actually what I'm thinking of, what I should have asked is is there any way to detect whether a chat window has any text in it so I can display/hide a panel ?
Started fiddling again. :x
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
That works perfect! Thank you very much Evil Elvis :D
they do but i find it highly anoying having to save it under other toons and messy doing so
I have literally 0 time, so unless the mod breaks, I'm not going to be able to touch it for another few months. Even then it's not really a priority to me.
It probably requires looking over the Chronometer code, and hooking one of it's functions (like I do in my autobar script). It's probably not something a non-coder is going to be able to do.
You keep saying "level" but you're using strata terms. I'll assume you mean strata. The eePanel inherits it's strata from it's parent; even if you attempt to change the strata, it's not really being changed. The eePanel gui just isn't smart enough to recognize what it's actual parent is. It's possible this is pushing the frame to the back, but it's not really changing the settings.
You want to change the level (turn on advanced mode). It's possible the parent is set to level 0, in which case whichever frame is set to 0 last will be pushed to the bottom. This might be what's happening when you change the strata (even though the strata isn't changing). There's already code to try to force the panel to the back of it's parent. If it's not working, there's not much else I can do in the program. Try writing a script to SetFrameLevel() on the parent frame to a higher number.
This has been repeated a few hundred times in this thread. Please search back and read the wiki for more info.
My apologies. I meant Strata. So the whole parenting of eePanels happens outside the normal frame parenting mechanism? I'll have to look over the thread in that case.. I had assumed that real frame parentage was happening, and that strata could be set independently for child frames, so they wouldn't be forced into the same strata as their parent frame.
In any case, I thought I'd mention this on the off chance there was an obvious problem, like ordering of frame initialization from eePanel attributes (first set parent then strata, not the other way round, in case somehow the strata was getting inappropriately overridden by parent's strata).
I need a script that hides some eePanels when I dont have pet active and show them when I have pet.
Thanks in advance.
There are some post addressing this issue.
Of the top of my head: Parent your panels to the pet healthbar and offset them to be where you want them to be.
Once your pet pops up, it will have it's healthbar shown (naturally :-P ) and thus the panels you want to show when your pet is out.
That's why the workaround with setting the healthbar as the parent is thought out by some clever people.
You just need to add an offset to the position of the panel to get it behind the pet button bar.
Thanks.
Guess this'll take some time for me to get right XD .
3 pages back:
http://www.wowace.com/forums/index.php?topic=8139.msg147999#msg147999
Just change the two SetHeight() calls to Show() and Hide().
Apparently that's not actually what I'm thinking of, what I should have asked is is there any way to detect whether a chat window has any text in it so I can display/hide a panel ?
Started fiddling again. :x