View Single Post
04-30-10, 02:33 AM   #1
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
outline in pitbull4

i was going through the pitbull4 code and i was trying to take the shadow off, well i did it, but now i want to add a monochrome outline.
what is the name for it? im guessing i would change where "setshadow" is.
any help would be appreciated. (in pitbull there is not option to change font strings.)
Code:
		if enabled then
			if not font_string then
				font_string = PitBull4.Controls.MakeFontString(frame.overlay, "OVERLAY")
				texts[name] = font_string
				frame[self.id .. ";" .. name] = font_string
				font_string:SetShadowColor(0, 0, 0, 0)
				font_string:SetShadowOffset(0, 0)
				font_string:SetNonSpaceWrap(false)
				changed = true
			end
			
			local font, size = frame:GetFont(text_db.font, text_db.size)
			local _, _, modifier = font_string:GetFont()
			font_string:SetFont(font, size, modifier)
			font_string.db = text_db
			if not self:AddFontString(frame, font_string, name, text_db) then
				self:RemoveFontString(font_string)
				font_string.db = nil
				texts[name] = font_string:Delete()
				frame[self.id .. ";" .. name] = nil
			end
  Reply With Quote