I can't for the life of me figure out how to center a string of text on a panel to the center of the screen.
I can easily "hard code" the position, but with people having different resolutions, that's clearly not the proper method.
I know how to properly center a bmap panel on screen using the screen_size.x but I can't seem to figure out how to center a string of text.
The best I can get is the left side of the text starting at the center of the screen.
I would think it would be a matter of getting the size in pixels of the string but I don't know how to do that. I'm using true type system fonts so unfortunately it's not like the characters are equally spaced.
I feel like I'm missing something so obvious and I don't know what it is. Any help?? Thanks in advance
EDIT: I've looked through the manual and couldn't find anything, and now, no sooner did I post this, I found what I needed, so dumb...
Last edited by xbox; 03/12/15 16:11.