WoW:API ActionButtonUp: Difference between revisions
Jump to navigation
Jump to search
ActionButtonUp -Documentation by AlexanderYoshi
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<center>'''ActionButtonUp''' ''-Documentation by AlexanderYoshi''</center> | |||
Release the specified action button. | Release the specified action button. | ||
ActionButtonUp(buttonID); | ActionButtonUp(buttonID, onSelf); | ||
---- | ---- | ||
Line 12: | Line 12: | ||
:;buttonID : The button ID of the button to release | :;buttonID : The button ID of the button to release | ||
:(??? onSelf) | |||
:;onSelf : ??? | |||
---- | ---- | ||
;''Returns'' | ;''Returns'' | ||
Line 22: | Line 25: | ||
;''Result'' | ;''Result'' | ||
:#Checks if BonusActionBarFrame is Visible. | |||
:#On True - | |||
:##Checks if BonusActionButton1 is in state PUSHED. | |||
:##On True - | |||
:###Changes BonusActionButton1 to state NORMAL. | |||
:###If currently editing/writing macro saves the action. | |||
:###Uses the action associated with the BonusActionButton1 | |||
:###Checks if it's the current action. | |||
:###If True - | |||
:####Changes Button 1's SetChecked value to 1. | |||
:###Else - | |||
:####Changes Button 1's SetChecked value to 0. | |||
:#Returns - Ending Function call. | |||
:#Checks if ActionButton1 is in state PUSHED. | |||
:#On True - | |||
:##Changes ActionButton1 to state NORMAL. | |||
:##If currently editing/writing macro saves the action. | |||
:##Uses the action associated with the ActionButton1. | |||
:##Checks if it's the current action. | |||
:##If True - | |||
:###Changes Button 1's SetChecked value to 1. | |||
:##Else - | |||
:###Changes Button 1's SetChecked value to 1. | |||
---- | ---- | ||
;''Description'' | ;''Description'' | ||
:Changes buttonID's state to NORMAL. | |||
: | :<I>NOTE:</I> Works with ActionBarFrame & BonusActionBarFrame. | ||
---- | ---- | ||
{{Template:WoW API}} | {{Template:WoW API}} |
Revision as of 06:40, 21 January 2005
Release the specified action button.
ActionButtonUp(buttonID, onSelf);
- Arguments
- (Number buttonID)
- buttonID
- The button ID of the button to release
- (??? onSelf)
- onSelf
- ???
- Returns
- nil
- Example
ActionButtonUp(1);
- Result
-
- Checks if BonusActionBarFrame is Visible.
- On True -
- Checks if BonusActionButton1 is in state PUSHED.
- On True -
- Changes BonusActionButton1 to state NORMAL.
- If currently editing/writing macro saves the action.
- Uses the action associated with the BonusActionButton1
- Checks if it's the current action.
- If True -
- Changes Button 1's SetChecked value to 1.
- Else -
- Changes Button 1's SetChecked value to 0.
- Returns - Ending Function call.
- Checks if ActionButton1 is in state PUSHED.
- On True -
- Changes ActionButton1 to state NORMAL.
- If currently editing/writing macro saves the action.
- Uses the action associated with the ActionButton1.
- Checks if it's the current action.
- If True -
- Changes Button 1's SetChecked value to 1.
- Else -
- Changes Button 1's SetChecked value to 1.
- Description
- Changes buttonID's state to NORMAL.
- NOTE: Works with ActionBarFrame & BonusActionBarFrame.