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: UITransform and UIText SDK components #204

Merged
merged 64 commits into from
Jan 12, 2024

Conversation

sandrade-dcl
Copy link
Contributor

@sandrade-dcl sandrade-dcl commented Dec 13, 2023

What this PR includes?

  • Creation of the global UIDocument that we will use to render all the UI components.
  • Implement UITransform SDK component (including parenting and sorting).
  • Implement UIText SDK component.
  • Detection of the current scene (used for showing/hidding the UI when the player enters/exit a scene).

Implemented systems

UITransform

  • UITransformInstantiationSystem
  • UITransformParentingSystem
  • UITransformSortingSystem
  • UITransformUpdateSystem
  • UITransformReleaseSystem

UIText

  • UITextInstantiationSystem
  • UITextReleaseSystem

@sandrade-dcl sandrade-dcl self-assigned this Dec 13, 2023
@sandrade-dcl sandrade-dcl changed the title feat: [SDK7 Compatibility] Initial architecture for UI components feat: [SDK7 Compatibility] UI components architecture + UIText Dec 13, 2023
@sandrade-dcl sandrade-dcl changed the title feat: [SDK7 Compatibility] UI components architecture + UIText feat: [SDK7 Compatibility] UI components architecture + UItransform + UIText Jan 2, 2024
@sandrade-dcl sandrade-dcl changed the title feat: [SDK7 Compatibility] UI components architecture + UItransform + UIText feat: [SDK7 Compatibility] UItransform + UIText Jan 2, 2024
@sandrade-dcl sandrade-dcl changed the title feat: [SDK7 Compatibility] UItransform + UIText feat: [SDK7 Compatibility] UITransform + UIText Jan 2, 2024
Copy link
Collaborator

@mikhail-dcl mikhail-dcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it's a draft. I just added few suggestions that should be considered during the further development

@sandrade-dcl sandrade-dcl marked this pull request as ready for review January 4, 2024 09:41
@github-actions github-actions bot requested a review from popuz January 10, 2024 17:26
@sandrade-dcl sandrade-dcl changed the title feat: [SDK7 Compatibility] UITransform + UIText feat: UITransform and UIText sdk components Jan 10, 2024
@sandrade-dcl sandrade-dcl changed the title feat: UITransform and UIText sdk components feat: UITransform and UIText SDK components Jan 10, 2024
Copy link
Collaborator

@mikhail-dcl mikhail-dcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overall structure looks very solid 💚 GJ

sandrade-dcl and others added 6 commits January 11, 2024 19:21
* Upgrade TestFramework to 1.4.2
  * Async Setup/Teardown issue fixed
  * More stable
… into feat/sdk7-compatibility-ui-text

# Conflicts:
#	Explorer/Assets/Scripts/Global/Dynamic/DynamicSceneLoader.cs
@mikhail-dcl mikhail-dcl enabled auto-merge (squash) January 12, 2024 09:03
@mikhail-dcl mikhail-dcl merged commit 19f0d41 into main Jan 12, 2024
3 checks passed
@mikhail-dcl mikhail-dcl deleted the feat/sdk7-compatibility-ui-text branch January 12, 2024 10:08
Kinerius pushed a commit that referenced this pull request Feb 20, 2024
* Create global UIDocument for scenes UI + start implementing UIText systems
* Fix IntegrationTestsSuite
* Move SceneUI folder to DCL/SDKComponents
* Handle UIText removal
* Update SceneUIPlugin.cs
* Update UITextHandlerSystem.cs
* Setup canvas with the default configuration
* Move ProtoConvertUtils and UiElementUtils under SceneUI folder
* Implement UITransform
* Create a style sheet for the main canvas
* Update UITransformHandlerSystem.cs
* Fix tests
* Move the release logic to separated systems
* Make UITransformInstantiationSystem executes first of all the rest of systems
* Apply parenting to UIText
* Set a name for each component
* UITransform: parenting and sorting
* Add an option to clear PB components on Get
* Set default values in UiElementUtils.SetupVisualElement function
* Implement detection of the current scene
* Hide scene UI when we're out of the scene
* UIText test coverage
* Reset processed parcel on realm invalidation
* UITransformInstantiation test coverage
* UITransformUpdate test coverage
* Apply feedback: Add maxSize to AddComponentPool method
* Fix code conventions tests
* Fix async tests
* Upgrade TestFramework to 1.4.2
  * Async Setup/Teardown issue fixed
  * More stable

---------

Co-authored-by: Mikhail Agapov <[email protected]>
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.

2 participants