Assistant
Join Date: 12.06.2010
Country:
Reputation: 298
|
oUF_RangeBar
|
|
oUF_RangeBar
Analogue of priest's HaloPro for oUF.
5-15 yards - cyan, 15-25 and 30-40 - yellow, 25-30 - green, over 40 - red

Installation:
1. ShestakUI\Core\Functions.lua
ShestakUI\Core\Functions.lua
add:
T.UpdateDistance = function(self) if self.CPoints then return end if self.RangeBar:IsShown() then if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 19) end else if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 5) end end end
change (~986-990):
if cpoints[1]:IsShown() then if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 19) end else if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 5) end end
on
if self.RangeBar then if cpoints[1]:IsShown() and self.RangeBar:IsShown() then cpoints:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 21) if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 33) end elseif cpoints[1]:IsShown() or self.RangeBar:IsShown() then cpoints:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 7) if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 19) end else if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 5) end end else if cpoints[1]:IsShown() then if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 19) end else if self.Auras then self.Auras:SetPoint("BOTTOMLEFT", self, "TOPLEFT", -2, 5) end end end
[hide]
2. ShestakUI\Modules\UnitFrames\Layout.lua
ShestakUI\Modules\UnitFrames\Layout.lua
add:
-- Priest Range bar if C.unitframe_class_bar.range == true then self.RangeBar = CreateFrame("StatusBar", self:GetName().."_RangeBar", self) self.RangeBar:CreateBackdrop("Default") self.RangeBar:SetPoint("BOTTOMLEFT", self, "TOPLEFT", 0, 7) self.RangeBar:SetSize(217, 7) self.RangeBar:SetStatusBarTexture(C.media.texture) self.RangeBar:SetScript("OnShow", function() T.UpdateDistance(self) end) self.RangeBar:SetScript("OnHide", function() T.UpdateDistance(self) end) self.RangeBar.bg = self.RangeBar:CreateTexture(nil, "BORDER") self.RangeBar.bg:SetAllPoints() self.RangeBar.bg:SetTexture(C.media.texture) end
after (~707-708)
self.CPoints.Override = T.UpdateComboPoint end
[hide]
3. ShestakUI\Config\Settings.lua
ShestakUI\Config\Settings.lua
4. Place file RangeBar.lua in ShestakUI\Libs\oUF\Elements\
|