WoW:API IsAutoLootKeyDown: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(Updated to match the current API boilerplate.)
mNo edit summary
Line 11: Line 11:
=== Returns ===
=== Returns ===
:; down : [[Boolean]] - Whether the autoloot key is down
:; down : [[Boolean]] - Whether the autoloot key is down
== Removed ==
This function was removed in 2.2.x. For backward compatibility (maybe you have a private server?) or you'd rather not track down every single call to this function, just add this somewhere in the Lua file:
<pre>if not IsAutoLootKeyDown then
    function IsAutoLootKeyDown()
        return IsModifiedClick("AUTOLOOTTOGGLE")
    end
end</pre>

Revision as of 19:52, 26 October 2007

WoW API < IsAutoLootKeyDown


Checks whether the autoloot key is down.

down = IsAutoLootKeyDown()

Arguments

none


Returns

down
Boolean - Whether the autoloot key is down

Removed

This function was removed in 2.2.x. For backward compatibility (maybe you have a private server?) or you'd rather not track down every single call to this function, just add this somewhere in the Lua file:

if not IsAutoLootKeyDown then
    function IsAutoLootKeyDown()
        return IsModifiedClick("AUTOLOOTTOGGLE")
    end
end