File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1337,6 +1337,20 @@ void WOLDisplaySlotList( void )
13371337 NGMPGameSlot *slot = game->getGameSpySlot (i);
13381338 if (slot && slot->isHuman ())
13391339 {
1340+ // Determine friends and highlight in cyan
1341+ Color nameColor = GameSpyColor[GSCOLOR_PLAYER_NORMAL ];
1342+ NGMP_OnlineServices_SocialInterface* pSocialInterface = NGMP_OnlineServicesManager::GetInterface<NGMP_OnlineServices_SocialInterface>();
1343+
1344+ if (pSocialInterface != nullptr && pSocialInterface->IsUserFriend (slot->m_userID ))
1345+ {
1346+ nameColor = GameMakeColor (7 , 183 , 247 , 255 );
1347+ }
1348+
1349+ if (comboBoxPlayer[i])
1350+ {
1351+ GadgetTextEntrySetTextColor (GadgetComboBoxGetEditBox (comboBoxPlayer[i]), nameColor);
1352+ }
1353+
13401354 bool bIsConnected = false ;
13411355 int latency = -1 ;
13421356 std::string strConnectionType = " " ;
You can’t perform that action at this time.
0 commit comments