Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- relayone = vgui.Create( "DButton", relaymiddle )
- relayone:SetSize( 320, 100 )
- relayone:SetPos( relaymiddle:GetWide() - 320, 15 )
- relayone:SetText( "" )
- relayone.Paint = function(he)
- draw.RoundedBox( 0, 0, 0, he:GetWide(), he:GetTall(), Color( 0, 0, 0, 0 ) )
- if relayone:IsHovered() == true then
- draw.SimpleText( "WEBSITE", "ButtonFont", 5, 30, Color( 30, 136, 229 ), TEXT_ALIGN_LEFT )
- draw.SimpleText( "OUR COMMUNITY WEBSITE", "ButtonInfo", 5, 60, Color( 30, 136, 229 ), TEXT_ALIGN_LEFT )
- else
- draw.SimpleText( "WEBSITE", "ButtonFont", 5, 30, Color( 0, 0, 0 ), TEXT_ALIGN_LEFT )
- draw.SimpleText( "OUR COMMUNITY WEBSITE", "ButtonInfo", 5, 60, Color( 0, 0, 0 ), TEXT_ALIGN_LEFT )
- end
- end
- relayone.DoClick = function()
- local x, y = relayone:CursorPos()
- relayone.Paint = function(self)
- draw.RoundedBox( 0, 0, 0, self:GetWide(), self:GetTall(), Color( 0, 0, 0, 0 ) )
- smoothButton = Lerp( 1.5 * FrameTime(), smoothButton, 200 )
- surface.SetDrawColor( 0, 0, 0, 255 )
- draw.NoTexture()
- draw.Circle( x, y, smoothButton, 100 )
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement