Derma Question

Well, I’m making a derma menu for my server, in the rules tab how would I go about setting the text? I want to make it so it is in this type of format

  1. Example:
  2. Example:
  3. Example:
  4. Example:
  5. Example:
  6. Example:
  7. Example:
  8. Example:
  9. Example:
  10. Example:
    etc.

Rules lua thing

[lua]local Rules = vgui.Create(“DPanelList”)
Rules:SetParent(DermaSheet)
Rules:SetPos(25, 50)
Rules:SetSize(500, 700)
Rules:EnableVerticalScrollbar();[/lua]

Thanks,
Th3Sinz

Use a DLabel.

Like

[lua]
local Rules = vgui.Create ( “DLabel” )
[/lua]
Like that?

Yes, then you can do Rules:SetText(“text here”) to set what it says.

Ok, I got that figured out, now how would I paint it? I think it was something like, [lua] local Rules.Paint = function()[/lua] or something.

[editline]09:43PM[/editline]

Also the background of the Rules tab is grey, can I change it to black?

function Rules:Paint()
//draw here
end