Runes of Magic Wiki
(Created page with '<pre>local button = ActionButton_GetActionButton(id);</pre>')
 
Maroot (talk | contribs)
(updated by Maroot)
Line 1: Line 1:
  +
__NOTOC__
<pre>local button = ActionButton_GetActionButton(id);</pre>
 
  +
Returns the action button userdata from the action button slot id.
 
<code><pre>local button = ActionButton_GetActionButton(id);</pre></code>
  +
  +
== Parameters ==
  +
=== Arguments ===
  +
:;id
  +
::Number - The action bar button ID 1 through 80.
  +
  +
=== Returns ===
  +
:;button
  +
::userdata - Table containing the buttons userdata
  +
  +
== Example ==
  +
<code><pre>local button = ActionButton_GetActionButton(10);
  +
local button_Name = button:GetName();
  +
</pre></code>

Revision as of 15:43, 18 April 2011

Returns the action button userdata from the action button slot id.

local button = ActionButton_GetActionButton(id);

Parameters

Arguments

id
Number - The action bar button ID 1 through 80.

Returns

button
userdata - Table containing the buttons userdata

Example

local button = ActionButton_GetActionButton(10);
local button_Name = button:GetName();