Merge pull request #641 from TheNotEasy/master

Add option not to show ControlsGuide
This commit is contained in:
Eric Froemling 2024-01-05 15:34:36 -08:00 committed by GitHub
commit 3ae51aa323
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,7 +67,10 @@ class TeamGameActivity(GameActivity[PlayerT, TeamT]):
# On the first game, show the controls UI momentarily.
# (unless we're being run in co-op mode, in which case we leave
# it up to them)
if not isinstance(self.session, CoopSession):
if (
not isinstance(self.session, CoopSession)
and getattr(self, 'show_controls_guide', True)
):
attrname = '_have_shown_ctrl_help_overlay'
if not getattr(self.session, attrname, False):
delay = 4.0