Skip to content

Allow line breaks in messages #42

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

Open
ClementSparrow opened this issue Mar 13, 2022 · 3 comments
Open

Allow line breaks in messages #42

ClementSparrow opened this issue Mar 13, 2022 · 3 comments
Labels
editor Concerns the game editor feature New feature or request polish Make the games or editor behave/look better syntax/language Concerns the language or its syntax

Comments

@ClementSparrow
Copy link
Owner

Currently, if you want to make a message that is left-aligned rather than centered, or paragraphs in a message (and thus, lines that should stop at the end of the paragraph), or blank lines, it becomes a nightmare to find where to add spaces in the message so that the automatic centering function breaks the lines where you want. And some things are impossible without adding visible characters (e.g., a line break in the first line).

So I propose we can place manual line breaks in messages. The simplest way to do this would be to have a character that represents a line breaks and can be escaped, but it may break existing games. Other ways may be safer, but need to deal with the parser and I don't want to.

@ClementSparrow ClementSparrow added feature New feature or request polish Make the games or editor behave/look better editor Concerns the game editor syntax/language Concerns the language or its syntax labels Mar 13, 2022
@david-pfx
Copy link

Dealing with the parser is right up my alley. How about this:

message This is a multi-line message
+ of exactly 4 lines
+
+ of which the 3rd is blank.

I don't think this is going to break any existing games.

@ClementSparrow
Copy link
Owner Author

Yeah, that would work. The spaces after a + should NOT be discarded, though.

@david-pfx
Copy link

I thought the idea was that any text would be trimmed and centered. Why would you retain spaces and then centre it off centre?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
editor Concerns the game editor feature New feature or request polish Make the games or editor behave/look better syntax/language Concerns the language or its syntax
Projects
None yet
Development

No branches or pull requests

2 participants