WoW:API ActionButtonUp: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
m (Move page script moved page API ActionButtonUp to API ActionButtonUp without leaving a redirect) |
||
(11 intermediate revisions by 10 users not shown) | |||
Line 1: | Line 1: | ||
{{protectedapi|2.0|}} | |||
{{framexmlfunc|FrameXML/ActionButton.lua}} | |||
ActionButtonUp(buttonID [, onSelf]); | |||
Releases the specified action button. | |||
==Parameters== | |||
===Arguments=== | |||
:(Number buttonID [,onSelf]) | |||
:;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 | :;nil | ||
==Example== | |||
ActionButtonUp(1); | 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. |
Latest revision as of 04:45, 15 August 2023
This function is PROTECTED, and can only be called from Blizzard code.
|
- This function is implemented in Lua here FrameXML/ActionButton.lua.
ActionButtonUp(buttonID [, onSelf]);
Releases the specified action button.
Parameters[edit]
Arguments[edit]
- (Number buttonID [,onSelf])
- 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)
Returns[edit]
- nil
Example[edit]
ActionButtonUp(1);
Result[edit]
- 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[edit]
- Changes buttonID's state to NORMAL.
- NOTE: Works with ActionBarFrame & BonusActionBarFrame.