added options to hide the hotkey and macrotext

This commit is contained in:
Hendrik Leppkes
2008-05-31 15:58:28 +00:00
parent e07b43dbc1
commit f3c2336d02
3 changed files with 47 additions and 2 deletions
+1 -2
View File
@@ -27,7 +27,6 @@ function Bartender4.Button:Create(id, parent)
button.rid = id
button.id = absid
button.parent = parent
button.settings = parent.module.db
button:SetFrameStrata("MEDIUM")
button:SetWidth(36)
@@ -282,7 +281,7 @@ function Button:UpdateHotkeys()
local key = self:GetHotkey() or ""
local hotkey = self.hotkey
if key == "" or self.settings.profile.HideHotkey or not HasAction(self.action) then
if key == "" or self.parent.config.hidehotkey or not HasAction(self.action) then
hotkey:SetText(RANGE_INDICATOR)
hotkey:SetPoint("TOPLEFT", self, "TOPLEFT", 1, -2)
hotkey:Hide()