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

Text update #78

Closed
Insality opened this issue Jul 12, 2020 · 2 comments
Closed

Text update #78

Insality opened this issue Jul 12, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@Insality
Copy link
Owner

Scale mode: not only downscale, add text trim

Add scroll for trimmed text

@Insality Insality self-assigned this Jul 12, 2020
@Insality
Copy link
Owner Author

Possibly, trim mode can be add with styles
no_adjust can be removed from component init params

Variants of text adjust modes:

  • Downscale (current)
  • Trim (remove outside text with "..."). Add ability to scroll this text?
  • No adjust - remove all component adjust behaviour
  • Scrolling text with stencil? Scroll in some direction with some pattern

@Insality Insality added the enhancement New feature or request label Oct 19, 2020
@Insality Insality added this to the 0.7.0 milestone Apr 2, 2021
Insality added a commit that referenced this issue Oct 20, 2021
Insality added a commit that referenced this issue Oct 20, 2021
@Insality
Copy link
Owner Author

Update Text component:
- Add text adjust type instead of no_adjust param.
- const.TEXT_ADJUST.DOWNSCALE - Change text's scale to fit in the text node size
- const.TEXT_ADJUST.TRIM - Trim the text with postfix (default - "...", override in styles) to fit in the text node size
- const.TEXT_ADJUST.NO_ADJUST - No any adjust, like default Defold text node
- const.TEXT_ADJUST.DOWNSCALE_LIMITED - Change text's scale list downscale, but there is limit for text's scale
- const.TEXT_ADJUST.SCROLL - Change text's pivot to imitate scrolling in the text box. Use with stencil node for better effect.
- const.TEXT_ADJUST.SCALE_THEN_SCROLL - Combine two modes: first limited downscale, then scroll

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant