First off, fantastic addon; I couldn't heal without it. :)
My question is this: Is there any way to set grid's position externally? What I'd like to do is have Grid at the bottom of my screen at all times, whether it's in a party, 10-man raid, or 25-man raid. This would require setting Grid's y-position to be very low for party, somewhat higher for 10-man, and higher yet for 25-man.
Basically, what I'm asking is, what would the syntax be if I wanted to call from a kgPanels script, say for example.... Grid:setAnchor(0, -400)
I've tried digging around in the LUA files to find it myself, but it's beyond my competence level.
You don't need to write a kgPanels script, or addon, or anything else to accomplish what you want. All you need to do is change the Layout Anchor setting in Grid to BOTTOMLEFT or BOTTOMRIGHT. Then, when you switch to a "bigger" layout, everythign grows upward from the bottom instead of down from the top. I believe it's under Layout > Advanced.
I have another question. Would it be possible to externally change Grid's profile? I have Grid set up with a Healer profile that makes it large and in the center(ish) of my screen, and a DPS profile that shuffles it off to the side and shrinks it. I'd like to script it so that if I change specs on some characters, the profile changes automatically (for psuedocode, if class=="Priest" and spec==2 then Grid:SetProfile("DPS")).
If that's not possible, I'm still interested in the answer to my original question. :)
Writing an addon to set the profile when you changed specs would be quite simple; you'd just need to write a table mapping out which profile to use on which character for each spec, and then watch the profile change event (I don't know its name offhand), and set the appropriate profile when it happened.
First off, fantastic addon; I couldn't heal without it. :)
My question is this: Is there any way to set grid's position externally? What I'd like to do is have Grid at the bottom of my screen at all times, whether it's in a party, 10-man raid, or 25-man raid. This would require setting Grid's y-position to be very low for party, somewhat higher for 10-man, and higher yet for 25-man.
Basically, what I'm asking is, what would the syntax be if I wanted to call from a kgPanels script, say for example.... Grid:setAnchor(0, -400)
I've tried digging around in the LUA files to find it myself, but it's beyond my competence level.
Thanks very much for your help in advance!
Thanks!
If that's not possible, I'm still interested in the answer to my original question. :)
Writing an addon to set the profile when you changed specs would be quite simple; you'd just need to write a table mapping out which profile to use on which character for each spec, and then watch the profile change event (I don't know its name offhand), and set the appropriate profile when it happened.
Sweet. Thanks for your help, Phanx. :)