WoW:User interface customization guide: Difference between revisions
Jump to navigation
Jump to search
WoW:User interface customization guide (edit)
Revision as of 17:51, 22 November 2008
, 22 November 2008Typo fixing, typos fixed: german → German, english → English using AWB
No edit summary |
(Typo fixing, typos fixed: german → German, english → English using AWB) |
||
Line 36: | Line 36: | ||
The best way to become familiar with the way Lua is used to script the interface is to look at the scripts in the XML files, denoted by the <script> tag, and to browse the lua files. The lua files typically contain functions which are used by the corresponding XML files. | The best way to become familiar with the way Lua is used to script the interface is to look at the scripts in the XML files, denoted by the <script> tag, and to browse the lua files. The lua files typically contain functions which are used by the corresponding XML files. | ||
As a reference, the [[ | As a reference, the [[World of Warcraft API]] page contains a (almost) complete list of available API functions in World of Warcraft. Also the [[Widget API]] page contains an overview of the methods that are available when dealing with objects of the user interface - like action buttons or unit frames. Feel free to play around with the <tt>print()</tt> function to try out the various API functions. | ||
For example: | For example: | ||
/run print(GetLocale()); | /run print(GetLocale()); | ||
This will print your client locale into the default chat window. ("enUS" for | This will print your client locale into the default chat window. ("enUS" for English clients, "deDE" for German clients, etc.) | ||
== Getting Started == | == Getting Started == |