diff 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
line wrap: on
line diff
--- a/Button.lua	Tue Apr 12 16:07:21 2011 -0700
+++ b/Button.lua	Fri May 06 15:52:21 2011 -0700
@@ -85,6 +85,10 @@
     return format("%s:%s", bar:GetName(), idx)
   end
 
+  -- mouse and clicking
+  -- set click handlers in subclasses
+  f:EnableMouse(true)
+  f:RegisterForClicks( bar:GetConfig().clickDown and "AnyDown" or "AnyUp" )
   local clickBinding = format("CLICK %s:LeftButton", name)
   function f:GetHotkey()
     return LKB:ToShortKey(GetBindingKey(clickBinding))