Mercurial > wow > reaction
comparison VehicleExitButton.lua @ 259:c918ff9ac787
Add option to make buttons activate on mouse/key down
author | Flick |
---|---|
date | Mon, 25 Apr 2011 11:43:42 -0700 |
parents | 46b59a9ded76 |
children | 36a29870bf34 |
comparison
equal
deleted
inserted
replaced
256:5ab04f393b0b | 259:c918ff9ac787 |
---|---|
46 f:SetScript("OnEnter", function(frame) GameTooltip_AddNewbieTip(frame, LEAVE_VEHICLE, 1.0, 1.0, 1.0, nil) end) | 46 f:SetScript("OnEnter", function(frame) GameTooltip_AddNewbieTip(frame, LEAVE_VEHICLE, 1.0, 1.0, 1.0, nil) end) |
47 f:SetScript("OnLeave", GameTooltip_Hide) | 47 f:SetScript("OnLeave", GameTooltip_Hide) |
48 f:SetScript("OnEvent", function(frame, evt, ...) self:OnEvent(evt,...) end) | 48 f:SetScript("OnEvent", function(frame, evt, ...) self:OnEvent(evt,...) end) |
49 | 49 |
50 -- event registration | 50 -- event registration |
51 f:EnableMouse(true) | |
52 f:RegisterForClicks("AnyUp") | |
53 f:RegisterEvent("UPDATE_BINDINGS") | 51 f:RegisterEvent("UPDATE_BINDINGS") |
54 | 52 |
55 -- attach to skinner | 53 -- attach to skinner |
56 bar:SkinButton(self) | 54 bar:SkinButton(self) |
57 | 55 |