1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
| local DermaPanel = vgui.Create( "DFrame" ) DermaPanel:SetPos( 50, 50 ) DermaPanel:SetSize( 200, 160 ) DermaPanel:SetTitle( "Teste Derma Zeug" ) DermaPanel:SetVisible( true ) DermaPanel:SetDraggable( true ) DermaPanel:ShowCloseButton( true ) DermaPanel:MakePopup() local Panel = vgui.Create( "DPanel", DermaPanel ) Panel:SetPos( 25, 50 ) Panel:SetSize( 150, 100 ) Panel.Paint = function() surface.SetDrawColor( 50, 50, 50, 255 ) surface.DrawRect( 0, 0, Panel:GetWide(), Panel:GetTall() ) end local DermaLabel = vgui.Create( "DLabel", Panel ) DermaLabel:SetText( "Ich bin ein Panel!" ) DermaLabel:SetSize( 100, 10 ) DermaLabel:SetPos( 25, 50 ) |