From 16569d28ef18540c430f482eb30948086d4453c6 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 21 Dec 2017 14:22:47 +0100 Subject: [PATCH] actionbar: option to hide equipped item indicator --- api/config.lua | 1 + modules/actionbar.lua | 8 ++++++-- modules/gui.lua | 1 + 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/api/config.lua b/api/config.lua index 67cde1f5..4e735796 100644 --- a/api/config.lua +++ b/api/config.lua @@ -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") diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 69b6fc64..4c962e96 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -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 diff --git a/modules/gui.lua b/modules/gui.lua index 5788540b..d5840f19 100644 --- a/modules/gui.lua +++ b/modules/gui.lua @@ -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