actionbar: add option for pet indicators

This commit is contained in:
shagu
2018-05-16 19:57:49 +02:00
parent 04e818c161
commit bd7d2b61fa
11 changed files with 18 additions and 1 deletions
+8 -1
View File
@@ -572,7 +572,14 @@ pfUI:RegisterModule("actionbar", function ()
texture :SetAlpha(0)
local castable = _G["PetActionButton"..i..'AutoCastable']
castable:SetAlpha(0)
if C.bars.showcastable == "1" then
castable:SetWidth(C.bars.icon_size*1.5)
castable:SetHeight(C.bars.icon_size*1.5)
castable:SetParent(button)
castable:SetTexCoord(.08, .9, .08, .9)
else
castable:SetAlpha(0)
end
local border = _G["PetActionButton"..i..'Border']
border:SetAlpha(0)
+1
View File
@@ -1010,6 +1010,7 @@ pfUI:RegisterModule("gui", function ()
CreateConfig(nil, this, T["Enable Range Based Auto Paging (Hunter)"], C.bars, "hunterbar", "checkbox")
CreateConfig(nil, this, T["Enable Action On Key Down"], C.bars, "keydown", "checkbox")
CreateConfig(nil, this, T["Switch Bar On Meta Key Press"], C.bars, "pagemaster", "checkbox")
CreateConfig(nil, this, T["Show Indicator For Castable Pet Actions"], C.bars, "showcastable", "checkbox")
this.setup = true
end
end)