Navigation menu

WoW:User interface customization guide: Difference between revisions

Jump to navigation Jump to search
Typo 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 [[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.
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 english clients, "deDE" for german clients, etc.)
This will print your client locale into the default chat window. ("enUS" for English clients, "deDE" for German clients, etc.)


== Getting Started ==
== Getting Started ==
Anonymous user