Skip to content

Commit

Permalink
Revert "chore: support for uiText wrapping (#6207)"
Browse files Browse the repository at this point in the history
This reverts commit 7616bd0.
  • Loading branch information
AlejandroAlvarezMelucciDCL authored Jun 21, 2024
1 parent 880235a commit 0878356
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 85 deletions.
14 changes: 7 additions & 7 deletions scripts/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"typescript": "^4.2.3"
},
"dependencies": {
"@dcl/protocol": "1.0.0-9466805132.commit-365e0bb",
"@dcl/protocol": "^1.0.0-9115457439.commit-926ebd1",
"@protobuf-ts/protoc": "^2.8.2",
"@types/fs-extra": "^11.0.1",
"@types/glob": "^8.0.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,6 @@ public void OnComponentRemoved(IParcelScene scene, IDCLEntity entity)
public void OnComponentModelUpdated(IParcelScene scene, IDCLEntity entity, PBUiText model)
{
uiElement.text = model.Value;

var wrapMode = WhiteSpace.Normal; // Default mode is Wrap enabled
if (model.HasTextWrap && model.TextWrap == TextWrap.TwNoWrap)
wrapMode = WhiteSpace.NoWrap;

uiElement.style.whiteSpace = wrapMode;
uiElement.style.color = model.GetColor().ToUnityColor();
uiElement.style.fontSize = model.GetFontSize();
uiElement.style.unityTextAlign = model.GetTextAlign().ToUnityTextAlign();
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0878356

Please sign in to comment.