def __init__(self) -> None: # Gather dependencies we'll need (just our activity). self._activity_deps = ba.DependencySet(ba.Dependency(MainMenuActivity)) super().__init__([self._activity_deps]) self._locked = False self.set_activity(ba.new_activity(MainMenuActivity))
def on_activity_end(self, activity: ba.Activity, results: Any) -> None: if self._locked: _ba.unlock_all_input() # Any ending activity leads us into the main menu one. self.set_activity(ba.new_activity(MainMenuActivity))