Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: IP connection window inside main menu #502

Merged
merged 4 commits into from
Mar 4, 2022

Conversation

fernando-cortez
Copy link
Collaborator

Description (*)

Re-introducing IP connection to the MainMenu scene. This is triggered in the same way cheats are in-game (slash on Windows or four finger touch on mobile). Inspired by the LobbyPopup panel architecture, however for simplicity, IPUIMediator doesn't inject to DI.

Adjustments:

  • FinalizeScopeConstruction() is invoked inside ClientMainMenuState regardless of authentication result. This seems necessary for DI to work elsewhere in the game.
  • Added an IsAuthenticated check on queries for lobbies. This drastically limits warning messages in the console.

Related Pull Requests

Issue Number(s) (*)

Fixes issue(s): MTT-2213

Manual testing scenarios

  1. Build or create ParrelSync clone of project.
  2. On both apps, press slash or 4 finger touch to bring up IP connection window. Connect as you would beforehand with IP addresses.

Questions or comments

This PR doesn't remove the IP connection option that is presently there for lobby connections. Can easily add that to this PR.

Contribution checklist

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

@fernando-cortez fernando-cortez added the 1-Needs Review PR needs attention from the assignee and reviewers label Mar 3, 2022
@SamuelBellomo
Copy link
Contributor

I don't see any changes to the IP flows in lobby? Since lobby direct IP connection can't work at the moment outside of localhost, we might want to change that flow?

@fernando-cortez
Copy link
Collaborator Author

I don't see any changes to the IP flows in lobby? Since lobby direct IP connection can't work at the moment outside of localhost, we might want to change that flow?

Yup I remarked on that in the comments section. I'll get to that in this PR then!

@SamuelBellomo SamuelBellomo added 2-Reviewed with Comments PR requires owner's attention and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Mar 3, 2022
LPLafontaineB
LPLafontaineB previously approved these changes Mar 4, 2022
@LPLafontaineB LPLafontaineB added 2-One More Review One review in, one to go and removed 2-Reviewed with Comments PR requires owner's attention labels Mar 4, 2022
@SamuelBellomo SamuelBellomo added 2-Reviewed with Comments PR requires owner's attention and removed 2-One More Review One review in, one to go labels Mar 4, 2022
@LPLafontaineB LPLafontaineB self-requested a review March 4, 2022 16:32
@fernando-cortez fernando-cortez added 1-Needs Review PR needs attention from the assignee and reviewers and removed 2-Reviewed with Comments PR requires owner's attention labels Mar 4, 2022
@SamuelBellomo SamuelBellomo added 2-One More Review One review in, one to go and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Mar 4, 2022
@LPLafontaineB LPLafontaineB removed the 2-One More Review One review in, one to go label Mar 4, 2022
@fernando-cortez fernando-cortez merged commit 6c215be into develop Mar 4, 2022
@fernando-cortez fernando-cortez deleted the feature/dev-ip-connection branch March 4, 2022 18:32
fernando-cortez added a commit that referenced this pull request Mar 4, 2022
* ip connection window inside main menu

* removing IPUIMediator's connection message publishing

* removing IP from lobby flow (so relay is now default)
SamuelBellomo pushed a commit that referenced this pull request Mar 4, 2022
* ip connection window inside main menu

* removing IPUIMediator's connection message publishing

* removing IP from lobby flow (so relay is now default)
SamuelBellomo added a commit that referenced this pull request Mar 8, 2022
…ocal

* release/GDC2022:
  Cherrypick: bigger floor tiles, bossroom.unity scene merge conflict resolved with unity merge tool (#519)
  Cherrypick: lobby visual rework, mainmenu.unity scene merge conflict resolved with unity merge tool (#520)
  cherrypick: Boss and run VFX Optimizations (#514) (#521)
  feat: loading screen (GDC version) (#495)
  fix: client writing to NetworkVariable inside ServerCharacterMovement (#517)
  fix: imps spawning issues when late joining (#497)
  Adding handling of host disconnect (#486) (#509)
  fix: NREs when trying to quit (#516)
  hack fix: disabling client side rate limiting for GDC, real fix should come on develop (#500)
  fix: NetworkAnimator being called on clients (#512)
  fix: username changing before game (#499)
  feat: IP connection window inside main menu (#502) (#508)

# Conflicts:
#	Assets/BossRoom/Scenes/Startup.unity
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants