small tweak to button code
This commit is contained in:
+4
-6
@@ -188,16 +188,14 @@ function Button:Update()
|
|||||||
self.border:Hide()
|
self.border:Hide()
|
||||||
end
|
end
|
||||||
|
|
||||||
if ( GameTooltip:IsOwned(self) ) then
|
if ( GameTooltip:GetOwner() == self) then
|
||||||
self:SetTooltip()
|
self:SetTooltip()
|
||||||
else
|
|
||||||
self.UpdateTooltip = nil
|
|
||||||
end
|
end
|
||||||
|
|
||||||
if self.parent.config.hidemacrotext then
|
if not IsConsumableAction(action) and not IsStackableAction(action) and not self.parent.config.hidemacrotext then
|
||||||
self.macroName:SetText("")
|
|
||||||
else
|
|
||||||
self.macroName:SetText(GetActionText(action))
|
self.macroName:SetText(GetActionText(action))
|
||||||
|
else
|
||||||
|
self.macroName:SetText("")
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -112,7 +112,6 @@ do
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
return tbl
|
return tbl
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user