Advertisement
Shark_vil

Welcome to the club, buddy... *SLAP*

Jul 11th, 2020
1,470
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.44 KB | None | 0 0
  1. concommand.Add("golosovaniye", function()
  2.         local InfoPanel = vgui.Create( "DFrame" )
  3.         InfoPanel:SetSize( 130, 160 )
  4.         InfoPanel:SetPos( ScrW()/2 - 400, ScrH()/2 - 150 )
  5.         InfoPanel:SetTitle( "ГОЛОСОВАНИЕ" )
  6.         InfoPanel:SetSizable( false )
  7.         InfoPanel:SetDraggable( true )
  8.         InfoPanel:ShowCloseButton( false )
  9.         InfoPanel:SetKeyboardInputEnabled( false )
  10.         InfoPanel:SetMouseInputEnabled( true )
  11.         InfoPanel:SetVisible( true )
  12.         InfoPanel.Paint = function()
  13.             draw.RoundedBox( 0, 0, 0, 130, 160, Color(33,29,46,255) )
  14.             surface.SetFont( "Default" )
  15.             surface.SetTextColor( 255, 255, 255, 255 )
  16.             surface.SetTextPos( 5, 25 )
  17.             surface.DrawText( "Вас приглашают" )
  18.             surface.SetTextPos( 5, 40 )
  19.             surface.DrawText( "Вступить в: " )
  20.             surface.SetTextColor( 46, 163, 23, 255 )
  21.             surface.SetTextPos( 5, 55 )
  22.             surface.DrawText( "GAY CLUB" )
  23.         end
  24.        
  25.         local InfoButtonYes = vgui.Create( "DButton" )
  26.         InfoButtonYes:SetParent( InfoPanel )
  27.         InfoButtonYes:SetText( "Вступить" )
  28.         InfoButtonYes:SetPos( 15, 80 )
  29.         InfoButtonYes:SetSize( 100, 30 )
  30.         InfoButtonYes.DoClick = function ()
  31.             InfoPanel:Remove()
  32.         end
  33.        
  34.         local InfoButtonNo = vgui.Create( "DButton" )
  35.         InfoButtonNo:SetParent( InfoPanel )
  36.         InfoButtonNo:SetText( "Отклонить" )
  37.         InfoButtonNo:SetPos( 15, 120 )
  38.         InfoButtonNo:SetSize( 100, 30 )
  39.         InfoButtonNo.DoClick = function ()
  40.             InfoPanel:Remove()
  41.         end
  42.     end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement