m (apitype template) Tag: WoW API docs |
m (trim param whitespace) Tag: WoW API docs |
||
(2 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
==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. |
− | ; |
+ | :;isPriority:{{apitype|boolean}} - true if this is a priority binding, false otherwise. Both types of override bindings take precedence over normal bindings. |
− | ; |
+ | :;key:{{apitype|string}} - Binding to bind the command to. For example, "Q", "ALT-Q", "ALT-CTRL-SHIFT-Q", "BUTTON5" |
− | ; |
+ | :;item:{{apitype|string}} - Name or item link of the item to use when binding is triggered. |
==Details== |
==Details== |
Revision as of 16:40, 21 July 2022
Automated updating of API pages at this location, to reflect patch changes, has ceased from 10.1.7 onwards. |
This function is protected, and cannot be called from insecure code while in in combat.
|
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.