Game authors and players, please read this thread!

Author Topic: Resize Text Window GUI?  (Read 295 times)  Share 

Resize Text Window GUI?
« on: 08 Apr 2012, 03:30 »
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.
Life in the Dorms -- a comedic point-and-click adventure game, out now for Xbox Live! http://tinyurl.com/cy6sphk
My portfolio: http://paulfranzen.wordpress.com/

Khris

  • Evil Dark Emperor Death-Kill
    • Lifetime Achievement Award Winner
    •  
    • I can help with play testing
    •  
    • I can help with scripting
    •  
    • I can help with translating
    •  
Re: Resize Text Window GUI?
« Reply #1 on: 08 Apr 2012, 03:34 »
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.
http://whathaveyoutried.com/

The other day on yahoo answers:
"Can you print colored images with black ink? If so tell me how please Thanx Kimberly"

Ghost

  • Guest
Re: Resize Text Window GUI?
« Reply #2 on: 09 Apr 2012, 12:27 »
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.


Re: Resize Text Window GUI?
« Reply #3 on: 10 Apr 2012, 22:53 »
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.
Life in the Dorms -- a comedic point-and-click adventure game, out now for Xbox Live! http://tinyurl.com/cy6sphk
My portfolio: http://paulfranzen.wordpress.com/

Re: Resize Text Window GUI?
« Reply #4 on: 11 Apr 2012, 06:31 »
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.
« Last Edit: 11 Apr 2012, 06:38 by steptoe »
I am not dead, I am only sleeping ;)

Re: Resize Text Window GUI?
« Reply #5 on: 11 Apr 2012, 14:37 »
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.
Life in the Dorms -- a comedic point-and-click adventure game, out now for Xbox Live! http://tinyurl.com/cy6sphk
My portfolio: http://paulfranzen.wordpress.com/

Re: Resize Text Window GUI?
« Reply #6 on: 11 Apr 2012, 19:19 »
And don't forget the command DisplayAt this command places the Display where you want it.

EG

[code]
DisplayAt(100,150,300,"""");
[/code]

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

adjust as required if used.

Hope this is useful.

« Last Edit: 11 Apr 2012, 21:16 by steptoe »
I am not dead, I am only sleeping ;)

Re: Resize Text Window GUI?
« Reply #7 on: 11 Apr 2012, 20:23 »
It is--thank you!
Life in the Dorms -- a comedic point-and-click adventure game, out now for Xbox Live! http://tinyurl.com/cy6sphk
My portfolio: http://paulfranzen.wordpress.com/