Centering text with the "display" instruction (SOLVED)

Started by aussie, Sat 01/10/2011 22:31:12

Previous topic - Next topic

aussie

Hi again guys  :)

I'm looking for the function which allows you to center text when you use an instruction such as:

Display ("My text here.");

By default, this text comes up left-justified in a white Sierra-style window. I'd like it to be centered. I know this was possible in the old days with the ALIGN_CENTER function, but I can't find the right instruction now. Neither in the help file nor in the forums.

Does anyone know if centering text is possible?

As always, thanks in advance.


It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

pcj

Code: ags
game.text_align = eAlignCentre;


Only for message boxes and Sierra-style speech.
Space Quest: Vohaul Strikes Back is now available to download!

aussie

Quote from: pcj on Sat 01/10/2011 22:37:41
Code: ags
game.text_align = eAlignCentre;


Only for message boxes and Sierra-style speech.

Perfect. Thanks a lot.
It's not the size of the dog in the fight. It's the size of the fight in the dog.

http://www.freewebs.com/aussiesoft/

Arjunaz78

What about if i use the Lucasarts style template?can i use the same code too?or i still need to use the custom text function like densming show at densming's Youtube videos channel? (function ShowTextCentered) ??
..In the making of Silent Hill: The Hospital..

https://www.facebook.com/ArjunazGamesStudio

pcj

LucasArts speech is always centered (with respect to the character).
Space Quest: Vohaul Strikes Back is now available to download!

SMF spam blocked by CleanTalk