Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Mon 01/08/2011 14:24:31

Title: new line character in button text
Post by: on Mon 01/08/2011 14:24:31
So, let's create a GUI and a test button (call it buttonFoo)

placing this in game_start or rep_ex:

ButtonFoo.Text = String.Format("This is a test [] dfascsadc");

I'd expect to see a new line somewhere, instead I get those silly square brackets.

Is this proper behaviour? Any workaround?
Title: Re: new line character in button text
Post by: arj0n on Mon 01/08/2011 14:27:51
[[
Title: Re: new line character in button text
Post by: on Mon 01/08/2011 14:33:57
Quote from: └» Arj0n «┘ on Mon 01/08/2011 14:27:51
[[

Doesn't work Arj0n, i get a "stuff [[ things" button.
Title: Re: new line character in button text
Post by: Khris on Mon 01/08/2011 14:49:27
I guess AGS doesn't support line breaks in button texts.
Title: Re: new line character in button text
Post by: arj0n on Mon 01/08/2011 14:55:43
Shit, I forgot. Sorry...
Title: Re: new line character in button text
Post by: monkey0506 on Mon 01/08/2011 15:30:37
As a workaround you could put a non-clickable label on top of the button with the appropriate text. Unless you're moving or resizing the controls a lot, it shouldn't be a big issue (not as friendly as if the buttons allowed line-breaks, but just not hard to get around ;)).
Title: Re: new line character in button text
Post by: on Mon 01/08/2011 16:00:43
Quote from: +monkE3y_05_06+ on Mon 01/08/2011 15:30:37
As a workaround you could put a non-clickable label on top of the button with the appropriate text. Unless you're moving or resizing the controls a lot, it shouldn't be a big issue (not as friendly as if the buttons allowed line-breaks, but just not hard to get around ;)).

I don't think you've fully appreciated the fact that
Spoiler
we italians are lazy slobs
[close]

I'll use a label, but that's seems pretty awkard to me, if not a bug. Thankee!