From: Neil Date: Sat, 10 Sep 2016 20:36:22 +0000 (+0200) Subject: Enable continue on save file existance X-Git-Tag: tabakrolletjie-v1.0.0~41^2 X-Git-Url: https://git.ctpug.org.za/?p=tabakrolletjie.git;a=commitdiff_plain;h=0c06ddf994ae9f9efcc8a07ca2f3a5c5bc860a77 Enable continue on save file existance --- diff --git a/tabakrolletjie/scenes/menu.py b/tabakrolletjie/scenes/menu.py index 440d994..6733611 100644 --- a/tabakrolletjie/scenes/menu.py +++ b/tabakrolletjie/scenes/menu.py @@ -7,6 +7,7 @@ from ..events import QuitEvent, SceneChangeEvent from ..loader import loader from ..constants import FONTS from ..widgets import TextButton, SpacerButton +from ..utils import save_file_exists class MenuScene(BaseScene): @@ -19,7 +20,8 @@ class MenuScene(BaseScene): (255, 255, 255)) self._cont_but = TextButton("Continue / Retry", (255, 255, 255), name='continue') - self._cont_but.disable() + if not save_file_exists(): + self._cont_but.disable() self._menu = [ TextButton("New Game", (255, 255, 255), name='new game'), self._cont_but,