• Adding Multiple Lines of Text to Derma?
    6 replies, posted
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? \n
Or /r/n
[QUOTE=Exho;47380869]Or /r/n[/QUOTE] why though also incorrect slashes
[QUOTE=SkitZz;47380599]New line in a DLabel? \n[/QUOTE] Welp, I'm stupid. Thanks though.
[code] 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!\nSecond line!" ) [/code]
Sorry, you need to Log In to post a reply to this thread.