Friday, April 27, 2007

TIP: AUTOFORMATTING MULTIPLE LINES OF TEXT

Rhysingsun has posted a code snippet for autoformatting multiple lines of text when using the new XNA's fonts system.

From the post: "... I've been putting off my GUI because I didn't want to redesign once the XNA team's font support came out, here's the first trick I created, to help myself with my GUI: autoformatting multiple lines of text. If you look into the documentation it says that the new text functionality will go the a new line with the text if the '\n' character is found. However, this makes for some static game design. What if I want the text block to be wider? ...".

Watch this space!

No comments:

Post a Comment

Any thoughts? Post them here ...