Comment from line 778 to line 866.
This code:
Code:
if (unit == "player" or unit == "target" or unit == "boss" or unit == "focus" or unit == "arena") then
local cb = CreateFrame("StatusBar", nil, self)
cb:SetStatusBarTexture(gxMedia.statusBar)
cb:SetPoint("TOPLEFT", self.Panel, 1, -1)
cb:SetPoint("BOTTOMRIGHT", self.Panel, -1, 1)
cb:SetFrameStrata("HIGH")
local bg = cb:CreateTexture(nil, "BACKGROUND")
bg:SetAllPoints(cb)
bg:SetTexture(gxMedia.statusBar)
local time = cb:CreateFontString(nil, "OVERLAY")
time:SetFont(gxMedia.font, 12)
time:SetShadowColor(0, 0, 0)
time:SetShadowOffset(1.25, -1.25)
time:SetTextColor(0.84, 0.75, 0.65)
time:SetJustifyH("RIGHT")
if (unit == "target" or unit == "focus" or unit == "boss") then
cb.Reverse = true
cb:SetStatusBarColor(.1, .1, .1)
cb:SetStatusBarTexture(gxMedia.bgFile)
bg:SetVertexColor(.2, 1, 1)
time:SetPoint("LEFT", 3, .5)
else
cb:SetStatusBarColor(.2, 1, 1)
bg:SetVertexColor(.1, .1, .1)
bg:SetTexture(gxMedia.bgFile)
time:SetPoint("RIGHT", -3, .5)
end
local text = cb:CreateFontString(nil, "OVERLAY")
text:SetFont(gxMedia.font, 12)
text:SetShadowColor(0, 0, 0)
text:SetShadowOffset(1.25, -1.25)
text:SetPoint("CENTER", 0, .5)
text:SetTextColor(0.84, 0.75, 0.65)
local icon = cb:CreateTexture(nil, "ARTWORK")
icon:SetHeight(28.5)
icon:SetWidth(28.5)
icon:SetTexCoord(0, 1, 0, 1)
local overlay = cb:CreateTexture(nil, "OVERLAY")
overlay:SetPoint("TOPLEFT", icon, -1.5, 1)
overlay:SetPoint("BOTTOMRIGHT", icon, 1, -1)
overlay:SetTexture(gxMedia.buttonOverlay)
overlay:SetVertexColor(.6, .6, .6)
local backdrop = CreateFrame("Frame", nil, self)
backdrop:SetPoint("TOPLEFT", icon, -4, 3)
backdrop:SetPoint("BOTTOMRIGHT", icon, 3, -3.5)
backdrop:SetParent(cb)
backdrop:SetBackdrop({
edgeFile = gxMedia.edgeFile,
edgeSize = 4,
insets = {
left = 3,
right = 3,
top = 3,
bottom = 3
}
})
backdrop:SetBackdropColor(0, 0, 0, 0)
backdrop:SetBackdropBorderColor(0, 0, 0, 0.7)
icon.Backdrop = backdrop
icon.Overlay = overlay
cb.Icon = icon
cb.Text = text
cb.Time = time
cb.bg = bg
cb.PostChannelStart = PostChannelStart
cb.PostCastStart = PostCastStart
cb.PostCastDelayed = PostCastDelayed
cb.OnUpdate = castOnUpdate
self.Castbar = cb
end
if (unit == "pet" and not self.Castbar) then
PetCastingBarFrame:UnregisterAllEvents()
PetCastingBarFrame.Show = function()
end
PetCastingBarFrame:Hide()
end
end
It should do what you want. Haven't tested. But since it's not being created, shouldn't interfere with anything else.