actionbar: option to hide equipped item indicator

This commit is contained in:
shagu
2017-12-21 14:22:47 +01:00
parent 8da644dba8
commit 16569d28ef
3 changed files with 8 additions and 2 deletions
+1
View File
@@ -458,6 +458,7 @@ function pfUI:LoadConfig()
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, "showequipped", "1")
pfUI:UpdateConfig("bars", nil, "hunterbar", "0")
pfUI:UpdateConfig("bars", nil, "keydown", "0")
pfUI:UpdateConfig("bars", nil, "hide_time", "1")
+6 -2
View File
@@ -574,8 +574,12 @@ pfUI:RegisterModule("actionbar", function ()
icon:SetTexCoord(.08, .92, .08, .92)
local border = _G[actionbutton..i..'Border']
border:SetAllPoints(button)
border:SetTexture(0,1,0,.75)
if C.bars.showequipped == "1" then
border:SetAllPoints(button)
border:SetTexture(0,1,0,.75)
else
border:SetTexture(0,0,0,0)
end
local hotkey = _G[actionbutton..i..'HotKey']
if C.bars.showkeybind == "1" then
+1
View File
@@ -1213,6 +1213,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(this, T["Range Display Color"], C.bars, "rangecolor", "color")
CreateConfig(this, T["Show Macro Text"], C.bars, "showmacro", "checkbox")
CreateConfig(this, T["Show Hotkey Text"], C.bars, "showkeybind", "checkbox")
CreateConfig(this, T["Show Equipped Items"], C.bars, "showequipped", "checkbox")
CreateConfig(this, T["Enable Range Based Auto Paging (Hunter)"], C.bars, "hunterbar", "checkbox")
CreateConfig(this, T["Enable Action On Key Down"], C.bars, "keydown", "checkbox")
this.setup = true