mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 04:00:02 +00:00
actionbar: option to hide hotkey and macro text
This commit is contained in:
+16
-8
@@ -499,16 +499,24 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
border:SetTexture(0,1,0,.75)
|
||||
|
||||
local hotkey = _G[actionbutton..i..'HotKey']
|
||||
hotkey:SetAllPoints(button)
|
||||
hotkey:SetFont(pfUI.font_square, C.global.font_size -2, "OUTLINE")
|
||||
hotkey:SetJustifyH("RIGHT")
|
||||
hotkey:SetJustifyV("TOP")
|
||||
if C.bars.showkeybind == "1" then
|
||||
hotkey:SetAllPoints(button)
|
||||
hotkey:SetFont(pfUI.font_square, C.global.font_size -2, "OUTLINE")
|
||||
hotkey:SetJustifyH("RIGHT")
|
||||
hotkey:SetJustifyV("TOP")
|
||||
else
|
||||
hotkey:SetAlpha(0)
|
||||
end
|
||||
|
||||
local name = _G[actionbutton..i..'Name']
|
||||
name:SetAllPoints(button)
|
||||
name:SetFont(pfUI.font_square, C.global.font_size -2, "OUTLINE")
|
||||
name:SetJustifyH("CENTER")
|
||||
name:SetJustifyV("BOTTOM")
|
||||
if C.bars.showmacro == "1" then
|
||||
name:SetAllPoints(button)
|
||||
name:SetFont(pfUI.font_square, C.global.font_size -2, "OUTLINE")
|
||||
name:SetJustifyH("CENTER")
|
||||
name:SetJustifyV("BOTTOM")
|
||||
else
|
||||
name:SetAlpha(0)
|
||||
end
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
Reference in New Issue
Block a user