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: added sidebar #1496

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open

Feat: added sidebar #1496

wants to merge 36 commits into from

Conversation

davidejensen
Copy link
Member

@davidejensen davidejensen commented Jul 23, 2024

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!

Copy link

github-actions bot commented Jul 24, 2024

badge

Windows and Mac build successfull in Unity Cloud! You can find a link to the downloadable artifact below.

Name Link
Commit 4ce2b03
Logs https://github.com/decentraland/unity-explorer/actions/runs/10096185233
Download Windows https://github.com/decentraland/unity-explorer/suites/26425483628/artifacts/1740124730
Download Mac https://github.com/decentraland/unity-explorer/suites/26425483628/artifacts/1740117122
Built on 2024-07-25T15:19:39Z

@fcolarich fcolarich marked this pull request as ready for review July 30, 2024 16:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants