From 0c06ddf994ae9f9efcc8a07ca2f3a5c5bc860a77 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 10 Sep 2016 22:36:22 +0200 Subject: [PATCH] Enable continue on save file existance --- tabakrolletjie/scenes/menu.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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, -- 2.34.1