WoW:API LoadBindings: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API LoadBindings to API LoadBindings without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{wowapi}}
{{wowapi}}
Loads a binding set into memory, activating those bindings.
LoadBindings(bindingSet);


Loads into memory whatever key bindings are currently stored on disk, or the default key bindings, and fires an UPDATE_BINDINGS event when finished. The file it reads from is WTF\Account\ACCOUNTNAME\bindings-cache.wtf.
== Arguments ==
;bindingSet : Number - Which binding set to load; one of the following three numeric constants:
:* DEFAULT_BINDINGS (0)
:* ACCOUNT_BINDINGS (1)
:* CHARACTER_BINDINGS (2)


LoadBindings(which);
==Fires Events==
* {{api|t=e|UPDATE_BINDINGS}} when the binding set has been loaded.


== Parameters ==
==Notes==
=== Arguments ===
* The file it reads from is WTF\Account\ACCOUNTNAME\bindings-cache.wtf.
 
* NOCOMBAT
:(Integer which)
 
:;which : Integer - Takes the values 0, 1 or 2. Indicates whether to load the default, account or character specific key bindings. One of the following constants should be used:
:;;DEFAULT_BINDINGS (0)
:;;ACCOUNT_BINDINGS (1)
:;;CHARACTER_BINDINGS (2)
 
 
=== Returns ===
 
:(nothing)
 
----
__NOTOC__

Latest revision as of 04:46, 15 August 2023

WoW API < LoadBindings

Loads a binding set into memory, activating those bindings.

LoadBindings(bindingSet);

Arguments[edit]

bindingSet
Number - Which binding set to load; one of the following three numeric constants:
  • DEFAULT_BINDINGS (0)
  • ACCOUNT_BINDINGS (1)
  • CHARACTER_BINDINGS (2)

Fires Events[edit]

Notes[edit]

  • The file it reads from is WTF\Account\ACCOUNTNAME\bindings-cache.wtf.
  • NOCOMBAT