DB/UnitPowerBar

From wowdev
Jump to: navigation, search

≥ Cata


6.0.1.18179

struct UnitPowerBarRec {
  uint32_t m_ID;
  uint32_t m_minPower;
  uint32_t m_maxPower;
  uint32_t m_startPower;
  uint32_t m_centerPower;
  float m_regenerationPeace;
  float m_regenerationCombat;
  uint32_t m_barType;
  uint32_t m_fileDataID[6];
  uint32_t m_color[6];
  uint32_t m_flags;
  stringref m_name_lang;
  stringref m_cost_lang;
  stringref m_outOfError_lang;
  stringref m_toolTip_lang;
  float m_startInset;
  float m_endInset;
};

Flags

Value Description
0x002 smooth progress change
0x004 hide from others
0x008 show on raid
0x010 prevent powerbar reset on death
0x020 opaque spark effect
0x040 opaque flash effect
0x080 display as fractional Script_UnitAlternatePowerCounterInfo
0x100 animate numbers Script_UnitAlternatePowerCounterInfo