Shestak UI
Go Back   Shestak UI > Interface Forums > English Community > Modified Versions

Modified Versions Your modified version of ShestakUI.

Advertising

 
Thread Tools
Old 28.10.2012, 02:30   #1
 Assistant User Information

m2jest1c's Avatar
Post 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:
lua Code [Select]:
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):
lua Code [Select]:
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
lua Code [Select]:
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:
lua Code [Select]:
-- 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)
lua Code [Select]:
self.CPoints.Override = T.UpdateComboPoint
end
[hide]

3. ShestakUI\Config\Settings.lua

ShestakUI\Config\Settings.lua

add:
lua Code [Select]:
["range"] = true,
after (~470)
lua Code [Select]:
["totem"] = true,
[hide]

4. Place file RangeBar.lua in ShestakUI\Libs\oUF\Elements\
Says Thank:
gilinho (28.10.2012), Shestak (28.10.2012)
Old 28.10.2012, 02:30   #1.5 - Disable Ads

Advertise on this site


Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Embedded] oUF_RangeBar m2jest1c Modified Versions 20 04.11.2012 08:03


Mobile Style Русский English Deutsch Italian Chinese