示例#1
0
        public static Color GetStatusColor( Friend steamid )
        {
            Color inGame = Color.FromArgb( 177, 251, 80 );
            Color online = Color.FromArgb( 111, 189, 255 );
            Color offline = Color.FromArgb( 137, 137, 137 );

            if ( steamid.IsInGame() )
                return inGame;

            if ( !steamid.IsOnline() )
                return offline;

            return online;
        }
示例#2
0
        Bitmap GetHolder(Friend steamid)
        {
            if (steamid.IsInGame())
            {
                return(Resources.IconIngame);
            }

            if (steamid.IsOnline())
            {
                return(Resources.IconOnline);
            }

            return(Resources.IconOffline);
        }
示例#3
0
文件: Util.cs 项目: bmk10/hl2sb-src-1
        public static Color GetStatusColor(Friend steamid)
        {
            Color inGame  = Color.FromArgb(177, 251, 80);
            Color online  = Color.FromArgb(111, 189, 255);
            Color offline = Color.FromArgb(137, 137, 137);

            if (steamid.IsInGame())
            {
                return(inGame);
            }

            if (!steamid.IsOnline())
            {
                return(offline);
            }

            return(online);
        }
示例#4
0
        Bitmap GetHolder( Friend steamid )
        {
            if ( steamid.IsInGame() )
                return Resources.IconIngame;

            if ( steamid.IsOnline() )
                return Resources.IconOnline;

            return Resources.IconOffline;
        }