Is there any way to render a derma panel twice without using render targets? I tried this:
[lua]
function PANEL:Paint()
self:OnPaint()
local draw_x , draw_y = 400 , 400
render.SetViewPort( draw_x , draw_y , self:GetWide() , self:GetTall() )
cam.Start2D();
self:OnPaint()
cam.End2D();
end
[/lua]
It shows up my panel twice but the pause menu dissapeared. ( Pressing ESC doesnt show the console etc. )
Tried with:
[lua]
local x,y = panel:GetPos()
panel:SetPos( 400 , 400 )
panel:Paint()
panel:SetPos( x,y )
[/lua]
But didn't worked.
After it has been drawn just set it to SetPaintManually disable the clipping then set the viewport and draw it again.
Sorry, you need to Log In to post a reply to this thread.