--[[ SetPoints ]]
PlayerFrame:ClearAllPoints() PlayerFrame:SetPoint("center", -165, -140) PlayerFrame.SetPoint = function() end
TargetFrame:ClearAllPoints() TargetFrame:SetPoint("center", 165, -140) TargetFrame.SetPoint = function() end
TargetFrameToT:ClearAllPoints() TargetFrameToT:SetPoint("LEFT",TargetFrame,"Top", -15, -1) TargetFrameToT.SetPoint = function() end
TargetFrameToTTextureFrameName:ClearAllPoints() TargetFrameToTTextureFrameName:SetPoint("LEFT",TargetFrameToT,"Top", -1, -8) TargetFrameToTTextureFrameName.SetPoint = function() end
FocusFrameToT:SetPoint("bottomright", -35, -13)
PartyMemberFrame1:ClearAllPoints() PartyMemberFrame1:SetPoint("topleft", 255, -275)
Boss1TargetFrame:ClearAllPoints() Boss1TargetFrame:SetPoint("TOPRIGHT",UIParent,"TOPRIGHT",-140,-230) Boss1TargetFrame.SetPoint=function()end
TargetFrameSpellBar:ClearAllPoints() TargetFrameSpellBar:SetPoint("center", -120, 65) TargetFrameSpellBar.SetPoint=function()end
--[[ Scaling ]]
PlayerFrame:SetScale("1.4")
TargetFrame:SetScale("1.4")
for i=1,4 do _G["PartyMemberFrame"..i]:SetScale("1.3") end
Boss1TargetFrame:SetScale("1.3")
Boss2TargetFrame:SetScale("1.3")
Boss3TargetFrame:SetScale("1.3")
TargetFrameSpellBar:SetScale("1.4")
ComboFrame:SetScale("1.3")
--[[ Player castbar ]]
local cbf = "CastingBarFrame"
local cbbs = "Interface\\CastingBar\\UI-CastingBar-Border-Small"
local cbfs = "Interface\\CastingBar\\UI-CastingBar-Flash-Small"
_G[cbf]:SetSize(180,10)
_G[cbf.."Border"]:SetSize(240,40)
_G[cbf.."Border"]:SetPoint("TOP", _G[cbf], 0, 15)
_G[cbf.."Border"]:SetTexture(cbbs)
_G[cbf.."Flash"]:SetSize(240,40)
_G[cbf.."Flash"]:SetPoint("TOP", _G[cbf], 0, 15)
_G[cbf.."Flash"]:SetTexture(cbfs)
_G[cbf]:SetScale("1.3")
_G[cbf.."Text"]:SetPoint("TOP", _G[cbf], 0, 4)
_G[cbf]:ClearAllPoints()
_G[cbf]:SetPoint("TOP", WorldFrame, "BOTTOM", 0, 130) --0, 100
_G[cbf].SetPoint = function() end
_G[cbf.."Icon"]:Show()
_G[cbf.."Icon"]:SetHeight(20)
_G[cbf.."Icon"]:SetWidth(20)
--[[ Castbar timer from thek ]]
_G[cbf].timer = _G[cbf]:CreateFontString(nil)
_G[cbf].timer:SetFont("Fonts\\ARIALN.ttf", 13, "THINOUTLINE")
_G[cbf].timer:SetPoint("RIGHT", _G[cbf], "RIGHT", 24, 0)
_G[cbf].update = .1
local tcbf = "TargetFrameSpellBar"
_G[tcbf].timer = _G[tcbf]:CreateFontString(nil)
_G[tcbf].timer:SetFont("Fonts\\ARIALN.ttf", 13, "THINOUTLINE")
_G[tcbf].timer:SetPoint("RIGHT", _G[tcbf], "RIGHT", 24, 0)
_G[tcbf].update = .1
local fcbf = "FocusFrameSpellBar"
_G[fcbf].timer = _G[fcbf]:CreateFontString(nil)
_G[fcbf].timer:SetFont("Fonts\\ARIALN.ttf", 13, "THINOUTLINE")
_G[fcbf].timer:SetPoint("RIGHT", _G[fcbf], "RIGHT", 24, 0)
_G[fcbf].update = .1
hooksecurefunc("CastingBarFrame_OnUpdate", function(self, elapsed)
if not self.timer then return end
if self.update and self.update < elapsed then
if self.casting then
self.timer:SetText(format("%.1f", max(self.maxValue - self.value, 0)))
elseif self.channeling then
self.timer:SetText(format("%.1f", max(self.value, 0)))
else
self.timer:SetText("")
end
self.update = .1
else
self.update = self.update - elapsed
end
end)
--[[ Focus Castbar ]]
hooksecurefunc(FocusFrameSpellBar, "Show", function()
FocusFrameSpellBar:SetScale("1.6")
FocusFrameSpellBar:ClearAllPoints()
FocusFrameSpellBar:SetPoint("CENTER", UIParent, "CENTER", 0, 150)
FocusFrameSpellBar.SetPoint = function() end
end)
FocusFrameSpellBar:SetStatusBarColor(0,0.45,0.9); FocusFrameSpellBar.SetStatusBarColor = function() end
--[[ Runebar ]]
RuneFrame:ClearAllPoints() RuneFrame:SetPoint("CENTER",UIParent,"CENTER",0,-130) RuneFrame.SetPoint = function() end
for i=1,6 do _G["RuneButtonIndividual"..i]:SetScale("1.4") end
for i=1,6 do _G["RuneButtonIndividual"..i]:ClearAllPoints() end
RuneButtonIndividual3:SetPoint("CENTER",-12,0)
RuneButtonIndividual4:SetPoint("CENTER",12,0)
RuneButtonIndividual2:SetPoint("RIGHT",RuneButtonIndividual3,"LEFT",-4,8)
RuneButtonIndividual1:SetPoint("RIGHT",RuneButtonIndividual2,"LEFT",-4,8)
RuneButtonIndividual5:SetPoint("LEFT",RuneButtonIndividual4,"RIGHT",4,8)
RuneButtonIndividual6:SetPoint("LEFT",RuneButtonIndividual5,"RIGHT",4,8)
--[[ hiding pvp icon ]]
PlayerPVPIcon:SetAlpha(0)
TargetFrameTextureFramePVPIcon:SetAlpha(0)
--[[ Target and Focus HP-Text ]]
FrameList = {"Player", "Target", "Focus"}
function UpdateHealthValues(...)
for i = 1, select("#", unpack(FrameList)) do
local FrameName = (select(i, unpack(FrameList)))
local Health = AbbreviateLargeNumbers(UnitHealth(FrameName))
local HealthMax = AbbreviateLargeNumbers(UnitHealthMax(FrameName))
local HealthPercent = (UnitHealth(FrameName)/UnitHealthMax(FrameName))*100
--Curr&MaxHP _G[FrameName.."FrameHealthBar"].TextString:SetText(Health.."/"..HealthMax.." ("..format("%.0f",HealthPercent).."%)")
_G[FrameName.."FrameHealthBar"].TextString:SetText(Health.." ("..format("%.0f",HealthPercent).."%)")
end
end
hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", UpdateHealthValues)
hooksecurefunc("TextStatusBar_UpdateTextStringWithValues", function()
PlayerFrameManaBar.TextString:SetText(AbbreviateLargeNumbers(UnitMana("player")))
TargetFrameManaBar.TextString:SetText(AbbreviateLargeNumbers(UnitMana("target")))
FocusFrameManaBar.TextString:SetText(AbbreviateLargeNumbers(UnitMana("focus")))
end)
--[[ hiding combat text ]]
PetHitIndicator:ClearAllPoints()
PlayerHitIndicator:ClearAllPoints()
--[[ Class Icons ]]
UFP = "UnitFramePortrait_Update";
UICC = "Interface\\TargetingFrame\\UI-Classes-Circles";
CIT = CLASS_ICON_TCOORDS
hooksecurefunc(UFP,function(self)
if self.portrait then
if self.unit == "player" or self.unit == "pet" or self.unit == "partypet1" or self.unit == "partypet2" or self.unit == "partypet3" or self.unit == "partypet4" then return end
local t = CIT[select(2,UnitClass(self.unit))]
if t
then self.portrait:SetTexture(UICC) self.portrait:SetTexCoord(unpack(t)) end end end)