WoW:API ActionButtonUp: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 56: Line 56:
----
----
{{Template:WoW API}}
{{Template:WoW API}}
[[Category:API Functions|ActionButtonUp]]
[[Category:API Action Functions|ActionButtonUp]]

Revision as of 18:15, 27 August 2005

ActionButtonUp -Documentation by AlexanderYoshi

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
  1. Checks if BonusActionBarFrame is Visible.
  2. On True -
    1. Checks if BonusActionButton1 is in state PUSHED.
    2. On True -
      1. Changes BonusActionButton1 to state NORMAL.
      2. If currently editing/writing macro saves the action.
      3. Uses the action associated with the BonusActionButton1
      4. Checks if it's the current action.
      5. If True -
        1. Changes Button 1's SetChecked value to 1.
      6. Else -
        1. Changes Button 1's SetChecked value to 0.
  3. Returns - Ending Function call.
  4. Checks if ActionButton1 is in state PUSHED.
  5. On True -
    1. Changes ActionButton1 to state NORMAL.
    2. If currently editing/writing macro saves the action.
    3. Uses the action associated with the ActionButton1.
    4. Checks if it's the current action.
    5. If True -
      1. Changes Button 1's SetChecked value to 1.
    6. Else -
      1. Changes Button 1's SetChecked value to 1.

Description
Changes buttonID's state to NORMAL.
NOTE: Works with ActionBarFrame & BonusActionBarFrame.

Template:WoW API