The Nerd Wonder@legacy41576556 (talk | contribs) (Changes the current action button set.) |
The Nerd Wonder@legacy41576556 (talk | contribs) m (Reformatted page to use the actual template) |
||
Line 1: | Line 1: | ||
+ | <center>'''ChangeActionBarPage''' ''-Documentation by The Nerd Wonder''</center> |
||
⚫ | |||
⚫ | |||
− | ChangeActionBarPage(); |
||
---- |
---- |
||
;''Arguments'' |
;''Arguments'' |
||
+ | |||
+ | <!-- List each argument, together with its type --> |
||
No arguments are passed. This function checks the current value of the global CURRENT_ACTIONBAR_PAGE and sets the action bar to show that page. Possible page numbers are in the range 1 - NUM_ACTIONBAR_PAGES. |
No arguments are passed. This function checks the current value of the global CURRENT_ACTIONBAR_PAGE and sets the action bar to show that page. Possible page numbers are in the range 1 - NUM_ACTIONBAR_PAGES. |
||
Line 23: | Line 25: | ||
ChangeActionBarPage(); |
ChangeActionBarPage(); |
||
end |
end |
||
+ | |||
+ | ;''Result'' |
||
This function does the same thing as pressing the Page Up button. It increments CURRENT_ACTIONBAR_PAGE, checks for a valid page number, then calls ChangeActionBarPage() to change the action bar. |
This function does the same thing as pressing the Page Up button. It increments CURRENT_ACTIONBAR_PAGE, checks for a valid page number, then calls ChangeActionBarPage() to change the action bar. |
||
Line 29: | Line 33: | ||
---- |
---- |
||
− | ;'' |
+ | ;''Details'' |
: Changes the current action button set. |
: Changes the current action button set. |
||
Line 35: | Line 39: | ||
---- |
---- |
||
{{Template:WoW API}} |
{{Template:WoW API}} |
||
+ | [[Category:API Functions|Action Functions]] |
Revision as of 05:24, 19 January 2005
Changes the current action button set.
- Arguments
No arguments are passed. This function checks the current value of the global CURRENT_ACTIONBAR_PAGE and sets the action bar to show that page. Possible page numbers are in the range 1 - NUM_ACTIONBAR_PAGES.
- Returns
- nil
- Example
function ActionBar_PageUp() CURRENT_ACTIONBAR_PAGE = CURRENT_ACTIONBAR_PAGE + 1; if ( CURRENT_ACTIONBAR_PAGE > NUM_ACTIONBAR_PAGES ) then CURRENT_ACTIONBAR_PAGE = 1; end ChangeActionBarPage(); end
- Result
This function does the same thing as pressing the Page Up button. It increments CURRENT_ACTIONBAR_PAGE, checks for a valid page number, then calls ChangeActionBarPage() to change the action bar.
This function can be found in Interface/FrameXML/ActionButton.lua.
- Details
- Changes the current action button set.
Template:WoW API