Faded DLabel text

This seems to happen in Pointshop 1. I do not know why. Anyone know how I can fix this?


CATEGORY.Name = 'Donate'
CATEGORY.Icon = 'add'

function CATEGORY:ModifyTab(tab)

    local button = vgui.Create( "DButton", tab )
    button:SetSize( 130, 20 )
    button:SetPos( 300, 60 )
    button:SetText( "Click to Open Donate" )
    button.Paint = function( self, w, h )
        draw.RoundedBox(0, 0, 0, w, h, Color(41, 128, 185, 250) )
    end
    button.DoClick = function()
        gui.OpenURL( "http://bdgservers.com/donate" )
    end

    local DonateText = vgui.Create("DLabel", tab) 
    DonateText:SetPos(250,20)
    DonateText:SetColor(Color(13,233,57))
    DonateText:SetFont("Trebuchet24")
    DonateText:SetText("Donate to the Server!")
    DonateText:SizeToContents()

    local CoolPerks = vgui.Create("DLabel", tab) 
    CoolPerks:SetPos(3,100)
    CoolPerks:SetColor(Color(239,13,13))
    CoolPerks:SetFont("Trebuchet24")
    CoolPerks:SetText("By donating, you can get some cool perks!")
    CoolPerks:SizeToContents()
end


 local CoolPerks = vgui.Create("DLabel", tab) 
    CoolPerks:SetPos(3,100)
    CoolPerks:SetColor(Color(239,13,13,255))
    CoolPerks:SetFont("Trebuchet24")
    CoolPerks:SetText("By donating, you can get some cool perks!")
    CoolPerks:SizeToContents()

???

Nope Didnt change a thing in that code except move local over

[editline]9th April 2015[/editline]

It seems that the Trebuchet24 font breaks it

[editline]9th April 2015[/editline]

Anyone know how to fix it

Im not really sure what your problem is though, Are you saying its see-through?

Yes. Its only Trebuchet24. Im use CloseCaption_Bold for now

Hmm. Looks like all the other text parts were drawn BEHIND the white panel and by overriding the paint function of the one button, it was able to be updated later meaning it could be drawn on top (maybe)?
By the way, the code



 local CoolPerks = vgui.Create("DLabel", tab) 
    CoolPerks:SetPos(3,100)
    CoolPerks:SetColor(Color(239,13,13,255))
    CoolPerks:SetFont("Trebuchet24")
    CoolPerks:SetText("By donating, you can get some cool perks!")
    CoolPerks:SizeToContents()


changed the SetColor part to have 255 at the end, meaning the alpha was set at 100%, so it should technically be completely visible.

Thank you. I will try this then

Don’t add the alpha value at the end, Color defaults alpha to 255 IIRC

Why not just create your own set of fonts instead of using the default ones? You can even use trebuchet

I’m probably not helping, but I don’t think the font is the problem, whatever element the label is on looks like it’s causing the trouble…