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

being able to insert a character at the start of a new line #504

Open
DirectalArrowYT opened this issue Nov 11, 2023 · 1 comment
Open
Labels
feature 💭 It would be extra good if...

Comments

@DirectalArrowYT
Copy link

DirectalArrowYT commented Nov 11, 2023

something that looks like this
_set_newline_str(“text string “)
the function idea is to be able to insert a string at the start of the new line.

=== example ===
text string LINE 1
text string LINE 2
text string LINE 3

@JujuAdams JujuAdams added the feature 💭 It would be extra good if... label Mar 6, 2024
@SoupTaels
Copy link

SoupTaels commented Apr 20, 2024

I'd love to use the text wrap feature, but it seems I'll have to manually add a new line for specific cases where I wanna add a default text at the beginning of a string and after every new line wrap.

Example pseudo code: 
///Original: 
var dial = scribble("Test text. Test text 2");
dial.wrap(50);
dial.draw(15, 15, dialtypist);

//Result: 
"Test text.
Test text 2."

///Text wrapping and default starting text: 
var dial = scribble("Test text. Test text 2");
dial.starting_format(fnt_test, c_white, "> ");
dial.wrap(50);
dial.draw(15, 15, dialtypist);

//Result: 
"> Test text.
 > Test text 2."

Hope that illustrated the point across. A feature like this would be awesome af tho. Can only hope! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature 💭 It would be extra good if...
Projects
None yet
Development

No branches or pull requests

3 participants