Search | Statistics | User Listing Forums
XNA Resources
XNA Resources ->  General Discussion -> XNA Resource News -> View Thread

You are logged in as a guest. ( logon | register )

XNA 3.0 TextHandler Class
Jump to page : 1
Now viewing page 1 [25 messages per page]
View previous thread :: View next thread
   General Discussion -> XNA Resource NewsMessage format
 
Kurt Jaegers
Posted 2009-07-12 12:00 AM (#129)
Subject: XNA 3.0 TextHandler Class


100100252525



I noted in my entry earlier today that a new tutorial was in the works, and I had some time this evening to do the formatting, so it is up faster than I had expected! :)


 


This code comes from a project I have been working on, for which I decided that I needed a simpler way to handle text output, and especially needed a way to change the font/color of text being output at arbitrary points in the string without using a bunch of different calls to SpriteBatch.Draw().  This tutorial walks through building a C# static class to automate some of the work in drawing text to the screen in XNA, and includes a couple of nifty features like rudimentary formatting codes, a "console"-type printing mode, word wrapping, and automatic font loading.


 


You can find the link on the Tutorials page, or jump there directly


 


This class should work on Windows, the XBox 360, and the Zune without changes, and is really just the basics of what this class could be expanded to do.
Top of the page Bottom of the page
Jump to page : 1
Now viewing page 1 [25 messages per page]
Jump to forum :
Search this forum
Printer friendly version
E-mail a link to this thread

(Delete all cookies set by this site)
Running MegaBBS ASP Forum Software
© 2002-2017 PD9 Software