View Single Post
05-30-17, 08:45 AM   #1
p3lim
A Pyroguard Emberseer
 
p3lim's Avatar
AddOn Author - Click to view addons
Join Date: Feb 2007
Posts: 1,710
oUF 7.0 Upgrade Guide

Upgrade Guide

Element name changes

Elements have since its inception used various names with no set standard.
In the 7.0 release we've standardized all the names, with the following changes:
  • DruidMana > AdditionalPower
  • AltPowerBar > AlternativePower
  • Assistant > AssistantIndicator
  • ClassIcons > ClassPower
  • Combat > CombatIndicator
  • HealPrediction > HealthPrediction
  • Leader > LeaderIndicator
  • LFDRole > GroupRoleIndicator
  • MasterLooter > MasterLooterIndicator
  • PhaseIcon > PhaseIndicator
  • PvP > PvPIndicator
  • QuestIcon > QuestIndicator
  • RaidRole > RaidRoleIndicator
  • ReadyCheck > ReadyCheckIndicator
  • Resting > RestingIndicator
  • ResurrectIcon > ResurrectIndicator
  • RaidIcon > RaidTargetIndicator
  • Threat > ThreatIndicator
Basically, any element that represented an icon or some other form of indicator now has the suffix "Indicator".
All other elements are named after a fixed convention as well, and should be followed in the future.

Element changes

Aside from additions followed in the major changelog below, here are the breaking changes for the 7.0 update:
  • AdditionalPower:
    • ".displayPairs" option was removed
  • AlternativePower:
    • ".colorTexture" option was removed (it was useless, see UnitAlternatePowerTextureInfo)
    • PostUpdate parameters changed:
      • from: (min, cur, max)
      • to: (unit, cur, min, max)
  • Auras:
    • ".owner" attribute was renamed ".caster"
  • Castbar:
    • ".interrupt" attribute removed in favor of ".notInterruptible"
    • ".castid" attribute renamed to ".castID"
  • ClassPower:
    • PostUpdate parameters changed:
      • from: (cur, max, hasMaxChanged, powerType, event)
      • to: (cur, max, hasMaxChanged, powerType)
  • HealthPrediction:
    • PostUpdate parameters changed:
      • from: (unit, overAbsorb, overHealAbsorb)
      • to: (unit, myIncomingHeal, otherIncomingHeal, absorb, healAbsorb, hasOverAbsorb, hasOverHealAbsorb)
  • Power:
    • PostUpdate parameters changed:
      • from: (unit, cur, max, min)
      • to: (unit, cur, min, max)
  • Stagger:
    • PostUpdate parameters changed:
      • from: (max, cur, perc, r, g, b)
      • to: (cur, max)
    • Element no longer exists for non-Monk players
Element removals

The "CPoints" element is gone in 7.0, in favor of "ClassPower" (formerly "ClassIcons").
We saw no point in keeping an element that provided the same features as another, so it was dropped.

Last edited by lightspark : 06-11-17 at 11:21 AM.