Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/lobby/lobby.js
Show First 20 Lines • Show All 778 Lines • ▼ Show 20 Lines | function toggleBuddy() | ||||
let index = g_Buddies.indexOf(name); | let index = g_Buddies.indexOf(name); | ||||
if (index != -1) | if (index != -1) | ||||
g_Buddies.splice(index, 1); | g_Buddies.splice(index, 1); | ||||
else | else | ||||
g_Buddies.push(name); | g_Buddies.push(name); | ||||
updateToggleBuddy(); | updateToggleBuddy(); | ||||
saveSettingAndWriteToUserConfig("lobby.buddies", g_Buddies.filter(nick => nick).join(g_BuddyListDelimiter) || g_BuddyListDelimiter); | Engine.ConfigDB_CreateAndWriteValueToFile("user", "lobby.buddies", g_Buddies.filter(nick => nick).join(g_BuddyListDelimiter) || g_BuddyListDelimiter); | ||||
updatePlayerList(); | updatePlayerList(); | ||||
updateGameList(); | updateGameList(); | ||||
} | } | ||||
/** | /** | ||||
* Select the game where the selected player is currently playing, observing or offline. | * Select the game where the selected player is currently playing, observing or offline. | ||||
* Selects in that order to account for players that occur in multiple games. | * Selects in that order to account for players that occur in multiple games. | ||||
▲ Show 20 Lines • Show All 797 Lines • Show Last 20 Lines |
Wildfire Games · Phabricator