Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: mishels on Sat 16/09/2006 14:12:35

Title: Can I make the Dialog Window display text Right-To-Left?
Post by: mishels on Sat 16/09/2006 14:12:35
I am thinking of creating a game in Hebrew and for this I need the Dialog window to display the text in a right to left direction. Is that possible?

How can I change the way the Dialog Window displays the text?
Title: Re: Can I make the Dialog Window RTL?
Post by: alimpo83 on Sat 16/09/2006 14:20:23
In the "Game Editor" (left side of the screen) go to "General Settings" then "Text Output" and select "Write game text backwards(hebrew style)".

I've never used it but it should be what you're looking for. ;)
Title: Re: Can I make the Dialog Window display text Right-To-Left?
Post by: mishels on Sat 16/09/2006 19:49:26
Well, id does seem to reverse all the text, meaning the text "Mishel" would turn up "leshiM" in both the dialog window and speech, but the text is still aligned to the left in the dialog window.

Any more clues?

Is it possible to make a gui element for the dialog window and control how the text is shown there?
Title: Re: Can I make the Dialog Window display text Right-To-Left?
Post by: Ashen on Sat 16/09/2006 20:07:41
So it's just the alignment of the text that's the problem?
Hidden away (http://www.adventuregamestudio.co.uk/manual/Globalvariables.htm) in the manual:

Quote
game.text_align

Sets how text in message boxes and Sierra-style speech is aligned:
eAlignLeft: text aligned to left within message box (default)
eAlignCentre: text is centred within the message box
eAlignRight: text is right-aligned within the message box
These options do not affect Lucasarts-style speech, which is always centred.

Perhaps setting game.text_align = eAlignRight; in game_start would do the trick?

Otherwise I'm not sure - you CAN set the GUI dialogues use (the 'Dialog options on GUI' setting), but I don't think you can control it's alignment, only the offset (game.dialog_options_x/y, on the page I linked).
Title: Re: Can I make the Dialog Window display text Right-To-Left?
Post by: mishels on Sat 16/09/2006 20:34:09
I tried it and it did't quite work.
But I am probably missing something since I still don't quite know what the different Speech Modes do and how to work with them.
They all end up exactly the same when I try them.

But this global variable does seem to be the thing I am looking for, if I could only make it work :-)

Thanks,
Mishel.