Skip to content

Commit d22b2e1

Browse files
authored
Merge pull request #339 from MrS-ibra/Highlight-friends-in-game-setup
Highlight friends in cyan in the lobby
2 parents 6238a3d + fb31e08 commit d22b2e1

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

GeneralsMD/Code/GameEngine/Source/GameClient/GUI/GUICallbacks/Menus/WOLGameSetupMenu.cpp

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff 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 = "";

0 commit comments

Comments
 (0)