diff classes/ReAction_PetActionDisplay.lua @ 8:c05fd3e18b4f

Version 0.31
author Flick <flickerstreak@gmail.com>
date Tue, 20 Mar 2007 21:33:59 +0000
parents f920db5fc6b1
children f3a7bfebc283
line wrap: on
line diff
--- a/classes/ReAction_PetActionDisplay.lua	Tue Mar 20 21:25:29 2007 +0000
+++ b/classes/ReAction_PetActionDisplay.lua	Tue Mar 20 21:33:59 2007 +0000
@@ -134,7 +134,7 @@
   self:DisplayVisibility()
   -- refresh the action ID display
   if ReAction.showIDs_ then
-    self:DisplayID(self:GetID())
+    self:DisplayID(true)
   end
 end
 
@@ -152,9 +152,9 @@
   return 30
 end
 
-function RAPAD:DisplayID( id )
+function RAPAD:DisplayID( show )
   local f = self.frames.actionID
-  if id then
+  if show then
     if not f then
       -- create the actionID label
       f = self.frames.button:CreateFontString(nil,"ARTWORK","NumberFontNormalSmall")
@@ -162,7 +162,7 @@
       f:SetTextColor( tcolor(actionIDColor) )
       self.frames.actionID = f
     end
-    f:SetText(tostring(id))
+    f:SetText(tostring(self:GetID()))
     f:Show()
   elseif f then
     f:Hide()