Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- concommand.Add("golosovaniye", function()
- local InfoPanel = vgui.Create( "DFrame" )
- InfoPanel:SetSize( 130, 160 )
- InfoPanel:SetPos( ScrW()/2 - 400, ScrH()/2 - 150 )
- InfoPanel:SetTitle( "ГОЛОСОВАНИЕ" )
- InfoPanel:SetSizable( false )
- InfoPanel:SetDraggable( true )
- InfoPanel:ShowCloseButton( false )
- InfoPanel:SetKeyboardInputEnabled( false )
- InfoPanel:SetMouseInputEnabled( true )
- InfoPanel:SetVisible( true )
- InfoPanel.Paint = function()
- draw.RoundedBox( 0, 0, 0, 130, 160, Color(33,29,46,255) )
- surface.SetFont( "Default" )
- surface.SetTextColor( 255, 255, 255, 255 )
- surface.SetTextPos( 5, 25 )
- surface.DrawText( "Вас приглашают" )
- surface.SetTextPos( 5, 40 )
- surface.DrawText( "Вступить в: " )
- surface.SetTextColor( 46, 163, 23, 255 )
- surface.SetTextPos( 5, 55 )
- surface.DrawText( "GAY CLUB" )
- end
- local InfoButtonYes = vgui.Create( "DButton" )
- InfoButtonYes:SetParent( InfoPanel )
- InfoButtonYes:SetText( "Вступить" )
- InfoButtonYes:SetPos( 15, 80 )
- InfoButtonYes:SetSize( 100, 30 )
- InfoButtonYes.DoClick = function ()
- InfoPanel:Remove()
- end
- local InfoButtonNo = vgui.Create( "DButton" )
- InfoButtonNo:SetParent( InfoPanel )
- InfoButtonNo:SetText( "Отклонить" )
- InfoButtonNo:SetPos( 15, 120 )
- InfoButtonNo:SetSize( 100, 30 )
- InfoButtonNo.DoClick = function ()
- InfoPanel:Remove()
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement