add :GetActionID() to the action buttons

This commit is contained in:
Hendrik Leppkes
2008-05-04 10:29:30 +00:00
parent 4fc318de81
commit 141bba7261
+4
View File
@@ -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