Power bat alt issue
In some quests like Unyielding Fists: Trial of Bamboo,the player get into a vehicle but got altpower itself.
That is, UnitPower("player", ALTERNATE_POWER_INDEX) returns the value while UnitPower("vehicle", ALTERNATE_POWER_INDEX) returns nil. But the unit of player frame is vehicle, not player. so the power bar alt don't show up in these cases. Here's my solution. I wonder if anybody have a better solution. :) https://github.com/Paojy/Altz-UI/com...dc836bd773df9b |
Quote:
Lua Code:
|
Would you please post all the code in altpowerbar.lua?:)
|
Quote:
Check out my coding for SimplePowerBar the full Lua for the blizzard frame is as follows: http://pastebin.com/01q9PUQ8 |
Just register oUF's AltPowerBar element for the pet frame too. You could test this with http://www.wowhead.com/quest=28733/basic-botany too, as it is more accessible.
When the player is in a vehicle, the pet frame holds the player unit: For the pet frame then: self.unit = "player", self.realUnit = "pet" For the player frame: self.unit = "vehicle", self.realUnit = "player" |
Correct. I do the same thing in oUF_Diablo.
|
Thanks a lot! :banana::banana:
|
All times are GMT -6. The time now is 11:15 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI