→Example
| Line 1: | Line 1: | ||
{{wowapi}} | {{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 === | ||
| Line 13: | Line 15: | ||
== 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 == | ||
| Line 29: | Line 31: | ||
: Will cause an ACTIONBAR_PAGE_CHANGED event to fire (Whether the event fires when there hasn't actually been a change is untested). | : Will cause an ACTIONBAR_PAGE_CHANGED event to fire (Whether the event fires when there hasn't actually been a change is untested). | ||
---- | ---- | ||
__NOTOC__ | __NOTOC__ | ||