WoW:API SetActionBarToggles: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
No edit summary
m (Move page script moved page API SetActionBarToggles to API SetActionBarToggles without leaving a redirect)
 
(3 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<center>'''SetActionBarToggles''' - ''Documentation by [[User:Flickering|Flickering]]''</center>
{{wowapi}}


Set the desired state of the extra action bars.
Set the desired state of the extra action bars.
Line 13: Line 13:
:;sideRight2State : Flag - 1 if the second (inner) right side action bar is to be shown, 0 or nil otherwise.
:;sideRight2State : Flag - 1 if the second (inner) right side action bar is to be shown, 0 or nil otherwise.
=== Returns ===
=== Returns ===
:<i>nil</i>
:''nil''




Line 21: Line 21:
----
----
__NOTOC__
__NOTOC__
{{Template:WoW API}}

Latest revision as of 04:47, 15 August 2023

WoW API < SetActionBarToggles

Set the desired state of the extra action bars.

SetActionBarToggles(bottomLeftState, bottomRightState, sideRightState, sideRight2State)

Parameters

Arguments

(bottomLeftState, bottomRightState, sideRightState, sideRight2State)
bottomLeftState
Flag - 1 if the left-hand bottom action bar is to be shown, 0 or nil otherwise.
bottomRightState
Flag - 1 if the right-hand bottom action bar is to be shown, 0 or nil otherwise.
sideRightState
Flag - 1 if the first (outer) right side action bar is to be shown, 0 or nil otherwise.
sideRight2State
Flag - 1 if the second (inner) right side action bar is to be shown, 0 or nil otherwise.

Returns

nil


Details

Note that this doesn't actually change the action bar states directly, it simply registers the desired states for the next time the game is loaded. The states during play are in the variables SHOW_MULTI_ACTIONBAR_1, SHOW_MULTI_ACTIONBAR_2, SHOW_MULTI_ACTIONBAR_3, SHOW_MULTI_ACTIONBAR_4, and reflected by calling MultiActionBar_Update().