Differential D4385 Diff 19410 binaries/data/mods/public/gui/lobby/LobbyPage/GameListFilters/Buddies.js
Changeset View
Changeset View
Standalone View
Standalone View
binaries/data/mods/public/gui/lobby/LobbyPage/GameListFilters/Buddies.js
GameListFilters.Buddies = class | ||||||||||
{ | ||||||||||
constructor(onFilterChange) | ||||||||||
{ | ||||||||||
this.checked = false; | ||||||||||
this.onFilterChange = onFilterChange; | ||||||||||
this.filterBuddies = Engine.GetGUIObjectByName("filterBuddies"); | ||||||||||
this.filterBuddies.checked = false; | ||||||||||
this.filterBuddies.onPress = this.onPress.bind(this); | ||||||||||
} | ||||||||||
onPress() | ||||||||||
{ | ||||||||||
this.checked = this.filterBuddies.checked; | ||||||||||
this.onFilterChange(); | ||||||||||
} | ||||||||||
filter(game) | ||||||||||
{ | ||||||||||
return !this.checked || game.stanza.state && game.hasBuddies; | ||||||||||
} | ||||||||||
Silier: nuke | ||||||||||
}; | ||||||||||
Done Inline Actions
Silier: |
Wildfire Games · Phabricator
nuke