OUF_p3lim - Adding altpower
I am trying to add altpowerbar to target frame. So I went ahead and added below codes into target section. But it's not showing up. Any idea?
Code:
|
If you want it to show your player altpowerbar, you should parent it to the player frame. You could still position it wherever you want.
|
Quote:
And since I added the codes inside the target frame section, self is indeed the target frame. I must have overlooked something obvious. |
By what you posted I can tell what you've added (and it seems right), but not where you've added it. Also, how do you test this? Does UnitAlternatePowerInfo("target") return anything? What is its hideFromOthers return?
|
Quote:
I added the codes in local = UnitSpecific = { ... and inside target = function(self)..end .. } I am gonna try to test out UnitAlternatePowerInfo("target") and hideFromOthers tonite. |
Not contributing much to the question but for testing maw of madness in twilight highlands is pretty good. :)
|
What nin suggested would work for testing if you edit the Toggler function in oUF/elements/altpowerbar.lua (line 128) to include unit == "target" in the condition. Remove this after done testing. This is needed because hideFromOthers is true in Maw of Madness and neither tagetframe.unit nor targetframe.realUnit are "player" when you target yourself.
|
Quote:
This doesnt make sense to me. |
oUF's altpower element would show the bar for every unit where the 6th return of UnitAlternatePowerInfo(unit) - hideFromOthers - is nil. Only exception is the player, where it would be always shown if present. You could also display the altpowerbar instead of the power bar by setting self.Power.displayAltPower = true. In that case the 7th return of UnitAlternatePowerInfo(unit) - showOnRaid - should be true. That's the case for encounters like Atramedes. You are not bound to obey that though, but in that case you would have to write your own implementation of the altpowerbar element or use self.Power.Override.
|
All times are GMT -6. The time now is 03:24 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI