mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-26 09:26:02 +00:00
actionbar: option to hide hotkey and macro text
This commit is contained in:
@@ -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
@@ -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)
|
||||
|
||||
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user