WoW:API ChangeActionBarPage: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (Move page script moved page API ChangeActionBarPage to API ChangeActionBarPage without leaving a redirect) |
||
(6 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
{{wowapi}} | |||
Changes the current action button | Changes the current action button to the one specified in the arguments. | ||
ChangeActionBarPage() | ChangeActionBarPage(actionBarPage) | ||
== Parameters == | == Parameters == | ||
=== Arguments === | === Arguments === | ||
:() | :(actionBarPage) | ||
:;actionBarPage : Numeric - Which page of your action bar to switch to. Expects an integer 1-6. | |||
=== Returns === | === Returns === | ||
: | :''nil'' | ||
== Example == | == Example == | ||
<!-- begin code --> | <!-- begin code --> | ||
function | function ActionBar_FirstPage() | ||
ChangeActionBarPage(1); | |||
end | end | ||
<!-- end code --> | <!-- end code --> | ||
Or for a macro: | |||
<!-- begin code --> | |||
/script ChangeActionBarPage(2); | |||
<!-- end code --> | |||
== Details == | == Details == | ||
: Notifies the UI that the current action button set has been updated to the current value of the CURRENT_ACTIONBAR_PAGE global variable. | : 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 | : Will cause an ACTIONBAR_PAGE_CHANGED event to fire only if there was actually a change (tested in 2.3.0). | ||
: Do nothing in combat mode | |||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||
Latest revision as of 04:45, 15 August 2023
← WoW API < ChangeActionBarPage
Changes the current action button to the one specified in the arguments.
ChangeActionBarPage(actionBarPage)
Parameters[edit]
Arguments[edit]
- (actionBarPage)
- actionBarPage
- Numeric - Which page of your action bar to switch to. Expects an integer 1-6.
Returns[edit]
- nil
Example[edit]
function ActionBar_FirstPage() ChangeActionBarPage(1); end
Or for a macro:
/script ChangeActionBarPage(2);
Details[edit]
- 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 only if there was actually a change (tested in 2.3.0).
- Do nothing in combat mode