Fandom

WoWWiki

API ActionButtonUp

104,634pages on
this wiki
Add New Page
Talk0 Share

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.


WoW API < ActionButtonUp
Icon-information-22x22This function is implemented by FrameXML in [DEPRECATED http://wowprogramming.com/utils/xmlbrowser/live/FrameXML/ActionButton.lua FrameXML/ActionButton.lua].


ActionButtonUp(buttonID [, onSelf]);

Releases the specified action button.


ParametersEdit

ArgumentsEdit

(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)

ReturnsEdit

nil


ExampleEdit

ActionButtonUp(1);

ResultEdit

  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.

DescriptionEdit

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

Also on Fandom

Random Wiki