• How to output tables into derma panels
    2 replies, posted
I was wondering how i could get data from a table onto a derma panel and how to make sure other panels don't over lap.
You can use Panel/Dock for it, in the loop Dock to top/bottom/left/right on a parent, like such: local frame = vgui.Create("DFrame") frame:SetSize(600, 400) frame:Center() frame:MakePopup() local ScrollPanel = vgui.Create("DScrollPanel", frame) ScrollPanel:Dock(FILL) for k,v in pairs(player.GetAll()) do local playerPanel = vgui.Create("DPanel", ScrollPanel) playerPanel:Dock(TOP) playerPanel:SetSize(40, 40) end
ok i got the thing to make it so it doesn't clip over each other but what about getting the data in to the panel and then getting another set of data and making another panel without it changing the first one
Sorry, you need to Log In to post a reply to this thread.