actionbar: option to hide hotkey and macro text

This commit is contained in:
shagu
2017-03-01 18:54:51 +01:00
parent 27c6975d27
commit 4e98f8096f
3 changed files with 20 additions and 8 deletions
+2
View File
@@ -122,6 +122,8 @@ function pfUI:LoadConfig()
pfUI:UpdateConfig("bars", nil, "background", "1")
pfUI:UpdateConfig("bars", nil, "glowrange", "1")
pfUI:UpdateConfig("bars", nil, "rangecolor", "1,0.1,0.1,1")
pfUI:UpdateConfig("bars", nil, "showmacro", "1")
pfUI:UpdateConfig("bars", nil, "showkeybind", "1")
pfUI:UpdateConfig("bars", nil, "hunterbar", "1")
pfUI:UpdateConfig("bars", nil, "hide_time", "1")
pfUI:UpdateConfig("bars", nil, "hide_actionmain", "0")
+16 -8
View File
@@ -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)
+2
View File
@@ -916,6 +916,8 @@ pfUI:RegisterModule("gui", function ()
pfUI.gui:CreateConfig(pfUI.gui.bar, "Enable Action Bar Backgrounds", C.bars, "background", "checkbox")
pfUI.gui:CreateConfig(pfUI.gui.bar, "Enable Range Display On Hotkeys", C.bars, "glowrange", "checkbox")
pfUI.gui:CreateConfig(pfUI.gui.bar, "Range Display Color", C.bars, "rangecolor", "color")
pfUI.gui:CreateConfig(pfUI.gui.bar, "Show Macro Text", C.bars, "showmacro", "checkbox")
pfUI.gui:CreateConfig(pfUI.gui.bar, "Show Hotkey Text", C.bars, "showkeybind", "checkbox")
pfUI.gui:CreateConfig(pfUI.gui.bar, "Enable Range Based Auto Paging (Hunter)", C.bars, "hunterbar", "checkbox")
pfUI.gui:CreateConfig(pfUI.gui.bar, "Seconds Until Action Bars Autohide", C.bars, "hide_time")