function PANEL:Paint() local bgColor = Color( 225, 225, 225, 75 ) if ( self.Selected ) then bgColor = Color( 155, 155, 155, 75 ) elseif ( self.Armed ) then bgColor = Color( 185, 185, 185, 75 ) end draw.RoundedBox( 4, 0, 0, self:GetWide(), self:GetTall(), bgColor ) draw.SimpleText( self.Text, "DefaultSmall", self:GetWide() / 2, self:GetTall() / 2, Color(0,0,0,150), TEXT_ALIGN_CENTER, TEXT_ALIGN_CENTER ) return true end vgui.Register( "SuiSpawnMenuCardButton", PANEL, "Button" ) /* Counts */ PANEL = {} PANEL.Text = "Counts" /*--------------------------------------------------------- Name: DoCommand ---------------------------------------------------------*/ function PANEL:DoCommand( ply ) self:GetParent().SuiScorePlayerRow.CountCard:SetVisible( true ) self:GetParent().SuiScorePlayerRow.RateCard:SetVisible( false ) end vgui.Register( "SuiCountCardButton", PANEL, "SuiSpawnMenuCardButton" )