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 ); Color blocked = Color.FromArgb( 251, 80, 80 ); Color invited = Color.FromArgb( 250, 218, 94 ); Color requesting = Color.FromArgb( 135, 169, 107 ); if ( steamid.IsAcceptingFriendship() ) return invited; if ( steamid.IsRequestingFriendship() ) return requesting; if ( steamid.IsBlocked() ) return blocked; if ( steamid.IsInGame() ) return inGame; if ( !steamid.IsOnline() ) return offline; return online; }
private static int rankFriend(Friend x) { if (x.IsRequestingFriendship()) { return(0); } else if (x.IsAcceptingFriendship()) { return(99); } else if (x.IsInGame()) { return(1); } else if (x.IsOnline()) { return(2); } else if (x.GetState() == EPersonaState.Busy) { return(3); } else if (x.GetState() == EPersonaState.Away) { return(4); } else if (x.GetState() == EPersonaState.Snooze) { return(5); } return(10); }
Bitmap GetHolder(Friend steamid) { if (steamid.IsInGame()) { return(Resources.IconIngame); } if (steamid.IsOnline()) { return(Resources.IconOnline); } return(Resources.IconOffline); }
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); Color blocked = Color.FromArgb(251, 80, 80); Color invited = Color.FromArgb(250, 218, 94); Color requesting = Color.FromArgb(135, 169, 107); if (steamid.IsAcceptingFriendship()) { return(invited); } if (steamid.IsRequestingFriendship()) { return(requesting); } if (steamid.IsBlocked()) { return(blocked); } if (steamid.IsInGame()) { return(inGame); } if (!steamid.IsOnline()) { return(offline); } return(online); }
Bitmap GetHolder( Friend steamid ) { if ( steamid.IsInGame() ) return Resources.IconIngame; if ( steamid.IsOnline() ) return Resources.IconOnline; return Resources.IconOffline; }
private static int rankFriend(Friend x) { if (x.IsRequestingFriendship()) return 0; else if (x.IsAcceptingFriendship()) return 99; else if (x.IsInGame()) return 1; else if (x.IsOnline()) return 2; else if (x.GetState() == EPersonaState.Busy) return 3; else if (x.GetState() == EPersonaState.Away) return 4; else if (x.GetState() == EPersonaState.Snooze) return 5; return 10; }