Mercurial > wow > reaction
comparison Button.lua @ 264:d2e55b61e5e6 stable
Merge 1.1 beta 6 to stable
author | Flick |
---|---|
date | Fri, 06 May 2011 15:52:21 -0700 |
parents | c918ff9ac787 |
children | 36a29870bf34 |
comparison
equal
deleted
inserted
replaced
258:a7d2efb6ffc9 | 264:d2e55b61e5e6 |
---|---|
83 -- install LibKeyBound handlers onto frame | 83 -- install LibKeyBound handlers onto frame |
84 function f:GetActionName() | 84 function f:GetActionName() |
85 return format("%s:%s", bar:GetName(), idx) | 85 return format("%s:%s", bar:GetName(), idx) |
86 end | 86 end |
87 | 87 |
88 -- mouse and clicking | |
89 -- set click handlers in subclasses | |
90 f:EnableMouse(true) | |
91 f:RegisterForClicks( bar:GetConfig().clickDown and "AnyDown" or "AnyUp" ) | |
88 local clickBinding = format("CLICK %s:LeftButton", name) | 92 local clickBinding = format("CLICK %s:LeftButton", name) |
89 function f:GetHotkey() | 93 function f:GetHotkey() |
90 return LKB:ToShortKey(GetBindingKey(clickBinding)) | 94 return LKB:ToShortKey(GetBindingKey(clickBinding)) |
91 end | 95 end |
92 | 96 |