diff --git a/ovos_workshop/locale/en/game_pause.dialog b/ovos_workshop/locale/en/game_pause.dialog new file mode 100644 index 0000000..ca89acf --- /dev/null +++ b/ovos_workshop/locale/en/game_pause.dialog @@ -0,0 +1 @@ +game paused \ No newline at end of file diff --git a/ovos_workshop/locale/en/game_unpause.dialog b/ovos_workshop/locale/en/game_unpause.dialog new file mode 100644 index 0000000..18aa2aa --- /dev/null +++ b/ovos_workshop/locale/en/game_unpause.dialog @@ -0,0 +1,2 @@ +unpausing game +resuming game \ No newline at end of file diff --git a/ovos_workshop/skills/game_skill.py b/ovos_workshop/skills/game_skill.py index f27f6fb..8c64ceb 100644 --- a/ovos_workshop/skills/game_skill.py +++ b/ovos_workshop/skills/game_skill.py @@ -149,15 +149,19 @@ def on_load_game(self): def on_pause_game(self): """called by ocp_pipeline on 'pause' if game is being played""" - # TODO - default dialog/sound self._paused.set() self.acknowledge() + # individual skills can change default value if desired + if self.settings.get("pause_dialog", False): + self.speak_dialog("game_pause") def on_resume_game(self): """called by ocp_pipeline on 'resume/unpause' if game is being played and paused""" - # TODO - default dialog/sound self._paused.clear() self.acknowledge() + # individual skills can change default value if desired + if self.settings.get("pause_dialog", False): + self.speak_dialog("game_unpause") @abc.abstractmethod def on_play_game(self):