Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --------------------
- // Buttons
- --------------------
- --{ Close Button }--
- local MapCloseButton = vgui.Create( "DButton", MapFrame )
- MapCloseButton:SetText( "" )
- MapCloseButton:SetSize( 100, 30 )
- MapCloseButton:SetPos( 1, 1 )
- MapCloseButton.Paint = function( self )
- --{ Hover }--
- if self:IsHovered() then
- surface.SetDrawColor( 255, 255, 255, 255 )
- surface.DrawRect( 0, 0, 100, 30 )
- else
- surface.SetDrawColor( 255, 0, 0, 255 )
- surface.DrawRect( 0, 0, 100, 30 )
- end
- end
- MapCloseButton.DoClick = function()
- MapFrame:Close()
- surface.PlaySound( "exit.mp3" )
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement