WoW:API ChangeActionBarPage: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Robot: converting/fixing HTML)
Line 11: Line 11:


=== Returns ===
=== Returns ===
:<i>nil</i>
:''nil''


== Example ==
== Example ==

Revision as of 09:28, 20 January 2007

WoW API < ChangeActionBarPage

Changes the current action button to the one specified in the arguments.

ChangeActionBarPage(actionBarPage)

Parameters

Arguments

(actionBarPage)
actionBarPage
Numeric - Which page of your action bar to switch to. Expects an integer 1-6.

Returns

nil

Example

function ActionBar_FirstPage()
   ChangeActionBarPage(1);
end

Or for a macro:

/script ChangeActionBarPage(2);

Details

Notifies the UI that the current action button set has been updated to the current value of the CURRENT_ACTIONBAR_PAGE global variable.
Will cause an ACTIONBAR_PAGE_CHANGED event to fire (Whether the event fires when there hasn't actually been a change is untested).