Login Page - Create Account

Support Board


Date/Time: Mon, 16 Jun 2025 00:01:33 +0000



Post From: sc.SetCustomStudyControlBarButtonText vs newline char

[2025-05-21 17:43:08]
User431178 - Posts: 712
sc.Input[].GetString() is adding an extra backslash in front of the \n, so you get the text exactly as it is written in the input setting, rather than it being treated as a newline character.
For example "Button\nText" becomes "Button\\nText" when you read it from sc.Input[].GetString().

sc.SetCustomStudyControlBarButtonText accepts newline character just fine, but in your case it does not work for the reason above.

You could split the input string on occurences of "\\n" and recombine with "\n" instead, or loop through it and replace "\\n" with "\n".