WoW:Getting started with writing AddOns: Difference between revisions

No edit summary
Line 20: Line 20:
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 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:


====Open WoW with the console flag====
=====For Windows=====
:*Navigate to your World of Warcraft directory
:*Navigate to your World of Warcraft directory
:*Right click the WoW.exe file
:*Right click the WoW.exe file
Line 28: Line 30:
"C:\Users\Public\Games\World of Warcraft\Wow.exe" -console
"C:\Users\Public\Games\World of Warcraft\Wow.exe" -console
:*Make sure to hit apply, close the window and launch your created shortcut
:*Make sure to hit apply, close the window and launch your created shortcut
:*At the login page ('''before''' logging in) press the `/~ button (The button left of the 1 key) to open the World of Warcraft console
 
=====For Mac OS X=====
:*Open Terminal.app, Located in /Applications/Utilities
:*Paste the following command and press return:
:**open "/Applications/World of Warcraft/World of Warcraft-64.app" --args -console
:*WoW will launch
:* Note that the command was tested with WoW 5.0.5 on Mac OS X 10.8
 
====Extract the API====
:*At the login page ('''before''' logging in) press the tilde button (The button left of the 1 key, labeled ~/`) 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.  
:*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.
:*You can now find the current version of the stock UI files in the BlizzardInterfaceCode folder of your WoW directory.