Adding Multiple Lines of Text to Derma?

I’m making a derma panel and I need to add multiple lines of text (it will be a panel that shows Statistics of certain entities). I need to know what proper function to use to do this. I know I can’t use multiple DLabels and I would use the Text Box however it would leave just a big white space in the panel. Could I use the paint function on the box or is there a better function?

New line in a DLabel?

Or /r/n

why though

also incorrect slashes

Welp, I’m stupid. Thanks though.



local Panel = vgui.Create( "DPanel" )
Panel:SetPos( 10, 10 )
Panel:SetSize( 200, 200 )

local DLabel = vgui.Create( "DLabel", Panel )
DLabel:SetPos( 40, 40 )
DLabel:SetText( "First line!
Second line!" )


You may need to call SizeToContents afterwards.