-
Notifications
You must be signed in to change notification settings - Fork 11
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: added sidebar #1496
Open
davidejensen
wants to merge
36
commits into
main
Choose a base branch
from
feat/sidebar_implementation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Feat: added sidebar #1496
+12,373
−1,489
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Windows and Mac build successfull in Unity Cloud! You can find a link to the downloadable artifact below.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What does this PR change?
Does this change the fate of the Universe? Probably not, but for sure it changes how we layout the main UI in DCL 💪.
Before we would have 4 separate UI elements with the Minimap, Chat, Persistent Explore Panel Opener and Persistent Emote Wheel Opener, each instantiated independently. This PR introduces a new UI element which houses the other ones, properly layouted, so the new UI element added (the sidebar) can interact properly with the rest.
This means that during initialization, we instantiate the mainUIView which contain references to the other UI elements and then in each Plugin, we take those references to initialize their controllers.
The new sidebar has a special functionality that expands it when the mouse is near the left border of the screen, so code for that was added along with a new bus to disable hiding in certain cases.
The sidebar includes functionality to open the explore panel in specific tabs, as well as to display a profile mini-window and the new notifications view as well. These are shown on top of existing UI.
How to test this beauty?
Just enter the game. You should see the sidebar by moving the mouse to the left side and it will softly move the other elements to make space for itself. When moving the mouse away from the sidebar, it will close back again into the nothingness. To keep it from hiding, on the top of the sidebar there is a (...) button which has a toggle to make the sidebar permanent for the session.
Please make sure all buttons work as expected, the visual state for everything should follow this figma doc -> https://www.figma.com/design/1WOzC6Qs27tkme1dBIFrSd/%F0%9F%97%BA%EF%B8%8F-Mini-Games-Ex-Quests-%7C-Explorer-2.0-%7C-07%2F24?node-id=6-3992&t=ShmhkpIuDd4p8Lg0-0
Have fun!