PlayersCouncil / gemp-lotr

Automatically exported from code.google.com/p/gemp-lotr
7 stars 11 forks source link

Prevent players from being able to attempt to join a table for an ineligible opponent #76

Open ketura opened 4 months ago

ketura commented 4 months ago

Currently, all league tables show even for opponents the player has already played against. The table itself fails if the player attempts to join, but it would be nicer UX if the button was greyed out (or removed) for ineligible opponents (the way it works for invite-only tables). There's no additional information being revealed to the player by doing this, as they could ferret out this information by simply clicking.

The check will have to call a new or existing function on Leagues, as the number of repeat opponent matches is variable for Constructed leagues.