05-30-17, 08:45 AM | #1 |
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:
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:
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. |
|
05-30-17, 06:54 PM | #2 |
Major changelog
Additions:
Last edited by p3lim : 06-03-17 at 04:47 PM. |
|
05-31-17, 11:41 AM | #3 |
oUF Nameplates Guide
Basics You need to modify your style function for it to handle nameplates. Here's an example style function: Lua Code:
One important thing to note here is that these nameplates will be parented to the Blizzard nameplate points on WorldFrame. You can adjust the anchor however you'd like, but you'll have to do it in the style function as seen above. Spawning nameplates is done like this: Lua Code:
oUF:SpawnNamePlates() takes three (optional) arguements:
If you use oUF:Factory() or use multiple styles, you may want to call oUF:SetActiveStyle("YourStyle") first. For more info, see code and documentation. Important: Scaling These nameplates are anchored to the default Blizzard nameplates, which in turn are anchored to WorldFrame. This means that all nameplates are not affected by the global UI scale. To change the scale, use frame:SetScale(scale) in the style function. One thing to note is that the scaling is influenced by CVars, and we recommend "resetting" these, like so: Lua Code:
Important: Protected Nameplates oUF does not interact with forbidden nameplates (friendly nameplates in instances), which means you don't need to worry about avoiding these in your layout. Last edited by lightspark : 06-01-17 at 09:56 AM. Reason: Reviewed by p3lim |
|
WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF 7.0 Upgrade Guide |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Linear Mode |
Switch to Hybrid Mode |
Switch to Threaded Mode |
|
|