X and Y positions of Health and Mana within a frame.
Hello. I am currently using oUF_Nivaya, as my lua skills are 0, it has that handy in-game config. I do however know other kinds of code so reading through the lua files does end up making some sense to me, I have been able to figure out the fairly obvious.
I was wondering how I might go about go about moving the X and Y position of the mana bar within the Player and Target (and Focus etc) frames. I can move the X and Y position of the specific frames to high heaven, but I can't seem to specifically target the mana bar (or any specific bar within a frame). I noticed these lines that I thought I could add to: Code:
ptWidth = 140, -- Size Variables for Player and Target frames Code:
ptManaX = 5, |
Look for code that uses the call "SetPoint" as that determines the relative location to another UI object (or to the UIParent).
|
in oUF_Nivaya.lua :
Code:
self.Power:SetPoint("LEFT") Code:
self.Power:SetPoint("LEFT", 5) |
I found another cluster of line very similar in the file init_and_config.lua :
Code:
self.Power:SetPoint("LEFT", self.Portrait, "RIGHT", 2, 0) Code:
function oUF_Nivaya:UpdatePortrait(self, unit) |
I'm probably way off but the last setpoint
Code:
self.Power:SetPoint("TOP", self.Health, "BOTTOM", 0, -1) |
http://wowprogramming.com/docs/widgets/Region/SetPoint -- Might want to read this.
|
Thanks a lot, that link is great. There is so many pages about lua and WoW I found it nigh impossible to find a really good site like this via google. This is helpful for more than just info about the specific topic for me thanks.
|
All times are GMT -6. The time now is 10:10 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI