< 魔兽世界百科 >
|
![]() |
(编者注:魔兽世界的API接口函数库相当庞大,本类的整理将是一个长期的编辑过程,逐步汉化,同时欢迎对魔兽世界宏与UI有兴趣的各路高手加入本项百科计划!)
编译自:WOWWIKI
魔兽世界API
魔兽世界API是一整套由暴雪提供的,允许玩家通过插件与宏改善魔兽世界游戏用户界面的函数接口功能.
以下是几近完整的函数接口列表,由暴雪开放提供,您可以使用它们创建你自己的插件或者宏.
我们欢迎您将自己了解的更多知识与我们共享,将自己的心得发布上来.
本函数大全所出现的函数也包括了用法说明,各参数变量的用法衍生自官方格式,为了使他们看起来更容易理解,格式上作了一些轻微改动.例如:
本函数包括两个参数,大括号表示第2个参数是可选的,标准用法是用中括号[ ]表示,这里用{}作了替换.
在参数 unit 两边的引号表示这个参数是个字符串,但这并不意味着该参数总是文字类的字符.
This example shows that the GetHeight() function is called as a method function on a FrameLayout object (and that it takes no arguments).
When adding new entries to this page, please follow this convention for consistency, since the actual page names are the word API followed by a space and the function name (with no argument information), links are written as follows:
: [[API SetMapZoom|SetMapZoom(continentIndex{,zoneIndex})]]For object methods, the name includes the object type:
: [[API FrameLayout GetHeight|FrameLayout:GetHeight()]]
Finally, there are a couple of prefixes which can appear before a link. REMOVED indicates that the function has been removed from the API. UI indicates that the function is provided by the FrameXML UI code, rather than the core API.
You can easily play with these functions by typing /script FunctionName(arg1,arg2,etc) into the chat box in WoW.
The API uses special values for some function arguments, the commonly used types are:
引用本页地址(点击复制到粘贴板) 粘贴到你想引用的网页。
HTML形式的传播:
论坛形式的传播: