From 141bba726113651195f741251628dd031208c8af Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Sun, 4 May 2008 10:29:30 +0000 Subject: [PATCH] add :GetActionID() to the action buttons --- Button.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Button.lua b/Button.lua index ed49d9c..489fe1e 100644 --- a/Button.lua +++ b/Button.lua @@ -188,6 +188,10 @@ function Button:CalculateAction() return SecureButton_GetModifiedAttribute(self, "action", SecureButton_GetEffectiveButton(self)) or 1 end +function Button:GetActionID() + return self.action +end + function Button:UpdateAction(force) local action = self:CalculateAction() if action ~= self.action or force then