• Multi Line DLabel
    3 replies, posted
[code] local DonateArray = vgui.Create( "DPanel" ) DonateArray:SetPos(0,0) DonateArray:SetSize(20,20) local DonateArea = vgui.Create( "DLabel" ) DonateArea:SetParent( DonateArray ) DonateArea:SetText("To donate simply go to www.colzdragon.com and click the Donate button.") DonateArea:SetTextColor(Color(0, 0, 0, 255)) DonateArea:SizeToContents() [/code] Just want to know how to make multiple line DLabel's since my derma window is too small for that line. Or some way to have 2 DLabels. If you need more of the code just ask me. [code] DonateArea:SetText("To donate simply go to www.colzdragon.com and click the Donate button.") [/code]
First, change the panel to a larger size. It's set to 20,20 and I believe you want it to be 340,315. And with Dlabel, to make a new line, just type \n and that will make a new line. [code] DonateArea:SetText("To donate, simply go to www.colzdragon.com, \n and click the Donate button.") [/code] will give you a new line before "And click the Donate button."
Thank you so much, I will try that.
if that doesn't work(mess up) do DonateArea:SizeToContents()
Sorry, you need to Log In to post a reply to this thread.