Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
(Created page with '{{wowapi}} {{protectedcombatapi|2.0}} Creates an override binding that uses an item when triggered. SetOverrideBindingItem(owner, isPriority, "key", "item"); == Arguments == ; …')
 
DDCBot (talk | contribs)
Tag: WoW API docs
(One intermediate revision by one other user not shown)
Line 5: Line 5:
 
== Arguments ==
 
== Arguments ==
 
; owner : Frame - The frame this binding "belongs" to; this can later be used to clear all override bindings belonging to a particular frame.
 
; owner : Frame - The frame this binding "belongs" to; this can later be used to clear all override bindings belonging to a particular frame.
−
; isPriority : Boolean - true if this is a priority binding, false otherwise. Both types of override bindings take precedence over normal bindings.
+
; isPriority : <span class="apitype">boolean</span> - true if this is a priority binding, false otherwise. Both types of override bindings take precedence over normal bindings.
−
; key : String - Binding to bind the command to. For example, "Q", "ALT-Q", "ALT-CTRL-SHIFT-Q", "BUTTON5"
+
; key : <span class="apitype">string</span> - Binding to bind the command to. For example, "Q", "ALT-Q", "ALT-CTRL-SHIFT-Q", "BUTTON5"
−
; item : String - Name or item link of the item to use when binding is triggered.
+
; item : <span class="apitype">string</span> - Name or item link of the item to use when binding is triggered.
   
 
== Details ==
 
== Details ==
Line 19: Line 19:
 
* {{api|SetOverrideBindingClick}}
 
* {{api|SetOverrideBindingClick}}
 
* {{api|SetOverrideBindingMacro}}
 
* {{api|SetOverrideBindingMacro}}
  +
* {{api|ClearOverrideBindings}}

Revision as of 03:32, 26 August 2021

Creates an override binding that uses an item when triggered.

SetOverrideBindingItem(owner, isPriority, "key", "item");

Arguments

owner
Frame - The frame this binding "belongs" to; this can later be used to clear all override bindings belonging to a particular frame.
isPriority
boolean - true if this is a priority binding, false otherwise. Both types of override bindings take precedence over normal bindings.
key
string - Binding to bind the command to. For example, "Q", "ALT-Q", "ALT-CTRL-SHIFT-Q", "BUTTON5"
item
string - Name or item link of the item to use when binding is triggered.

Details

  • Override bindings take precedence over the normal SetBinding bindings. Priority override bindings take precedence over non-priority override bindings.
  • Override bindings are never saved, and will be wiped by an interface reload.
  • You cannot use this function to clear an override binding; use SetOverrideBinding instead.

See also