Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Paul Franzen on Sun 08/04/2012 03:30:51

Title: Resize Text Window GUI?
Post by: Paul Franzen on Sun 08/04/2012 03:30:51
I feel like I'm missing something really obvious here. Is there a way to set a Text Window GUI to a standard size, rather than have it conform to the length of the text?

Thanks.
Title: Re: Resize Text Window GUI?
Post by: Khris on Sun 08/04/2012 03:34:44
I don't think so. You could add lots of spaces before and after the text though.

Another way is to use your own GUI and Display function.
Title: Re: Resize Text Window GUI?
Post by: on Mon 09/04/2012 12:27:31
According to the manual, only very few GUI elements can actually be changed; SetSize applies to Button, InvWindow, Label, ListBox, Slider and TextBox. As Khris said, making your own GUI's your best bet.

Title: Re: Resize Text Window GUI?
Post by: Paul Franzen on Tue 10/04/2012 22:53:07
I did create my own GUI inasmuch as I clicked "New Text Window GUI" and went from there...but I'm guessing you mean something more complicated than that. Ah well--it's probably not critical.
Title: Re: Resize Text Window GUI?
Post by: steptoe on Wed 11/04/2012 06:31:50
Nothing complicated about what Khris mentioned.

Simply treat a new Text Window GUI as any normal GUI and customize its looks (background /  text) as required and make sure you change 'Set GUI for Dialog options' with its GUI number in the general settings (default is 0). Experiment until you are happy. Using [ below text will make display box bigger by adding a return below text or as a new line or [[ to make a new paragraph.
Title: Re: Resize Text Window GUI?
Post by: Paul Franzen on Wed 11/04/2012 14:37:49
Oh, I'd gotten that far--but there's no option on this particular GUI screen for changing the size, so I thought Kris might've been talking about something else that I'm not familiar with (something that WOULD allow me to directly increase the size). Thanks for the tip about using [; that might just do it.
Title: Re: Resize Text Window GUI?
Post by: steptoe on Wed 11/04/2012 19:19:42
And don't forget the command DisplayAt this command places the Display where you want it.

EG


DisplayAt(100,150,300,"""");


100= from left
150= from top
300=length
"""= text  = "blah blah"

adjust as required if used.

Hope this is useful.

Title: Re: Resize Text Window GUI?
Post by: Paul Franzen on Wed 11/04/2012 20:23:21
It is--thank you!