About Store Forum Documentation Contact



Post Reply 
Text align left
Author Message
DNS Offline
Member

Post: #1
Text align left
How to align text to left?
07-27-2012 12:03 PM
Find all posts by this user Quote this message in a reply
cmontiel Offline
Member

Post: #2
RE: Text align left
In editor:

1) Open "Text Draw Settings Editor"
2) Set align to 1.0 , -1.0
3) Save the .txds
4) Go to Gui editor, select gui object, in properties set fied TextDS to the created .txds.

In code:

TextDS m_tds;
m_tds.align.set(1.f,-1.f);

Use m_tds where you need, for example:

D.text(m_tds,rect,text,AUTO_LINE_SPACE);


You can also load .txds files from code

guiobject.tds = TextDSs("Gui/Text/test.txds");

IRC: irc.freenode.net
Channel: #Esenthel
07-27-2012 12:17 PM
Find all posts by this user Quote this message in a reply
Post Reply