Thread Tools Display Modes
09-08-10, 05:12 PM   #1
Deadmau5
A Murloc Raider
 
Deadmau5's Avatar
Join Date: Jul 2010
Posts: 9
oUF Gdx help

Hello

I got this new layout last night and its awesome, the only problem i have is that the cast bar is placed over the Health, DPS, Mana text.

Been looking on the LUA but its way too detailed for me, i cant find the line to disable the cast bar on the Player and Target frames.

If someone can help me would be awesome


Not casting:


Casting
  Reply With Quote
09-08-10, 08:16 PM   #2
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
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.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote
09-09-10, 03:11 PM   #3
Deadmau5
A Murloc Raider
 
Deadmau5's Avatar
Join Date: Jul 2010
Posts: 9
Thanks for the code, but unfortunately didn't work

I tried replacing it with the original and also did a copy of the layout.lua from Gui repository (http://github.com/Guardix/oUF_Gdx/bl...ter/layout.lua)

And that didn't work either.
  Reply With Quote
09-09-10, 03:21 PM   #4
neverg
A Frostmaul Preserver
 
neverg's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2007
Posts: 268
I didn't say to replace it. I said for you to remove it or comment it so it doesn't run. It's the same code. I was just showing you what you need to remove.
__________________
My oUF Layout: oUF Lumen
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF Gdx help


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off