Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.15 KB | None | 0 0
  1. relayone = vgui.Create( "DButton", relaymiddle )
  2. relayone:SetSize( 320, 100 )
  3. relayone:SetPos( relaymiddle:GetWide() - 320, 15 )
  4. relayone:SetText( "" )
  5. relayone.Paint = function(he)
  6. draw.RoundedBox( 0, 0, 0, he:GetWide(), he:GetTall(), Color( 0, 0, 0, 0 ) )
  7. if relayone:IsHovered() == true then
  8. draw.SimpleText( "WEBSITE", "ButtonFont", 5, 30, Color( 30, 136, 229 ), TEXT_ALIGN_LEFT )
  9. draw.SimpleText( "OUR COMMUNITY WEBSITE", "ButtonInfo", 5, 60, Color( 30, 136, 229 ), TEXT_ALIGN_LEFT )
  10. else
  11. draw.SimpleText( "WEBSITE", "ButtonFont", 5, 30, Color( 0, 0, 0 ), TEXT_ALIGN_LEFT )
  12. draw.SimpleText( "OUR COMMUNITY WEBSITE", "ButtonInfo", 5, 60, Color( 0, 0, 0 ), TEXT_ALIGN_LEFT )
  13. end
  14. end
  15. relayone.DoClick = function()
  16.  
  17. local x, y = relayone:CursorPos()
  18.  
  19. relayone.Paint = function(self)
  20. draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 0, 0, 0, 0 ) )
  21.  
  22. smoothButton = Lerp( 1.5 * FrameTime(), smoothButton, 200 )
  23.  
  24. surface.SetDrawColor( 0, 0, 0, 255 )
  25. draw.NoTexture()
  26. draw.Circle( x, y, smoothButton, 100 )
  27. end
  28.  
  29. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement