1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00

Added/fixed variable redeals category in the game selection tree.

This commit is contained in:
Joe R 2022-08-11 19:33:10 -04:00
parent 3464052a5c
commit 99ae5c39bb
4 changed files with 9 additions and 5 deletions

View file

@ -255,7 +255,7 @@ class SelectGameData(SelectDialogTreeData):
lambda gi: gi.si.redeals == -2),
SelectGameNode(None, _("Other number of redeals"),
lambda gi: gi.si.redeals not in
(-1, 0, 1, 2, 3)),
(-2, -1, 0, 1, 2, 3)),
)),
s_by_compatibility,
)),

View file

@ -271,9 +271,9 @@ class SelectGameDialogWithPreview(MfxDialog):
(_("2 redeals"), lambda gi: gi.si.redeals == 2),
(_("3 redeals"), lambda gi: gi.si.redeals == 3),
(_("Unlimited redeals"), lambda gi: gi.si.redeals == -1),
# (_("Variable redeals"), lambda gi: gi.si.redeals == -2),
(_("Variable redeals"), lambda gi: gi.si.redeals == -2),
(_("Other number of redeals"),
lambda gi: gi.si.redeals not in (-1, 0, 1, 2, 3)),)
lambda gi: gi.si.redeals not in (-2, -1, 0, 1, 2, 3)),)
self._addGamesFromData(data, store, root_iter,
_("by Number of Redeals"), all_games)

View file

@ -231,9 +231,11 @@ class SelectGameData(SelectDialogTreeData):
lambda gi: gi.si.redeals == 3),
SelectGameNode(None, _("Unlimited redeals"),
lambda gi: gi.si.redeals == -1),
SelectGameNode(None, _("Variable redeals"),
lambda gi: gi.si.redeals == -2),
SelectGameNode(
None, _("Other number of redeals"),
lambda gi: gi.si.redeals not in (-1, 0, 1, 2, 3)),
lambda gi: gi.si.redeals not in (-2, -1, 0, 1, 2, 3)),
)),
s_by_compatibility,
)),

View file

@ -230,9 +230,11 @@ class SelectGameData(SelectDialogTreeData):
lambda gi: gi.si.redeals == 3),
SelectGameNode(None, _("Unlimited redeals"),
lambda gi: gi.si.redeals == -1),
SelectGameNode(None, _("Variable redeals"),
lambda gi: gi.si.redeals == -2),
SelectGameNode(
None, _("Other number of redeals"),
lambda gi: gi.si.redeals not in (-1, 0, 1, 2, 3)),
lambda gi: gi.si.redeals not in (-2, -1, 0, 1, 2, 3)),
)),
s_by_compatibility,
)),