WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   AddOn Help/Support (https://www.wowinterface.com/forums/forumdisplay.php?f=3)
-   -   outline in pitbull4 (https://www.wowinterface.com/forums/showthread.php?t=32215)

mankeluvsit 04-30-10 02:33 AM

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


mankeluvsit 04-30-10 02:38 AM

nvm, i fixed it with dogtags
Quote:

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"]
})

pretendeka 05-28-10 04:09 PM

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?

mankeluvsit 05-28-10 05:34 PM

Quote:

Originally Posted by pretendeka (Post 189977)
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


All times are GMT -6. The time now is 04:26 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI