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

Removed deal animation from preview and combined game select options.

This commit is contained in:
Joe R 2021-06-08 21:54:15 -04:00
parent 5e3f55f04e
commit c416d42a96
5 changed files with 7 additions and 8 deletions

View file

@ -1435,8 +1435,9 @@ class Game(object):
elif self.app.opt.animations == 10:
# this is used internally in game preview to speed up
# the initial dealing
if self.moves.state == self.S_INIT and frames > 4:
frames //= 2
# if self.moves.state == self.S_INIT and frames > 4:
# frames //= 2
return
if shadow < 0:
shadow = self.app.opt.shadow
shadows = ()

View file

@ -422,7 +422,7 @@ class SelectGameDialogWithPreview(MfxDialog):
# self.top.wm_title(
# "Select Game - " + self.app.getGameTitleName(gameid))
title = self.app.getGameTitleName(gameid)
self.set_title(_("Playable Preview - %(game)s") % {'game': title})
self.set_title(_("Select Game - %(game)s") % {'game': title})
#
self.preview_game = gi.gameclass(gi)
self.preview_game.createPreview(self.preview_app)

View file

@ -513,7 +513,7 @@ class SelectGameDialogWithPreview(SelectGameDialog):
# self.top.wm_title("Select Game - " +
# self.app.getGameTitleName(gameid))
title = self.app.getGameTitleName(gameid)
self.top.wm_title(_("Playable Preview - %(game)s") % {'game': title})
self.top.wm_title(_("Select Game - %(game)s") % {'game': title})
#
self.preview_game = gi.gameclass(gi)
self.preview_game.createPreview(self.preview_app)

View file

@ -513,7 +513,7 @@ class SelectGameDialogWithPreview(SelectGameDialog):
# self.top.wm_title("Select Game - " +
# self.app.getGameTitleName(gameid))
title = self.app.getGameTitleName(gameid)
self.top.wm_title(_("Playable Preview - %(game)s") % {'game': title})
self.top.wm_title(_("Select Game - %(game)s") % {'game': title})
#
self.preview_game = gi.gameclass(gi)
self.preview_game.createPreview(self.preview_app)

View file

@ -804,9 +804,7 @@ class PysolMenubarTkCommon:
m = "Ctrl-"
if sys.platform == "darwin":
m = "Cmd-"
menu.add_command(label=n_("All &games..."), accelerator=m+"W",
command=self.mSelectGameDialog)
menu.add_command(label=n_("Playable pre&view..."), accelerator=m+"V",
menu.add_command(label=n_("All &games..."), accelerator=m+"V",
command=self.mSelectGameDialogWithPreview)
if not SELECT_GAME_MENU:
return