Thread Tools Display Modes
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
04-30-10, 02:38 AM   #2
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
nvm, i fixed it with dogtags
DogTag:AddTag("Base", "Outline", {
code = function(number)
DogTag.outline = "OUTLINE, MONOCHROME"
end,
ret = "nil",
doc = L["Set the FontString to be outlined"],
example = '[Outline "Hello"] => "Bold"',
category = L["Miscellaneous"]
})
  Reply With Quote
05-28-10, 04:09 PM   #3
pretendeka
A Kobold Labourer
Join Date: May 2010
Posts: 1
I'm am bumping this simply in the hopes that you'll tell me where exactly to put this particular bit of code. Somewhere in the LibDogTag-3.0.lua file?
  Reply With Quote
05-28-10, 05:34 PM   #4
mankeluvsit
An Onyxian Warder
 
mankeluvsit's Avatar
Join Date: Sep 2008
Posts: 354
Originally Posted by pretendeka View Post
I'm am bumping this simply in the hopes that you'll tell me where exactly to put this particular bit of code. Somewhere in the LibDogTag-3.0.lua file?
its in \PitBull4_DogTagTexts\libs\LibDogTag-3.0\
the file is misc.lua at line number 70-78 just replace it with this
Code:
DogTag:AddTag("Base", "Outline", {
	code = function(number)
		DogTag.outline = OUTLINE,MONOCHROME"
	end,
	ret = "nil",
	doc = L["Set the FontString to be outlined"],
	example = '[Outline "Hello"] => "Bold"',
	category = L["Miscellaneous"]
})
i no longer use pitbull had to download it :P

Last edited by mankeluvsit : 05-28-10 at 05:45 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » outline in pitbull4

Thread Tools
Display Modes

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