49
edits
m (Changed wording I though was misleading and Added a parenthesis where it was missing in a code sample) |
m (→Reference) |
||
| Line 4: | Line 4: | ||
Here, 20400 would mean that the addon is designed against the [[Patch 2.4]] client (and any subsequent minor releases). | Here, 20400 would mean that the addon is designed against the [[Patch 2.4]] client (and any subsequent minor releases). | ||
== Reference == | |||
There are a number of ways to get the current interface version: | There are a number of ways to get the current interface version: | ||
: | * See the latest '[[Patch 5.4.0|patch notes]]' and look for the 'Interface' number in the Patch box. | ||
: | :: This is the most authoritative source on the Wiki. | ||
* The '''current''' number probably is '{{API LatestInterface}}', from our WoWWIki 'Interface Version' template {{t|API LatestInterface}} | |||
:: But this number is [[Template:API LatestInterface|maintained manualy]], so it ''might'' be out of date. | |||
* Its usually derrived exactly from 'major.minor' version | |||
:: 2.4.0 is 20400, 5.4.0 is 50400 and, 5.4.1 would likely be 50400. | |||
* Steal it from another addon | |||
:: Recently updated addons, which are not listed as "out of date" by the client contain the latest Interface version in their toc tag. | |||
* Use {{api|GetBuildInfo}} | |||
:: In particular, <code>/run print((select(4, GetBuildInfo())));</code> should output the correct version to your chat frame. | |||
* Extract FrameXML and check FrameXML.toc | |||
:: You can download Blizzard's [http://www.blizzard.com/support/wow/?id=aww01669p User Interface Customization tool], use it to extract interface data, and peek at <code>World of Warcraft\Blizzard Interface Data (usUS)\FrameXML\FrameXML.toc</code> | |||
* View FrameXML.toc online | |||
:: For instance at [{{wdnlink|FrameXML/FrameXML.toc}} wowcompares]. | |||