View Single Post
02-23-16, 12:49 PM   #1
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
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:
  1. --cfg
  2.   cfg.POWER_TYPE_INDEX = SPELL_POWER_CHI
  3.   cfg.POWER_TYPE_TOKEN = "CHI"
  4.   cfg.REQ_SPEC         = nil
  5.   cfg.REQ_SPELL        = nil

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"
POWER_TYPE_INDEX = SPELL_POWER_CHI
POWER_TYPE_TOKEN = "CHI"
REQ_SPEC         = SPEC_MONK_WINDWALKER
REQ_SPELL        = nil
ARCANE MAGE
Code:
CLASS            = "MAGE"
POWER_TYPE_INDEX = SPELL_POWER_ARCANE_CHARGES
POWER_TYPE_TOKEN = "ARCANE_CHARGES"
REQ_SPEC         = SPEC_MAGE_ARCANE
REQ_SPELL        = nil
RETRIBUTION PALADIN
Code:
CLASS            = "PALADIN"
POWER_TYPE_INDEX = SPELL_POWER_HOLY_POWER
POWER_TYPE_TOKEN = "HOLY_POWER"
REQ_SPEC         = SPEC_PALADIN_RETRIBUTION
REQ_SPELL        = nil
ALL WARLOCK ... seems like soul shards are now the resource for all specs?!
Code:
CLASS            = "WARLOCK"
POWER_TYPE_INDEX = SPELL_POWER_SOUL_SHARDS
POWER_TYPE_TOKEN = "SOUL_SHARDS"
REQ_SPEC         = nil
REQ_SPELL        = nil
ROGUE ... adjustable for feral druid!
Code:
CLASS            = "ROGUE"
POWER_TYPE_INDEX = SPELL_POWER_COMBO_POINTS
POWER_TYPE_TOKEN = "COMBO_POINTS"
REQ_SPEC         = nil
REQ_SPELL        = nil
SHADOW PRIEST ... Currently I have no clue about shadow priests. There are two files. One for Insanity and one for shadow orbs. I will post the one for Insanity.
Code:
CLASS            = "PRIEST"
POWER_TYPE_INDEX = SPELL_POWER_INSANITY
POWER_TYPE_TOKEN = "INSANITY"
REQ_SPEC         = SPEC_PRIEST_SHADOW
REQ_SPELL        = nil
Havoc DEMONHUNTER
Code:
CLASS            = "DEMONHUNTER"
POWER_TYPE_INDEX = SPELL_POWER_FURY
POWER_TYPE_TOKEN = "FURY"
REQ_SPEC         = ???
REQ_SPELL        = nil
Vengeance DEMONHUNTER
Code:
CLASS            = "DEMONHUNTER"
POWER_TYPE_INDEX = SPELL_POWER_PAIN
POWER_TYPE_TOKEN = "PAIN"
REQ_SPEC         = ???
REQ_SPELL        = nil
BALANCE DRUID
Code:
CLASS            = "DRUID"
POWER_TYPE_INDEX = SPELL_POWER_LUNAR_POWER
POWER_TYPE_TOKEN = LUNAR_POWER
REQ_SPEC         = ???
REQ_SPELL        = nil
ENHANCEMENT SHAMAN
Code:
CLASS            = "SHAMAN"
POWER_TYPE_INDEX = SPELL_POWER_MAELSTROM
POWER_TYPE_TOKEN = MAELSTROM
REQ_SPEC         = ???
REQ_SPELL        = nil
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)

Last edited by zork : 02-24-16 at 04:41 AM.