3D2D Derma ?

How to make one ? Any tips ?

I’m gettin an error in console “too Too many popups! Rendering will be bad!”

[lua]
function OnPaint()
local pos = LocalPlayer():GetPos();
local ang = LocalPlayer():GetAngles();

cam.Start3D(pos + ang:Forward() * 2 + ang:Up() * 4, LocalPlayer():EyeAngles());
MenuPanel = vgui.Create("DFrame")
MenuPanel:SetPos(50,50)
MenuPanel:SetSize(400,400)
MenuPanel:SetTitle("Menu")
MenuPanel:SetVisible(true)
MenuPanel:SetDraggable(true)
MenuPanel:ShowCloseButton(true)
MenuPanel:SetBackgroundBlur(true )
MenuPanel.Paint = function()

end
MenuPanel:MakePopup()
cam.End3D();
end
[/lua]

I guess you should use EyeTrace to detect where the player aims, and the Panel.Paint function to draw the derma frame.

Would be easier to just make a lua module or something for it, you will have to detect if the player is on another panel and draw the panels manually.

Wiki is currently down (the cached wiki my maurits gives a cloudflare error), but look under Panel hooks for a full list of hooks you will need to make support for.