Disable the range update when the range display is disabled.
This commit is contained in:
+5
-1
@@ -280,7 +280,7 @@ end
|
|||||||
local function updateFunc(self)
|
local function updateFunc(self)
|
||||||
local parent = self:GetParent()
|
local parent = self:GetParent()
|
||||||
if not self.BT4init or not parent.BT4BarType then return end
|
if not self.BT4init or not parent.BT4BarType then return end
|
||||||
if not ActionHasRange(self.action) then
|
if oorsetting == "none" or not ActionHasRange(self.action) then
|
||||||
self.rangeTimer = nil
|
self.rangeTimer = nil
|
||||||
self.outOfRange = nil
|
self.outOfRange = nil
|
||||||
end
|
end
|
||||||
@@ -467,6 +467,10 @@ function Button:UpdateUsable()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function Button:UpdateRange()
|
function Button:UpdateRange()
|
||||||
|
if oorsetting == "none" or not ActionHasRange(self.action) then
|
||||||
|
self.rangeTimer = nil
|
||||||
|
self.outOfRange = nil
|
||||||
|
end
|
||||||
self.hotkey:SetVertexColor(1.0, 1.0, 1.0)
|
self.hotkey:SetVertexColor(1.0, 1.0, 1.0)
|
||||||
self:UpdateUsable()
|
self:UpdateUsable()
|
||||||
onUpdate(self, 10)
|
onUpdate(self, 10)
|
||||||
|
|||||||
Reference in New Issue
Block a user