Author Topic: \n broken  (Read 2277 times)

satrio

  • Guest
\n broken
« on: May 29, 2013, 12:06:34 PM »
\n for linebreaks seems broken. Updated to latest version. Suddenly all linebreaks just show \n in the text and doesn´t do a linebreak.
Need this fixed asap, please. Can´t deliver my project like this.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: \n broken
« Reply #1 on: May 29, 2013, 12:08:31 PM »
"\\n" does not get converted to "\n" at run time. Solution -- use "\n" instead (which is a single character)

You shouldn't have been using multiple characters to specify a line break anyway. Either hit Enter to create a new line in inspector, or "\n" in code.

satrio

  • Guest
Re: \n broken
« Reply #2 on: May 29, 2013, 12:46:22 PM »
i didn´t use \\n, I used \n.

It worked before I updated. Now it doesn´t.



jeldrez

  • Sr. Member
  • ****
  • Thank You
  • -Given: 8
  • -Receive: 4
  • Posts: 352
    • View Profile
Re: \n broken
« Reply #3 on: May 29, 2013, 01:11:46 PM »
Yeah, it's not working on the editor like before, it just work on Localized files. You have to use normal break line (enter) to do it.

satrio

  • Guest
Re: \n broken
« Reply #4 on: May 29, 2013, 01:48:12 PM »
Why did this change? There is a saying. Don´t fix what isn´t broken.
Maybe I can fix this by replacing it with a "build string" in playMaker. Just a lot of extra work and problems for seemingly no reason.
Anybody know if playmaker has a linebreak for the input boxes?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: \n broken
« Reply #5 on: May 30, 2013, 12:22:18 AM »
That problem is with your GUI textfield you used for your "Set String Value" inspector. You need to use a GUI.TextArea, not a GUI.TextField.

TextArea supports multi-lines. TextField does not.

satrio

  • Guest
Re: \n broken
« Reply #6 on: May 30, 2013, 03:17:41 AM »
Ok! I will try that (if playmaker allows it)
Thanks, Aren for the quick reply!