WoW:Getting the current interface number: Difference between revisions

no edit summary
(Interface version nubemr for 5.4.1)
No edit summary
Line 1: Line 1:
{{UIHowTo}}
{{UIHowTo}}
When loading the interface, the WoW client skips over any addons whose interface version does not match its own. This is an effort to keep the client's behavior free of errors due to changes in the API. Each addon specifies (in its [[TOC format|.toc file]]) the interface version with which it complies. So an addon's .toc file most likely contains a line similar to:
When loading the interface, the WoW client skips over any [[AddOn]]s whose interface version does not match its own. This is an effort to keep the client's behavior free of errors due to changes in the API. Each AddOn specifies (in its [[TOC format|.toc file]]) the interface version with which it complies. So an AddOn's .toc file most likely contains a line similar to:
  ## Interface: 60100
  ## Interface: 60100
Here, 60100 would mean that the addon is designed against the [[Patch 6.1.0]] client (and any subsequent minor releases).
Here, 60100 would mean that the AddOn is designed against the [[Patch 6.1.0]] client (and any subsequent minor releases).


== Reference ==
== Reference ==
Line 13: Line 13:


* Its usually derrived exactly from 'major.minor' version
* 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 50401.
:: 2.4.0 (i.e. 2 being the major version number and .4 being the minor version number) is 20400, 5.4.0 is 50400 and, 5.4.1 (.1 being the sub-minor version) would likely be 50401 (however, [[Blizz]]ard doesn't appear to distinguish on the sub-minor version level, so you would still use 50400).


* Steal it from another addon
* 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.
:: 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}}
* Use {{api|GetBuildInfo}}
Anonymous user