WoW:Getting the current interface number (source)
Revision as of 04:13, 9 September 2009
, 9 September 2009Changed wording I though was misleading and Added a parenthesis where it was missing in a code sample
(rewrite, update) |
m (Changed wording I though was misleading and Added a parenthesis where it was missing in a code sample) |
||
| Line 5: | Line 5: | ||
There are a number of ways to get the current interface version: | There are a number of ways to get the current interface version: | ||
:; It | :; It probably is {{API LatestInterface}} : But this number is [[Template:API LatestInterface|maintained locally]], so it ''might'' be out of date. | ||
:; 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. | :; 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. | :; 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> | :; 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]. | :; View FrameXML.toc online: For instance at [{{wdnlink|FrameXML/FrameXML.toc}} wowcompares]. | ||