mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-13 17:00:49 +00:00
actionbar: create range indicator texture
This commit is contained in:
@@ -37,10 +37,15 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
this.rangeTimer = this.rangeTimer - elapsed
|
||||
if ( this.rangeTimer <= 0.1 ) then
|
||||
if ( IsActionInRange( ActionButton_GetPagedID(this)) == 0 ) then
|
||||
local r,g,b,a = strsplit(",", pfUI_config.bars.rangecolor)
|
||||
getglobal(this:GetName() .. 'Icon'):SetVertexColor(r,g,b,a)
|
||||
else
|
||||
getglobal(this:GetName() .. 'Icon'):SetVertexColor(1,1,1)
|
||||
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)
|
||||
end
|
||||
this.oor:Show()
|
||||
elseif this.oor then
|
||||
this.oor:Hide()
|
||||
end
|
||||
this.rangeTimer = TOOLTIP_UPDATE_TIME
|
||||
end
|
||||
|
||||
+1
-1
@@ -64,7 +64,7 @@ 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", "1.0,0.1,0.1,1")
|
||||
pfUI:UpdateConfig("bars", nil, "rangecolor", "0.5,0,0,.65")
|
||||
pfUI:UpdateConfig("bars", nil, "hide_time", "1")
|
||||
pfUI:UpdateConfig("bars", nil, "hide_bottom", "0")
|
||||
pfUI:UpdateConfig("bars", nil, "hide_bottomleft", "0")
|
||||
|
||||
Reference in New Issue
Block a user