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

Dialog text will not wrap if the dialog frame image is larger than 24x24 #6345

Open
psmithCN opened this issue Feb 7, 2024 · 0 comments
Open

Comments

@psmithCN
Copy link

psmithCN commented Feb 7, 2024

Describe the bug
If you use a dialog frame image asset from the gallery that is larger than 24x24, the dialog text will not wrap. This is a MakeCode function. If you use a dialog frame that is 24x24, the text will wrap.

https://makecode.com/_YfEV60fghELf

To Reproduce
Steps to reproduce the behavior:

  1. Go to Game
  2. Click and drag [set dialog frame to] block into the editor, and select a frame image asset that is larger than 24 x 24.
  3. Click and drag [show long text] into the editor and select left or right as the parameter.
  4. See error - the dialog text string will not wrap correctly.

Expected behavior
The frame image size should not affect the text's ability to wrap.

Screenshots
image
frame size is 48 x 48
image
frame size is 24 x 24

Desktop (please complete the following information):

  • OS: [Windows 11]
  • Browser [chrome]
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

No branches or pull requests

1 participant