WoW:API SaveBindings: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<center>'''SaveBindings'''</center>
<center>'''SaveBindings'''-Documentation partly by [[user:Lego|Lego]]-</center>


Writes the current in-memory key bindings to disk and fires an [[Events U (UI, Unit, Update, Use)#UPDATE_BINDINGS|UPDATE_BINDINGS]] event when finished.  The file it writes to is WTF\Account\ACCOUNTNAME\bindings-cache.wtf.
Writes the current in-memory key bindings to disk and fires an [[Events U (UI, Unit, Update, Use)#UPDATE_BINDINGS|UPDATE_BINDINGS]] event when finished.  The file it writes to is WTF\Account\ACCOUNTNAME\bindings-cache.wtf.
SaveBindings(which)


==Parameters==
==Parameters==
===Arguments===
===Arguments===
:(Integer which)


:SaveBindings takes either 1 or 2 as it's argument as of 1.9.  I'm not sure yet what they do yet.  [[User:Gxam|Gxam]] 19:58, 6 Jan 2006 (EST)
:;which : Integer - Can be the values 1 or 2. This value indicates whether the current key bindings set should be saved as account or character specific. One of following constants should be used:
:;;ACCOUNT_BINDINGS (1)
:;;CHARACTER_BINDINGS (2)


===Returns===
===Returns===

Revision as of 14:09, 11 January 2006

SaveBindings-Documentation partly by Lego-

Writes the current in-memory key bindings to disk and fires an UPDATE_BINDINGS event when finished. The file it writes to is WTF\Account\ACCOUNTNAME\bindings-cache.wtf.

SaveBindings(which)

Parameters

Arguments

(Integer which)
which
Integer - Can be the values 1 or 2. This value indicates whether the current key bindings set should be saved as account or character specific. One of following constants should be used:
ACCOUNT_BINDINGS (1)
CHARACTER_BINDINGS (2)

Returns

Nothing.

Template:WoW API