WoW:API ActionButtonUp: Difference between revisions

Styling and some info
({{framexml}})
(Styling and some info)
Line 1: Line 1:
{{framexml}}
{{framexml}}
 
__NOTOC__
<center>'''ActionButtonUp''' ''-Documentation by AlexanderYoshi''</center>
<center>'''ActionButtonUp''' ''-Documentation by AlexanderYoshi''</center>


Release the specified action button.
Release the specified action button.


  ActionButtonUp(buttonID, onSelf);
  ActionButtonUp(buttonID [, onSelf]);


----
==Parameters==
;''Arguments''
===Arguments===
:(Number buttonID [,onSelf])


:(Number buttonID)
:;buttonID : The button ID of the button to release (Integers from 1 to 12)
:;onSelf : if evaluates to true, casts on yourself no matter the target (See [[API CastSpellByName]])


:;buttonID : The button ID of the button to release
===Returns===
:;nil


:(??? onSelf)
:;onSelf : ???
----
;''Returns''
:;nil


----
==Example==
;''Example''
  ActionButtonUp(1);
  ActionButtonUp(1);


;''Result''
===Result===
:#Checks if BonusActionBarFrame is Visible.
:#Checks if BonusActionBarFrame is Visible.
:#On True -
:#On True -
Line 51: Line 46:
:###Changes Button 1's SetChecked value to 1.
:###Changes Button 1's SetChecked value to 1.


----
===Description===
;''Description''
:Changes buttonID's state to NORMAL.
:Changes buttonID's state to NORMAL.
:<I>NOTE:</I> Works with ActionBarFrame & BonusActionBarFrame.
:<I>NOTE:</I> Works with ActionBarFrame & BonusActionBarFrame.
Anonymous user