diff --git a/modules/actionbar.lua b/modules/actionbar.lua index 30eb9861..e109e023 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -37,15 +37,12 @@ pfUI:RegisterModule("actionbar", function () this.rangeTimer = this.rangeTimer - elapsed if ( this.rangeTimer <= 0.1 ) then if ( IsActionInRange( ActionButton_GetPagedID(this)) == 0 ) then - if not this.oor then - local r,g,b,a = strsplit(",", pfUI_config.bars.rangecolor) - this.oor = this:CreateTexture("OVERLAY") - this.oor:SetTexture(r,g,b,a) - this.oor:SetAllPoints(this) + if not this.a then + this.r,this.g,this.b,this.a = strsplit(",", pfUI_config.bars.rangecolor) end - this.oor:Show() - elseif this.oor then - this.oor:Hide() + getglobal(this:GetName() .. 'Icon'):SetVertexColor(this.r, this.g, this.b, this.a) + elseif IsUsableAction(ActionButton_GetPagedID(this)) then + getglobal(this:GetName() .. 'Icon'):SetVertexColor(1, 1, 1, 1) end this.rangeTimer = TOOLTIP_UPDATE_TIME end diff --git a/modules/config.lua b/modules/config.lua index ab773500..f61b03bd 100644 --- a/modules/config.lua +++ b/modules/config.lua @@ -79,8 +79,8 @@ function pfUI:LoadConfig() pfUI:UpdateConfig("bars", nil, "icon_size", "24") pfUI:UpdateConfig("bars", nil, "background", "1") - pfUI:UpdateConfig("bars", nil, "glowrange", "0") - pfUI:UpdateConfig("bars", nil, "rangecolor", "0.5,0,0,.65") + pfUI:UpdateConfig("bars", nil, "glowrange", "1") + pfUI:UpdateConfig("bars", nil, "rangecolor", "1,0.1,0.1,1") pfUI:UpdateConfig("bars", nil, "hide_time", "1") pfUI:UpdateConfig("bars", nil, "hide_bottom", "0") pfUI:UpdateConfig("bars", nil, "hide_bottomleft", "0")