actionbar: hide keybinds on hidden buttons

This commit is contained in:
shagu
2019-04-06 10:56:16 +02:00
parent 3c2374913a
commit c19b0f0e95
+4 -2
View File
@@ -241,8 +241,10 @@ pfUI:RegisterModule("actionbar", function ()
if not self.showempty and self.backdrop and not texture and showgrid == 0 then if not self.showempty and self.backdrop and not texture and showgrid == 0 then
self.backdrop:Hide() self.backdrop:Hide()
self.hide = true
else else
self.backdrop:Show() self.backdrop:Show()
self.hide = nil
end end
-- update cooldown -- update cooldown
@@ -325,9 +327,9 @@ pfUI:RegisterModule("actionbar", function ()
end end
-- keybinds -- keybinds
if self.bar == bar and self.bar ~= 11 and self.bar ~= 12 then if not self.hide and self.bar == bar and self.bar ~= 11 and self.bar ~= 12 then
self.keybind:SetText(GetBindingText(GetBindingKey("ACTIONBUTTON"..id), "KEY_", 1)) self.keybind:SetText(GetBindingText(GetBindingKey("ACTIONBUTTON"..id), "KEY_", 1))
elseif buttontypes[self.bar] then elseif not self.hide and buttontypes[self.bar] then
self.keybind:SetText(GetBindingText(GetBindingKey(buttontypes[self.bar]..id), "KEY_", 1)) self.keybind:SetText(GetBindingText(GetBindingKey(buttontypes[self.bar]..id), "KEY_", 1))
else else
self.keybind:SetText("") self.keybind:SetText("")