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

chore: re introduce uitext wrapping #6228

Merged
merged 1 commit into from
Jun 28, 2024
Merged

Conversation

AlejandroAlvarezMelucciDCL
Copy link
Collaborator

@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL commented Jun 27, 2024

Re-introduced ui text wrap with no-wrap as the default behavior

How to test the changes?

  1. Use the following url: PLAYGROUND A

  2. On the URL, note that it contains explorer-branch=chore%2Fre-introduce-uitext-wrapping which means the Playground is using this branch. Then the URL follows with &code=, note there's no mention of the SDK. This would be the case where an OLD scene is loaded:
    Label 1, doesn't have the property => text is not wrapped
    Label 2, does have the property, with the value nowrap => text is not wrapped
    Label 3, does have the property, with the value wrap => text is wrapped
    image
    On the left we can see the code for the 3 labels.

  3. Use the following url: PLAYGROUND B

  4. On the URL, note that it contains explorer-branch=chore%2Fre-introduce-uitext-wrapping which means the Playground is using this branch. Then the URL follows with ?sdk-branch=chore%2Fre-introduce-uitext-wrapping which means the Playground is using the SDK version with the new default behavior for wrapping text. This would be the case where a new scene is created:
    Label 1, doesn't have the property => text is wrapped
    Label 2, does have the property, with the value nowrap => text is not wrapped
    Label 3, does have the property, with the value wrap => text is wrapped
    image
    On the left we can see the code for the 3 labels.

Our Code Review Standards

https://github.com/decentraland/unity-renderer/blob/master/docs/code-review-standards.md

Copilot summary

copilot:summary

@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL marked this pull request as ready for review June 27, 2024 21:23
@AlejandroAlvarezMelucciDCL AlejandroAlvarezMelucciDCL requested a review from a team as a code owner June 27, 2024 21:23
@Ludmilafantaniella Ludmilafantaniella requested review from Ludmilafantaniella and removed request for LucasLioyQA June 28, 2024 13:18
Copy link
Contributor

@Ludmilafantaniella Ludmilafantaniella left a comment

Choose a reason for hiding this comment

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

Reviewed both URLs:

  • PLAYGROUND A: Labels behave correctly with explorer-branch=chore%2Fre-introduce-uitext-wrapping.

  • PLAYGROUND B: Confirmed expected behavior with explorer-branch=chore%2Fre-introduce-uitext-wrapping and sdk-branch=chore%2Fre-introduce-uitext-wrapping.

Also verified dialog box text wrapping on Explorer for Windows and Mac.
🟢 Approved by QA.

capture_240628_103834
capture_240628_103859
#6228 FIX B
#6228 FIX

@aixaCode aixaCode merged commit f782a12 into dev Jun 28, 2024
14 checks passed
@aixaCode aixaCode deleted the chore/re-introduce-uitext-wrapping branch June 28, 2024 14:05
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.

3 participants