Resize Text Window GUI?

Started by Paul Franzen, Sun 08/04/2012 03:30:51

Previous topic - Next topic

Paul Franzen

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.
The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

Khris

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.

Ghost

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.


Paul Franzen

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.
The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

steptoe

#4
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.
It's not over until the fat lady sings..

Paul Franzen

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.
The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

steptoe

#6
And don't forget the command DisplayAt this command places the Display where you want it.

EG

Code: ags

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


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

adjust as required if used.

Hope this is useful.

It's not over until the fat lady sings..

Paul Franzen

The Beard in the Mirror (formerly testgame) - Out now on Steam! http://store.steampowered.com/app/385840
Other games I've worked on: http://paulmfranzen.com/games/

SMF spam blocked by CleanTalk