Skip to content

newlines in Woof.Text #494

Open
Open
@stevekrouse

Description

@stevekrouse

It'd be great if this were possible:

labelText1.text = "Use UP-ARROW to fire thrusters. \n" +
"Land ship on a yellow landing pad. + \n + Keep downspeed 10 or less."

However, it is not natively supported on the canvas.This issue is for us to brainstorm a way to make this easier for students:

  1. One idea is to create a "multiline text" sprite or a "textbox" sprite which could then could layout your text with various styles depending on the formating applied (such as left, center, justified, width, height, text size, etc)

  2. Another idea is to do it within the regular Woof.Text somehow. Maybe it would be by detecting newlines in the text ourselves and creating new text sprites under the hood for you.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions