Legion UnitPowerTypes and ClassBars
I wanted to create a thread to gather all the information on unit power type tokens that can be used for class bars in Legion.
The new Blizzard nameplates will have a lot of classbars: https://github.com/tomrus88/Blizzard...ard_NamePlates ClassPowerBar and ClassResourceOverlay from the FrameXML folder: https://github.com/tomrus88/Blizzard...ssPowerBar.lua https://github.com/tomrus88/Blizzard...rceOverlay.lua Class related files: https://github.com/tomrus88/Blizzard...inPowerBar.lua https://github.com/tomrus88/Blizzard...layPaladin.lua https://github.com/tomrus88/Blizzard...erlayRogue.lua (Combo points, maybe for druid aswell) https://github.com/tomrus88/Blizzard...ChargesBar.lua https://github.com/tomrus88/Blizzard...HarmonyBar.lua https://github.com/tomrus88/Blizzard...StaggerBar.lua https://github.com/tomrus88/Blizzard.../PriestBar.lua https://github.com/tomrus88/Blizzard...nsanityBar.lua https://github.com/tomrus88/Blizzard...L/ShardBar.lua https://github.com/tomrus88/Blizzard...emonHunter.lua https://github.com/tomrus88/Blizzard...seBarFrame.lua https://github.com/tomrus88/Blizzard...TotemFrame.lua Alternate power bars: https://github.com/tomrus88/Blizzard...tePowerBar.lua https://github.com/tomrus88/Blizzard...owerBarAlt.lua Some time ago I wrote rClassBars to unify the process of creating class bars. http://www.wowinterface.com/download...ClassBars.html To do that 4 informations are mostly sufficient. Max value can be obtained later on and used to create frames on the fly if needed. Example from rClassBars: https://github.com/zorker/rothui/blo...rs/chi.lua#L19 Lua Code:
On top of that you want the class, because specs are class specific. Example for the new nameplate classbar for monks: https://github.com/tomrus88/Blizzard...BarMonk.lua#L4 So lets start. WINDWALKER MONK Code:
CLASS = "MONK" Code:
CLASS = "MAGE" Code:
CLASS = "PALADIN" Code:
CLASS = "WARLOCK" Code:
CLASS = "ROGUE" Code:
CLASS = "PRIEST" Code:
CLASS = "DEMONHUNTER" Code:
CLASS = "DEMONHUNTER" Code:
CLASS = "DRUID" Code:
CLASS = "SHAMAN" |
You're missing a few power type removals and additions, see Constants.lua and UnitFrame.lua.
Balance Druid SPELL_POWER_ECLIPSE -> SPELL_POWER_LUNAR_POWER Enhancement Shaman SPELL_POWER_MAELSTROM Demon Hunter SPELL_POWER_FURY is Havoc DH SPELL_POWER_PAIN is Vengeance DH |
Thanks.
Hmm imo there are two issues here: https://github.com/Gethe/wow-ui-sour...tFrame.lua#L24 Chi has the wrong PowerColor Index. Should be 12. Arcane_Charges has no PowerColor Index. Should be 16. Here is the updated index table Code:
INDEX_VARIABLE INDEX TOKEN |
Quote:
Quote:
Shadow Orbs were removed entirely. Quote:
Nice compilation of information, some of it incorrect and/or missing however, I did a writeup of this in November: https://github.com/haste/oUF/issues/260 |
Deathkights
SPELL_POWER_RUNES 5 "RUNES" using UnitPower ( "player", 5 ) always returns 6 even after spending them. so i take it has its own API to pull spent runes. |
CURRENT_MAX_RUNES = 0
MAX_RUNE_CAPACITY = 7 And to set the cooldown for a particular run it uses : Code:
function RuneFrame_RunePowerUpdate(runeIndex, isEnergize) to get the current max. runes and hide the ones that exceed it: Code:
CURRENT_MAX_RUNES = UnitPowerMax("player", SPELL_POWER_RUNES) |
Never understood why they use 7, since its always been 6.
Also GetRuneCooldown() will crash the client if you're not on a death knight. Unless its been fixed. |
There are a couple of bars that have more then they use, I think ComboPoints is set to 9 where they only show 8 max.
|
Quote:
am using Code:
--Deathkight Dity Hacky Hacky. |
All times are GMT -6. The time now is 01:47 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI