WoWInterface SVN PhanxConfigWidgets

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /trunk/PhanxConfig-KeyBinding
    from Rev 129 to Rev 168
    Reverse comparison

Rev 129 → Rev 168

PhanxConfig-KeyBinding.lua
3,10 → 3,19
Key binding button widget generator.
Based on AceGUI-3.0-Keybinding.
Requires LibStub.
 
Written by Phanx <addons@phanx.net>
https://github.com/phanx/PhanxConfigWidgets
 
This library is not intended for use by other authors. Absolutely no
support of any kind will be provided for other authors using it, and
its internals may change at any time without notice.
This is free and unencumbered software released into the public domain.
 
However, if you make any modifications, you are strongly encouraged
to give your version a different name, so that you do not break
addons using the original version, or vice versa.
 
And finally, I wrote this library for my own use in my own addons.
No support of any kind will be provided for use by anyone else,
and its internals may change at any time without any warning.
----------------------------------------------------------------------]]
 
local PhanxConfigButton = LibStub:GetLibrary("PhanxConfig-Button", true)
45,9 → 54,8
function scripts:OnEnter()
GameTooltip:SetOwner(self, "ANCHOR_RIGHT")
 
local text = self.tooltipText
if text then
GameTooltip:SetText(text, nil, nil, nil, nil, true)
if self.tooltipText then
GameTooltip:SetText(self.tooltipText, nil, nil, nil, nil, true)
elseif self.waitingForKey then
GameTooltip:SetText(HINT_TEXT_ACTIVE, nil, nil, nil, nil, true)
else