WoW:Getting started with writing AddOns: Difference between revisions

m
Line 13: Line 13:
Getting information from WoW is critical to making your addon function. The [[World of Warcraft API]] has a list of functions that will give you that information. These are your building blocks, and if you don't have a block you need (or thought you needed) then you'll have to find another way to get information for your addon. Don't be discouraged, as with any programming language there are many different ways to accomplish your goal, so keep looking until you find a way.
Getting information from WoW is critical to making your addon function. The [[World of Warcraft API]] has a list of functions that will give you that information. These are your building blocks, and if you don't have a block you need (or thought you needed) then you'll have to find another way to get information for your addon. Don't be discouraged, as with any programming language there are many different ways to accomplish your goal, so keep looking until you find a way.


You need to extract the Blizzard interface files. This will allow you to view all of the XML and Lua files that make the game's default UI work, as well as provide you with two introductory tutorials. To do this:
You need to obtain the Blizzard interface files. This will allow you to view all of the XML and Lua files that make the game's default UI work, as well as provide you with two introductory tutorials. Blizzard has added the UI files to their support section to download with the [http://us.blizzard.com/support/article.xml?locale=en_US&articleId=21466 Interface Addon Kit].


:*Navigate to your World of Warcraft directory
You will need to extract the .zip files to a folder of your choosing.
:*Right click the WoW.exe file
:*Send to -> Desktop (Create Shortcut)
:*Navigate to your desktop, right click on your newly created shortcut
:*Go to properties, a new window will pop up
:*In the target line you need to add '-console' to the very end of the line it should look like this:
"C:\Users\Public\Games\World of Warcraft\Wow.exe" -console
:*Make sure to hit apply, close the window and launch your created shortcut
:*Once in game press the `/~ button (The button left of the 1 key) to open the World of Warcraft console
:*Type "exportInterfaceFiles code" or "exportInterfaceFiles art". Code is probably what your looking for, you will notice the game will lock up as it is exporting the files, this is normal.
:*You can now find the current version of the stock UI files in the BlizzardInterfaceCode folder of your WoW directory.


== Editing Tools ==
== Editing Tools ==
Anonymous user