Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- concommand.Add( "initialisation", function( ply, cmd, args )
- for i=1,100 do
- surface.CreateFont( "ALRPFont"..i, {
- font = "Walkway SemiBold",
- size = ScreenScale( i ),
- weight = 500,
- antialias = true,
- } )
- end
- local blur = Material 'pp/blurscreen'
- function drawPanelBlur( panel, layers, density, alpha )
- local ply = LocalPlayer()
- local density = 12
- local x, y = panel:LocalToScreen( 0, 0 )
- surface.SetDrawColor( 255, 255, 255, alpha )
- surface.SetMaterial( blur )
- for i = 1, 3 do
- blur:SetFloat( "$blur", ( i / layers ) * density )
- blur:Recompute()
- render.UpdateScreenEffectTexture()
- surface.DrawTexturedRect( -x, -y, ScrW(), ScrH() )
- end
- end
- local InitialisationFrame = vgui.Create( "DFrame" )
- InitialisationFrame:SetSize( ScrW(), ScrH() )
- InitialisationFrame:Center()
- InitialisationFrame:SetTitle( "" )
- InitialisationFrame:MakePopup()
- InitialisationFrame:SetDraggable( false )
- InitialisationFrame:ShowCloseButton( true )
- InitialisationFrame.Paint = function( self, w, h )
- drawPanelBlur(self, 5, 12, 255)
- draw.RoundedBox( 0, 0, 0, w, h, Color( 0, 0, 0, 100 ) )
- end
- local BouttonConnexion = vgui.Create( "DButton", InitialisationFrame )
- BouttonConnexion:SetText( "" )
- BouttonConnexion:SetTextColor( Color( 255, 255, 255 ) )
- BouttonConnexion:SetPos( ScrW() * 0.2 , ScrH() * 0.2 )
- BouttonConnexion:SetSize( ScrW() * 0.122, ScrH() * 0.100 )
- BouttonConnexion.Paint = function( self, w, h )
- draw.RoundedBox( 0, 0, 0, w, h, Color( 34, 153, 84, 230 ) )
- draw.DrawText( "REJOINDRE LE SERVEUR", "ALRPFont10", ScrW() * 0.06, ScrH() * 0.035, Color(255, 255, 255), 1, 1 )
- end
- BouttonConnexion.DoClick = function()
- InitialisationFrame:Remove()
- LocalPlayer():ConCommand('job')
- end
- end )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement