mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-22 12:10:48 +00:00
actionbar: hide keybinds on hidden buttons
This commit is contained in:
@@ -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("")
|
||||||
|
|||||||
Reference in New Issue
Block a user